Adam BlansettSenior Full-Stack & AI Engineer
Developer Tools & StartersActive Open-Source Release v0.1.0 (MIT)

Webhook Reliability Workbench

Local-first TypeScript developer workbench for capturing webhooks, verifying HMAC/Ed25519 signatures, fuzzing payloads, simulating retries, and replaying events safely.

Engineering RoleCreator & Lead Maintainer

01. Problem & Context

Integrating webhooks from Stripe, GitHub, Shopify, Slack, or Svix frequently breaks in production due to subtle HMAC signature formatting mismatches, duplicate delivery storms, timeout retries, and mutated payloads—while public tunnel relays expose sensitive payloads to third-party servers.

02. Engineering Solution

Built `webhook-reliability-workbench` (`webhook-workbench`), a 100% local-first capture, verification, proxy, fuzzing, and replay workbench. Supports built-in presets for Stripe, GitHub, Shopify, Slack, and Svix/Standard Webhooks plus asymmetric Ed25519, streams live captures over SSE into a built-in Web Inspector UI (`/__workbench/ui`), generates synthetic `trigger` events and TypeScript/Zod types, and executes declarative retry/idempotency scenario suites.

03. System Architecture

A local HTTP receiver and transparent reverse proxy (`--forward-to`) records incoming deliveries into persistent local storage with automatic sensitive-header redaction, verifies signatures via `crypto.timingSafeEqual`, streams events over SSE (`/__workbench/stream`) to a browser inspector UI, and dispatches replays/fuzz runs through SSRF-validated destination checks.

Core Architectural Components

Constant-Time Signature Verifier & Provider Presets

Verifies HMAC (SHA-256, SHA-512, SHA-1), Standard Webhooks, and asymmetric Ed25519 signatures using `crypto.timingSafeEqual`, with `--preset` support for Stripe, GitHub, Shopify, Slack, and Svix.

Transparent Reverse Proxy, Web Inspector UI & SSE Stream

Forwards incoming requests to local servers (`--forward-to`), records `forwardResult` latency and status codes, exposes a real-time `/__workbench/ui` inspector dashboard with one-click replay, and streams `GET /__workbench/stream` SSE events.

Synthetic Trigger, Payload Fuzzer & Declarative Retry Suites

Generates signed synthetic webhooks (`trigger stripe payment_intent.succeeded`, `github push`, `shopify orders/create`), runs payload mutation stress tests (`fuzz`), verifies duplicate/retry handling (`test-retries`, `test-suite`), and diffs captured events (`events diff`).

Portable Fixtures, Type Inference & SSRF Replay Safeguards

Exports/imports portable JSON fixtures (`fixtures export`/`validate`/`import`), generates TypeScript interfaces or Zod schemas (`events types`), emits executable `curl` commands, redacts auth headers/query secrets, and guards replay targets against SSRF.

04. Notable Engineering Decisions

Local-First Storage & Transparent Proxy Over Hosted Relays

Routing payment and auth webhooks through third-party SaaS debuggers introduces privacy and compliance exposure. Running locally keeps payloads on the developer machine with full session persistence.

Constant-Time `timingSafeEqual` & Ed25519 Verification

Supporting Stripe timestamped signatures, GitHub `sha256=` prefixes, Standard Webhooks, and Ed25519 public keys with constant-time comparisons catches real signing bugs accurately.

Built-In Idempotency, Retry & Fuzz Testing

Webhook consumers most often fail on duplicate deliveries and unexpected fields; dedicated `test-retries`, `test-suite`, and `fuzz` commands turn ad-hoc manual curl checks into repeatable verification.

05. Engineering Challenges & Solutions

Challenge: Debugging silent differences between raw webhook bodies, timestamp headers, and provider signing schemes.

Engineering Solution: Implemented provider-accurate presets (`stripe`, `github`, `shopify`, `slack`, `svix`), raw body preservation, side-by-side `events diff`, and synthetic `trigger` generators.

Challenge: Preventing replay features from leaking secrets in logs or acting as an SSRF proxy.

Engineering Solution: Enforced explicit `--forward-allow-loopback` opt-in with SSRF IP resolution checks alongside automatic redaction of auth headers and sensitive query parameters.

06. Implementation Highlights

  • Constant-time HMAC (SHA-256/512/1), Standard Webhooks, and asymmetric Ed25519 verification (`crypto.timingSafeEqual`)
  • Built-in provider presets and synthetic `trigger` templates for Stripe, GitHub, Shopify, Slack, and Svix
  • Transparent reverse proxy (`--forward-to`), live Web Inspector Dashboard (`/__workbench/ui`), and SSE stream (`/__workbench/stream`)
  • Payload `fuzz`, `test-retries`, declarative `test-suite`, `events diff`, `events curl`, and TS/Zod `events types` inference
  • Portable JSON fixtures (`fixtures export`/`validate`/`import`), SSRF destination guards, and automatic header/secret redaction
  • Verified across 8 Vitest files (83 passing tests) and Node 20.x/22.x GitHub Actions CI