---
title: "Deploy Webhook Inspector + Postgres"
description: "Self-hosted webhook.site: capture & replay webhooks. Postgres included"
category: "Observability"
url: https://railway.com/deploy/webhook-inspector-postgres
---

# Deploy Webhook Inspector + Postgres

Self-hosted webhook.site: capture & replay webhooks. Postgres included

**[Deploy Webhook Inspector + Postgres on Railway](https://railway.com/template/webhook-inspector-postgres)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/webhook-inspector-postgres/manifest.json

- **Creator:** kjudeh's Projects
- **Category:** Observability

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### webhook-inspector

- **Source:** https://github.com/Kjudeh/self-hosted-webhook-inspector
- **Public domain:** Yes

## Documentation

# Deploy and Host webhook-inspector on Railway

webhook-inspector is a self-hosted webhook tester, debugger, and replay tool — an open-source alternative to webhook.site and RequestBin. It generates unique capture URLs, records every incoming HTTP request (headers, body, query, source IP) in PostgreSQL, streams them to a live UI in real time, and lets you replay any request to a target of your choice.

## About Hosting webhook-inspector

Hosting webhook-inspector means running one small Node.js (Fastify) web service backed by a single PostgreSQL database — no Redis, queues, or extra services. The app builds from a multi-stage Dockerfile, runs its schema migration automatically on boot, and serves both the API and the bundled web UI on a single port. Live updates use Server-Sent Events, so it works behind standard proxies without WebSocket configuration. You point any webhook source (Stripe, GitHub, n8n, etc.) at your capture URL, watch requests arrive instantly, inspect the raw payloads, and replay them. An auto-cleanup job prunes old requests on a configurable retention window, keeping the database tidy without manual maintenance.

## Common Use Cases

- Debug webhooks from Stripe, GitHub, Shopify, n8n, and WhatsApp Business API by inspecting their exact headers and payloads.
- Replay captured webhook events into a local or staging endpoint to reproduce and fix integration bugs.
- Run a private, self-hosted alternative to webhook.site so sensitive payloads never pass through a third party.

## Dependencies for webhook-inspector Hosting

- A PostgreSQL database — **included in this template and wired automatically**.
- Node.js 20 runtime (handled automatically by the included Dockerfile).

### Deployment Dependencies

- Source repository: https://github.com/Kjudeh/self-hosted-webhook-inspector
- Railway PostgreSQL plugin: https://docs.railway.com/guides/postgresql
- Fastify: https://fastify.dev
- node-postgres (pg): https://node-postgres.com

### Implementation Details

**Zero configuration:** this template deploys the app, a PostgreSQL database and a public domain together. `DATABASE_URL` and `PUBLIC_URL` are pre-wired, the schema migrates on first boot, and the health check runs at `/health`. Click Deploy, open the generated URL, and create your first capture endpoint.


Optional variables: `ACCESS_TOKEN` (gates the UI/API; capture URLs stay public), `RETENTION_HOURS` (default 168), `MAX_BODY_BYTES` (default 1048576), and `PUBLIC_URL` (for a custom domain). `PORT` is preset to 3000.

## Why Deploy webhook-inspector on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying webhook-inspector on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Rootprint](https://railway.com/deploy/rootprint-1) — Open-source logs and traces with full-text search on object-storage.
- [Pyroscope profiling](https://railway.com/deploy/pyroscope-profiling) — Protected continuous profiling with durable Pyroscope storage.
- [SigOnly](https://railway.com/deploy/sigonly) — Deploy SigNoz with a working demo app & config in one click

Open this page in a browser: https://railway.com/deploy/webhook-inspector-postgres
