frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: PeekAPI – API analytics middleware, 7 languages, zero dependencies

https://peekapi.dev
2•konstantinkai•1h ago

Comments

konstantinkai•1h ago
Hey HN,

I kept building the same thing every time I shipped an API: some logging, a few SQL queries, maybe a Grafana chart — all to answer “who’s using this?” and “why are errors up?”

The fourth time I did this, I extracted it into a standalone product.

PeekAPI is a server-side middleware that captures request metadata and sends it to a real-time dashboard. The entire integration is one line:

import { peekapi } from "@peekapi/sdk-node";

app.use(peekapi({ apiKey: "pk_..." }));

Technical decisions that might interest HN:

Zero dependencies in every SDK. Node SDK uses only built-in https, crypto, fs, os. Python SDK is pure stdlib. Go, Rust, Ruby, PHP, Java — same approach. No transitive dependency tree, minimal supply chain surface.

Never stores raw credentials. Auth headers are SHA-256 hashed on the client before leaving the server. The dashboard identifies consumers by hash — it never sees API keys or tokens.

Resilient by design. Events are buffered in-memory, flushed in batches. On failure: exponential backoff (max 5 retries). After max failures or on non-retryable errors, events persist to a JSONL file on disk. Same on process shutdown (SIGTERM/SIGINT). Recovered automatically every 60s and on startup.

SSRF protection. SDKs enforce HTTPS for all non-localhost endpoints and block requests to private IP ranges.

Ingestion is decoupled from the dashboard. SDKs POST to a standalone Go ingest service (ingest.peekapi.dev) that handles geo extraction, batching, and writes to Postgres. Dashboard is a separate Next.js app that reads the same DB.

What the dashboard shows:

Real-time request stream (WebSocket via Supabase Realtime) Per-endpoint analytics: volume, error rate, avg/p95 latency Per-consumer breakdown: who’s calling what, how often, error patterns Configurable alerts: error rate spikes, latency thresholds, inactivity detection Notifications via email, Slack, Discord, Telegram, or webhook SDKs available for:

Node.js (Express/Fastify/Koa/Hapi/NestJS), Python (ASGI/WSGI/Django), Go (net/http/Gin/Echo/Fiber/Chi), Rust (Actix/Axum/Rocket), Ruby (Rack/Rails), PHP (PSR-15/Laravel), Java (Spring Boot/Jakarta Servlet).

SDKs are MIT licensed.

Happy to go deep on any architectural decision — and would love to hear what’s missing.

Show HN: AFK – Remote desktop for agentic coding from your phone with voice

https://afkdev.app/
1•liboshen•12s ago•0 comments

Fast-Servers

https://geocar.sdf1.org/fast-servers.html
1•tosh•2m ago•0 comments

Show HN: We gave an OpenClaw full tool access and hit stop. It didn't stop

https://caisi.dev/openclaw-2026/
1•davidresilify•2m ago•1 comments

Show HN: Claude Code agents with nested parallelismm 3x faster

https://github.com/nagisanzenin/claude-code-production-grade-plugin
1•nagi_builds•2m ago•0 comments

What changes in engineering teams once AI tools "click"?

1•smartworkflow•2m ago•0 comments

Deterministic Simulation Testing in Apache Kafka

https://aiven.io/blog/deterministic-simulation-testing-in-diskless-apache-kafka
2•filipyonov•3m ago•0 comments

A Word to the Wise: Don't Trust A.I. To File Your Taxes

https://www.nytimes.com/2026/03/05/technology/artificial-intelligence-taxes-tax-refund.html
2•zacharyozer•4m ago•1 comments

Show HN: PoliticaHub – tracking prediction markets for geopolitics

https://politicahub.com/
1•johanfr4•4m ago•0 comments

Agentic Engineering Patterns: Anti-Patterns

https://simonwillison.net/guides/agentic-engineering-patterns/anti-patterns/
1•goranmoomin•5m ago•0 comments

PortableCC

https://github.com/PortableCC
1•PaulHoule•5m ago•0 comments

Keeping community human while scaling with agents

https://vercel.com/blog/keeping-community-human-while-scaling-with-agents
1•gmays•5m ago•0 comments

Humanity's Last Exam

1•silexia•6m ago•0 comments

Show HN: I fine-tuned Qwen 3.5 (0.8B–4B) on a Mac for text-to-SQL – 2B beats 12B

https://github.com/sciences44/mlx-lora-finetune
1•sciences44•7m ago•1 comments

Judge Orders Government to Begin Refunding More Than $130B in Tariffs

https://www.wsj.com/politics/policy/judge-orders-government-to-begin-refunding-more-than-130-bill...
3•JumpCrisscross•7m ago•1 comments

Tim Sweeney signed away his right to criticize Google until 2032

https://www.theverge.com/news/889595/tim-sweeney-signed-away-his-right-to-criticize-google-until-...
3•nickthegreek•8m ago•0 comments

OpenAI Symphony

https://github.com/openai/symphony
1•therepanic•9m ago•0 comments

Try OpenClaw for on-call support and monitor systems

https://ngtrvu.com/tarx
1•nguyentranvu•9m ago•1 comments

Meta to Create New Applied AI Engineering Organization

https://www.wsj.com/tech/ai/meta-to-create-new-applied-ai-engineering-organization-in-reality-lab...
1•gmays•10m ago•0 comments

Malus – Clean Room as a Service – Liberation from Open Source Attribution

https://malus.sh/
2•pavel_lishin•11m ago•2 comments

Interplay Between Iranian Targeting of IP Cameras and Physical Warfare

https://research.checkpoint.com/2026/interplay-between-iranian-targeting-of-ip-cameras-and-physic...
1•smurda•14m ago•0 comments

Show HN: Watch Claude break SHA-256 live

https://www.youtube.com/watch?v=AIabktOGB_c
1•logicallee•15m ago•0 comments

Test

1•madebyjam•16m ago•1 comments

Mass surveillance, red lines, and a crazy weekend

https://windowsontheory.org/2026/03/03/mass-surveillance-red-lines-and-a-crazy-weekend/
1•speckx•17m ago•0 comments

Show HN: Keep large tool output out of LLM context: 3x accuracy 95% fewer tokens

https://github.com/lourencomaciel/sift-gateway
2•loumaciel•20m ago•1 comments

Good software knows when to stop

https://ogirardot.writizzy.com/p/good-software-knows-when-to-stop
4•ssaboum•20m ago•0 comments

Self-Supervised Flow Matching for Scalable Multi-Modal Synthesis

https://bfl.ai/research/self-flow
1•jk_tech•21m ago•0 comments

Show HN: Stop LLMs from brute forcing (guessing) APIs

https://tangelo-ltd.github.io/tekir/
1•dervishcat•21m ago•0 comments

Show HN: The AI agent that grows your YouTube channel on autopilot

https://github.com/eat-pray-ai/yutu
1•OpenWaygate•22m ago•0 comments

Maximum Likelihood Estimation of a Gaussian

http://jrmeyer.github.io/machinelearning/2017/08/18/mle.html
2•_josh_meyer_•22m ago•0 comments

Show HN: Captain Claw local AI agent, 29 tools, multi-session, DAG orchestration

https://github.com/kstevica/captain-claw
1•kstedev•23m ago•0 comments