How kgma74/webhook-tester works
webhook-tester is a self-hosted HTTP webhook inspector. Users create an isolated endpoint, send requests to its hook URL, then inspect captures live or through the JSON API; they can also clear history, replay a capture, and configure the hook’s response. The graph separates HTTP entry points, endpoint lifecycle, capture/state, and dashboard delivery. README documents dashboard capabilities beyond the sampled templates; edges are limited to relationships explicit in the README or excerpts.
Main entry points: webhooks.go HTTP handlers · server.go HTTP server · endpoint.go Endpoint state · sse.go SSE broker
Components 14
HTTP interface
- Application startup
cmd/api/main.go - HTTP server
internal/server/server.go - Route registration
internal/server/routes.go - HTTP handlers
internal/server/webhooks.go - Embedded templates
cmd/web/web.go
Endpoint lifecycle
- Endpoint registry
internal/server/endpoint.go - Endpoint state
internal/server/endpoint.go
Capture and response
- Request history
internal/server/webhooks.go - Response settings
internal/server/endpoint.go
Live dashboard
- SSE broker
internal/server/sse.go - Dashboard views
cmd/web/template/index.html - Home view
cmd/web/template/home.html
Other components
- Dashboard user
- Webhook sender
Connections 21
- Dashboard user → HTTP server: opens UI
README.md - Webhook sender → HTTP handlers: sends webhook
README.md - Application startup → HTTP server: constructs
cmd/api/main.go - Application startup → Embedded templates: provides templates
cmd/api/main.go - HTTP server → Route registration: registers routes
internal/server/server.go - HTTP server → Endpoint registry: creates registry
internal/server/server.go - HTTP server → Embedded templates: parses templates
internal/server/server.go - Route registration → HTTP handlers: routes requests
internal/server/routes.go - HTTP handlers → Endpoint registry: creates and looks up
internal/server/webhooks.go - Endpoint registry → Endpoint state: creates endpoints
internal/server/endpoint.go - HTTP handlers → Request history: captures and reads
internal/server/webhooks.go - HTTP handlers → SSE broker: publishes and subscribes
internal/server/webhooks.go - HTTP handlers → Response settings: gets and sets config
internal/server/webhooks.go - Endpoint state → Request history: owns
internal/server/endpoint.go - Endpoint state → SSE broker: owns
internal/server/endpoint.go - Dashboard user → HTTP handlers: creates endpoints
README.md - Dashboard user → HTTP handlers: clears or replays
README.md - HTTP handlers → HTTP handlers: replays to hook
internal/server/webhooks.go - HTTP handlers → Dashboard views: serves dashboard
README.md - HTTP handlers → Home view: serves home
README.md - Dashboard user → SSE broker: receives live events
README.md