Webhook inbox / fan-out / catch-up / signatures at the edge / HTTP & TCP tunnels / MIT / self-hosted
One webhook URL. Every developer gets every event.
Tunnex Inbox — a self-hosted webhook inbox for teams, with tunnels.
Point Stripe, GitHub or Telegram at one stable URL. Tunnex keeps every event, checks its signature at the edge and delivers a copy to every developer who is listening — including the ones who were offline when it arrived.
Fig. 1
One Stripe event, two developers. Alice is online and gets it at once. Carol's laptop was asleep: her cursor waits, and the event arrives, re-signed, when she reconnects. Hex is the real 8-byte frame header — version, type, flags, reserved, stream id.
An inbox is a team-owned subdomain such as acme-stripe.tunnex.org. It stores the request, acknowledges the provider at once, then delivers it over the connection each listener already keeps open.
$tunnex inboxes create acme-stripe --provider stripe --secret whsec_...
Created https://acme-stripe.tunnex.org in team acme.$tunnex listen acme-stripe --forward 3000 # on every machine$tunnex listen acme-github --forward 8000 --filter header.x-github-event=pull_request
Fan-out, not load-balancing
Every listener whose filters match gets its own copy. Ten developers, ten deliveries.
A cursor per listener
The server remembers the last event each listener name received. Reconnect and the missed ones arrive in order, within retention.
Start where you want
--from cursor (default), now, a window like 6h or 2d, or an event id.
Filters
On method, path, query.*, header.* and json.*, e.g. json.type=checkout.session.completed.
At least once, in order
The cursor moves only after your app answers. If the local app is down, delivery is retried with backoff while you stay connected.
History and delivery log
tunnex inboxes events shows recent events with their signature result; tunnex inboxes event shows headers, body and every delivery.
Inbox guards
An IP allowlist, a body size limit, a per-inbox rate limit and retention in days.
Replay on demand
tunnex inboxes replay acme-stripe 418 delivers a stored event again to your listeners.
Give the inbox the provider's signing secret. Events with a bad signature get 401 and are not delivered, unless you create the inbox with --accept-invalid.
Signature schemes checked at the edge
--provider
Header checked
Signed timestamp
On replay and catch-up
stripe
Stripe-Signature
Yes
Re-signed with a fresh timestamp
github
X-Hub-Signature-256
No
Original signature stays valid
slack
X-Slack-Signature, X-Slack-Request-Timestamp
Yes
Re-signed with a fresh timestamp
shopify
X-Shopify-Hmac-Sha256
No
Original signature stays valid
standard
webhook-id / -timestamp / -signature (or svix-*): Standard Webhooks, Svix
Yes
Re-signed with a fresh timestamp
telegram
X-Telegram-Bot-Api-Secret-Token
No
Original header stays valid
Re-signed, days later
When a stored event is older than half the five-minute tolerance, Tunnex signs it again with the inbox secret, so your handler's own check passes.
Slack URL check handled
Slack's url_verification challenge is answered when you save the URL in Slack.
Secrets encrypted at rest
Signing secrets are stored encrypted with the server's secret key.
Inboxes belong to teams. People join with an invite link; a CI job gets a token that can do one thing.
What each team role may do
Action
Member
Admin
Owner
See inboxes, events, members
Yes
Yes
Yes
Listen, replay to own listeners
Yes
Yes
Yes
Replay to anyone's listener
—
Yes
Yes
Create inboxes, change secrets
—
Yes
Yes
Invite and remove members
—
Yes
Yes
Read the audit log
—
Yes
Yes
Change roles, delete the team
—
—
Yes
tunnex teams create acme
tunnex teams invite acme --role member
tunnex teams join <code or link>
tunnex tokens create staging-listener --scope listen --expires-in 90
Invite links
One-time, valid for 7 days. You send them yourself.
Scoped, expiring tokens
Scopes tunnels, listen, inboxes:read, inboxes:write, account; expiry from 1 to 365 days.
Audit log
Every change to accounts, tokens, teams and inboxes is recorded, replays included. Admins read it at GET /api/v1/audit?team=acme.
The same client runs on a laptop, in a container and in a CI job. No prompts: a config file, a token in the environment, and a fixed listener name whose cursor survives restarts.
# docker-compose.yml, next to your app
services:
tunnex:
image: registry.gitlab.com/homycoder/tunnex/client
environment:
TUNNEX_TOKEN: ${TUNNEX_TOKEN}
TUNNEX_INBOX: acme-stripe
PREVIEW_PASSWORD: ${PREVIEW_PASSWORD}
volumes:
- ./tunnex.yaml:/etc/tunnex/tunnex.yaml:ro
Client and server images for linux/amd64 and linux/arm64. The client image runs tunnex start by default; TUNNEX_TOKEN and TUNNEX_SERVER come from the environment, and a volume at /data keeps the listener's identity between restarts (full example). Every key of tunnex.yaml: the configuration reference.
The same, with a pull-request comment linking the preview.
Every example runs in Tunnex's own CI. In a job: tunnex listen acme-stripe --forward 3000 --from now --name "ci-$CI_JOB_ID" --no-inspector --quiet &
02 12 00 00 00 00 00 07DATAstream 7 · tunnels
Built on a real tunnel.
Listeners ride the same multiplexed connection as Tunnex's HTTP and TCP tunnels — there when you need a public URL for a demo, a preview or a database. No account needed for the first one.
Public URLhttps://<random>.tunnex.orgInspectorhttp://127.0.0.1:4040
Edge policy flags
Flag
Enforced at the edge
--basic-auth demo:secret
HTTP basic auth.
--key auto
Generates an API key: Authorization: Bearer or X-Api-Key.
--allow-ip 203.0.113.0/24
Only these IPs or CIDRs may connect.
--allow-path /api
Only these path prefixes; everything else is 404.
--rate-limit 600
Requests per minute.
--allow-email @acme.com
Tunnex SSO for these accounts, on servers with GitHub sign-in configured.
HTTP, WebSocket, TCP
Streaming responses and WebSockets pass through with per-stream flow control. tunnex tcp 5432 opens a raw TCP port (account required).
Local inspector
Every request and delivery at 127.0.0.1:4040: replay, edit and replay, export as cURL, Python, JavaScript or pytest.
Your own names
tunnex login is a device flow in the browser. --subdomain myapp reserves the name to your account.
02 14 00 00 00 00 00 09RESETstream 9 · compare
How it compares.
Several tools solve part of this, and some do it better than Tunnex. Compared on ; numbers in brackets are sources, listed below.
Scroll table →
Tunnex compared with Hookdeck, Convoy, Webhook Relay, smee.io and ngrok on 2026-10-14
Give Stripe https://acme-stripe.tunnex.org/webhooks/stripe; the path is kept, so events reach localhost:3000/webhooks/stripe. Bring the team with tunnex teams invite <team>; they run tunnex teams join and the same listen. Step by step: getting started.
The server and PostgreSQL start locally; the inbox answers at http://acme-stripe.lvh.me:8081 (*.lvh.me resolves to 127.0.0.1). For production, put a wildcard DNS record and TLS in front of registry.gitlab.com/homycoder/tunnex/server, or use the Kubernetes manifest. Backups, upgrades and every setting: the self-hosting guide.
Limits on tunnex.org
Default limits of the hosted instance
Without an account
HTTP tunnels: 3 at a time per IP, 120 requests per minute, a random sticky subdomain, a notice page for browsers
Free account
10 tunnels, 1,200 requests per minute, 3 reserved subdomains, TCP, up to 3 teams of your own
Inboxes
10 per team, 50 listeners each, 600 events per minute, 1 MiB per event
Events
Kept 7 days by default, up to 30; up to 1,000 missed events delivered on reconnect
A self-hosted server sets its own limits in config.yaml or TUNNEX_* environment variables.
02 05 00 00 00 00 00 00GOAWAYstream 0 · end of trace
Open source. Your server.
Client, server and examples are MIT licensed. Run it yourself and payment and customer payloads never leave your infrastructure.