How rishirajpal01/webhook-delivery-platform works
This is a self-hostable webhook delivery service. A product sends an event through the HTTP API; the service persists it and fans out deliveries to subscribed endpoints. Dispatchers claim work, send signed HTTP requests, and record attempts and retry/health state in Postgres. The graph also preserves replay, endpoint management, the Go SDK and CLI, and receiver-side verification. Edges are limited to README statements and sampled source references; unsampled internals are represented only where the README supports the capability.
Main entry points: dispatcher.go Dispatcher · handlers.go HTTP API · store.go Postgres store · client.go Go API SDK
Components 20
API and management
- HTTP API
internal/api/handlers.go - Ops endpoints
internal/api/api.go - Apps and endpoints
internal/api/handlers.go - Event ingest
internal/api/handlers.go - Delivery replay
internal/api/handlers.go
Delivery runtime
- Dispatcher
internal/dispatcher/dispatcher.go - Retry and health
internal/dispatcher/dispatcher.go - Request signing
internal/signing/signing.go - SSRF guard
internal/ssrf/ssrf.go - Service runtime
cmd/webhookd/main.go
Persistence
- Postgres store
internal/postgres/store.go - Delivery queue
internal/postgres/queue.go - Attempt log
internal/postgres/queue.go
Developer interfaces
- Go API SDK
webhooks/client.go - SDK types
webhooks/types.go - Webhook CLI
cmd/webhookctl/main.go
Receiver tools
- Receiver verification
webhooks/verify.go - Mock receiver
cmd/mockreceiver/main.go
Other components
- Product application
- Webhook receiver
Connections 24
- Product application → HTTP API: sends events
README.md - HTTP API → Apps and endpoints: routes requests
internal/api/handlers.go - HTTP API → Event ingest: routes requests
internal/api/handlers.go - HTTP API → Delivery replay: routes requests
internal/api/handlers.go - Apps and endpoints → Postgres store: stores config
internal/api/handlers.go - Event ingest → Postgres store: stores and fans out
README.md - Delivery replay → Postgres store: resets deliveries
internal/postgres/store.go - Service runtime → HTTP API: starts API
cmd/webhookd/main.go - Service runtime → Dispatcher: starts dispatcher
cmd/webhookd/main.go - Dispatcher → Delivery queue: claims work
README.md - Dispatcher → Request signing: signs requests
README.md - Dispatcher → SSRF guard: guards dialing
internal/dispatcher/dispatcher.go - Dispatcher → Retry and health: decides outcomes
internal/dispatcher/dispatcher.go - Retry and health → Delivery queue: records outcome
internal/postgres/queue.go - Retry and health → Attempt log: records attempts
internal/postgres/queue.go - Delivery queue → Postgres store: reads and updates
internal/postgres/queue.go - Attempt log → Postgres store: persists attempts
internal/postgres/queue.go - Dispatcher → Webhook receiver: sends webhooks
README.md - Webhook CLI → Go API SDK: calls API
cmd/webhookctl/main.go - Go API SDK → HTTP API: calls HTTP API
README.md - Go API SDK → SDK types: uses types
webhooks/client.go - Webhook receiver → Receiver verification: verifies requests
README.md - Receiver verification → Request signing: checks signatures
webhooks/verify.go - Mock receiver → Request signing: verifies signatures
cmd/mockreceiver/main.go