How foramamin/webhookpulse works
WebhookPulse is a multi-tenant webhook reliability and observability service. Providers submit events to its API, which resolves an endpoint, verifies and normalizes the provider payload, deduplicates and persists it, then queues it for asynchronous delivery. A worker delivers to customer backends, retries failures, and routes exhausted events to a dead-letter queue; authenticated users can inspect event and attempt history and replay events. The graph also includes endpoint management and authentication. Unexcerpted worker, provider, and DLQ links rely on SOURCE INDEX references or README descriptions, not direct source inspection.
Main entry points: worker.py Delivery worker · ingestion_service.py Ingestion pipeline · event_repository.py Event repository · main.py FastAPI application
Components 28
API and tenancy
- FastAPI application
webhookPulse/backend/src/main.py - Auth routes
webhookPulse/backend/src/routes/auth_routes.py - Auth controller
webhookPulse/backend/src/controllers/auth_controller.py - Auth service
webhookPulse/backend/src/services/auth_service.py - JWT tenant guard
webhookPulse/backend/src/core/dependencies.py - Token security
webhookPulse/backend/src/core/security.py - Endpoint routes
webhookPulse/backend/src/routes/endpoint_routes.py - Endpoint service
webhookPulse/backend/src/services/endpoint_service.py - Runtime configuration
webhookPulse/backend/src/core/config.py
Webhook ingestion
- Webhook routes
webhookPulse/backend/src/routes/webhook_routes.py - Ingestion pipeline
webhookPulse/backend/src/services/ingestion_service.py - Provider adapters
webhookPulse/backend/src/providers/adapters/razorpay_adapter.py - Event document
webhookPulse/backend/src/models/event.py
Async delivery
- Queue service
webhookPulse/backend/src/services/queue_service.py - Redis Streams
webhookPulse/backend/src/infrastructure/redis.py - Delivery worker
webhookPulse/backend/src/worker.py - Retry policy
webhookPulse/backend/src/services/retry_service.py - Dead-letter queue
webhookPulse/backend/src/services/dlq_service.py - Retry settings
webhookPulse/backend/src/core/retry_config.py
Persistence and history
- Event routes
webhookPulse/backend/src/routes/event_routes.py - Event controller
webhookPulse/backend/src/controllers/event_controller.py - Event history service
webhookPulse/backend/src/services/event_service.py - Replay service
webhookPulse/backend/src/services/replay_service.py - Event repository
webhookPulse/backend/src/repositories/event_repository.py - Attempt repository
webhookPulse/backend/src/repositories/delivery_attempt_repository.py - MongoDB
webhookPulse/backend/src/infrastructure/database.py
Other components
- Webhook provider
- Customer backend
Connections 36
- FastAPI application → Auth routes: mounts
webhookPulse/backend/src/main.py - FastAPI application → Endpoint routes: mounts
webhookPulse/backend/src/main.py - FastAPI application → Webhook routes: mounts
webhookPulse/backend/src/main.py - FastAPI application → Event routes: mounts
webhookPulse/backend/src/main.py - Auth routes → Auth controller: dispatches
webhookPulse/backend/src/routes/auth_routes.py - Auth controller → Auth service: calls
webhookPulse/backend/src/controllers/auth_controller.py - Auth service → Token security: hashes and signs
webhookPulse/backend/src/services/auth_service.py - Auth routes → JWT tenant guard: authenticates
webhookPulse/backend/src/routes/auth_routes.py - Endpoint routes → JWT tenant guard: authenticates
webhookPulse/backend/src/routes/endpoint_routes.py - Event routes → JWT tenant guard: authenticates
webhookPulse/backend/src/routes/event_routes.py - Endpoint routes → Endpoint service: dispatches
- Webhook provider → Webhook routes: posts webhook
README.md - Webhook routes → Ingestion pipeline: invokes
- Ingestion pipeline → Provider adapters: verifies and normalizes
webhookPulse/backend/src/services/ingestion_service.py - Ingestion pipeline → Event document: constructs
webhookPulse/backend/src/services/ingestion_service.py - Ingestion pipeline → Event repository: checks and persists
webhookPulse/backend/src/services/ingestion_service.py - Ingestion pipeline → Queue service: enqueues
webhookPulse/backend/src/services/ingestion_service.py - Queue service → Redis Streams: writes stream
webhookPulse/backend/src/services/queue_service.py - Redis Streams → Delivery worker: feeds events
README.md - Delivery worker → Event repository: updates event
webhookPulse/backend/src/worker.py - Delivery worker → Attempt repository: records attempts
webhookPulse/backend/src/worker.py - Delivery worker → Retry policy: applies retry
webhookPulse/backend/src/worker.py - Retry policy → Retry settings: reads settings
webhookPulse/backend/src/services/retry_service.py - Delivery worker → Dead-letter queue: routes exhausted events
webhookPulse/backend/src/worker.py - Delivery worker → Customer backend: delivers webhook
README.md - Event routes → Event controller: dispatches
webhookPulse/backend/src/routes/event_routes.py - Event controller → Event history service: queries history
webhookPulse/backend/src/controllers/event_controller.py - Event controller → Replay service: requests replay
webhookPulse/backend/src/controllers/event_controller.py - Event history service → Event repository: reads events
webhookPulse/backend/src/services/event_service.py - Event history service → Attempt repository: reads attempts
webhookPulse/backend/src/services/event_service.py - Replay service → Event repository: loads event
webhookPulse/backend/src/services/replay_service.py - Replay service → Queue service: requeues event
webhookPulse/backend/src/services/replay_service.py - Event repository → MongoDB: reads and writes
webhookPulse/backend/src/repositories/event_repository.py - Attempt repository → MongoDB: stores attempts
webhookPulse/backend/src/repositories/delivery_attempt_repository.py - Runtime configuration → MongoDB: configures connection
webhookPulse/backend/src/infrastructure/database.py - Runtime configuration → Redis Streams: configures connection
webhookPulse/backend/src/infrastructure/redis.py