How rezarg-dev/redeliver works
redeliver is a self-hosted webhook relay. Senders submit signed webhooks; ingest verifies and deduplicates them, stores each event with destination deliveries, and returns promptly. A background worker sends deliveries, records attempts, and retries failures; administrators can manage sources and destinations, inspect or replay events and deliveries, and monitor health and metrics. The graph follows the documented workflow and sampled wiring; unsampled route and store internals are represented only where the README or source index supports them.
Main entry points: app.js HTTP application · ingest.js Webhook ingest · server.js Server bootstrap · worker.js Delivery worker
Components 23
Runtime setup
- Server bootstrap
src/server.js - Runtime config
src/config.js - HTTP application
src/app.js - SQLite database
src/db.js - Store factory
src/store/index.js
Webhook intake
- Webhook ingest
src/routes/ingest.js - Signature verification
src/signature.js - Event records
src/store/events.js - Source records
src/store/sources.js - Destination records
src/store/destinations.js
Delivery processing
- Delivery queue and history
src/store/deliveries.js - Delivery worker
src/worker.js - Retry scheduling
src/backoff.js
Administration and observability
- Source management
src/routes/sources.js - Destination management
src/routes/destinations.js - Event inspection and replay
src/routes/events.js - Delivery inspection and retry
src/routes/deliveries.js - Page utilities
src/pagination.js - Prometheus metrics
src/metrics.js - Metrics endpoint
src/routes/metrics.js - Health endpoint
src/routes/health.js
Other components
- Webhook sender
- Webhook destinations
Connections 28
- Server bootstrap → Runtime config: loads config
src/server.js - Server bootstrap → SQLite database: opens database
src/server.js - Server bootstrap → Store factory: creates store
src/server.js - Server bootstrap → Prometheus metrics: creates metrics
src/server.js - Server bootstrap → HTTP application: builds app
src/server.js - Server bootstrap → Delivery worker: starts worker
src/server.js - Store factory → SQLite database: uses database
src/store/index.js - HTTP application → Webhook ingest: registers route
src/app.js - HTTP application → Source management: registers route
src/app.js - HTTP application → Destination management: registers route
src/app.js - HTTP application → Event inspection and replay: registers route
src/app.js - HTTP application → Delivery inspection and retry: registers route
src/app.js - HTTP application → Metrics endpoint: registers route
src/app.js - HTTP application → Health endpoint: registers route
src/app.js - Webhook sender → Webhook ingest: submits webhook
README.md - Webhook ingest → Signature verification: verifies signature
src/routes/ingest.js - Webhook ingest → Source records: looks up source
src/routes/ingest.js - Webhook ingest → Event records: stores event
README.md - Webhook ingest → Destination records: lists enabled destinations
src/routes/ingest.js - Webhook ingest → Delivery queue and history: enqueues deliveries
src/routes/ingest.js - Webhook ingest → SQLite database: writes atomically
src/routes/ingest.js - Delivery worker → Delivery queue and history: claims and updates
src/worker.js - Delivery worker → Retry scheduling: calculates retry delay
src/worker.js - Delivery worker → Webhook destinations: sends webhook
README.md - Event inspection and replay → Delivery inspection and retry: replays event
README.md - Delivery inspection and retry → Page utilities: paginates results
src/routes/deliveries.js - Metrics endpoint → Prometheus metrics: exposes metrics
README.md - Health endpoint → Store factory: checks health
README.md