Getting started
Quickstart
Install the Tofu CLI, create a stable provider URL, and forward Stripe, GitHub, or Resend webhooks to your local app in one terminal session.
ReadHow it works
Tofu sits between webhook providers and your local app: stable URL in, persisted event store, configurable targets out. Architecture overview for developers.
ReadPayload retention
Tofu stores request bodies and headers for the replay window, then expires them while keeping event metadata. Manual expiry available for sensitive payloads.
ReadCLI
Overview
Reference for every Tofu CLI command: login, hooks, targets, watch, replay, and events expire. Examples for the most common workflows.
Readtofu hooks
Create stable webhook URLs per provider, print the URL to paste into Stripe or GitHub, list active hooks, and remove hooks you no longer need.
Readtofu targets
Set a localhost target for your hook, add multiple targets for staging or preview environments, and remove targets when a branch closes.
Readtofu watch
Stream incoming webhook events and delivery results in the terminal. Filter by hook, see signature headers, response bodies, and target latency.
Readtofu replay
Replay the latest event or a specific event ID to your local target after fixing a handler. Works while the payload is still inside the retention window.
ReadProviders
Stripe
Create a stable Stripe webhook URL, forward events to your local Stripe handler, and replay events without breaking signature verification.
ReadGitHub
Point a GitHub repository webhook at Tofu, forward push and pull request events to localhost, and replay payloads while fixing your handler.
ReadResend
Keep a stable Resend webhook endpoint while your local notification handler moves. Replay delivery, bounce, and complaint events on demand.
ReadClerk
Forward Clerk user, organisation, and session events to your local handler. Replay account-sync payloads after changing webhook validation logic.
ReadSupabase
Forward Supabase auth, database, and edge function events to localhost. Replay real payloads against your local Next.js or Node handler.
ReadOperations
CI targets
Add an ephemeral webhook target inside a CI job or preview deploy, replay a real provider event, and remove the target before the job exits.
ReadAI diagnosis
Use Tofu's delivery diagnosis to explain failed webhook forwards, inspect evidence, and get suggested fixes without sending full raw payloads to AI.
ReadTroubleshooting
Checklist for when events are not reaching your local app: provider URL drift, incomplete target paths, signature handlers, and replay windows.
ReadDiagnosis API
Authenticated API endpoints for retrieving and generating webhook delivery diagnoses from the dashboard, CLI, or your own tools.
ReadReady to inspect real events?
Create an account, run tofu login, and approve the CLI from the browser.