Guides for the parts that break in production
How the hard parts work and what breaks in production, with sources and working TypeScript.
How to charge AI agents per API call with HTTP 402 (MPP and x402)
How HTTP 402 agent payments work with MPP (Stripe Shared Payment Tokens) and x402, what breaks in production, and how to implement them in TypeScript.
Updated 2026-10-30Stripe webhooks in Node.js: verify, deduplicate and retry without losing events
How to handle Stripe and GitHub webhooks in Node.js so events are never lost or processed twice: signatures, idempotency, retries, leases and dead letters.
Updated 2026-10-30How to implement Idempotency-Key in a Node.js API with PostgreSQL
Make POST endpoints safe to retry the way Stripe does: atomic key locking, request fingerprints, 409 and 422, leases, and what to store, in TypeScript.
Updated 2026-10-30How to send webhooks to your customers: retries, signatures and SSRF protection
Build webhook sending for your SaaS: Standard Webhooks signatures, a retry schedule, SSRF and DNS rebinding protection, secret rotation and delivery logs.
Updated 2026-11-11What are idempotent requests? HTTP methods and Idempotency-Key explained
What an idempotent request is, which HTTP methods are idempotent, why POST is not, and how an Idempotency-Key makes retries safe.
Updated 2026-11-11Webhook delivery logs, retries and replay: what customers need to debug failures
What a webhook delivery log should record, how retries and dead endpoints should behave, and why replay matters when you send webhooks.