Chaen
TOOLKIT•Encrypted Release•v1.8.0

Developer Webhook Toolkit

A reference implementation of the webhook patterns that financial APIs get wrong: constant-time HMAC verification, replay-window enforcement, and idempotency keys that survive retries and out-of-order delivery. Includes framework adapters for Express and FastAPI plus a replay-attack test suite you can point at your own handlers.

Key Highlights
  • Constant-time HMAC signature verification
  • Replay-window and timestamp tolerance enforcement
  • Idempotency keys that survive retries and reordering
  • Express and FastAPI adapters out of the box
What's Included
01`aenbase-webhooks` package (TypeScript and Python)
02Express and FastAPI middleware adapters
03Replay-attack test suite for your own handlers
04Integration guide covering failure modes
Requirements
  • —Node.js 20+ or Python 3.11+
  • —A secret store for signing keys
  • —Optional: Redis for idempotency key storage