briefkasten cloud
today€0 / month
- 100,000 events a month, 20 sources, 10 subscribers
- Events kept for 3 days
- Live tail, event details, redelivery, analytics
- Email-code sign-in, 2FA, scoped tokens
Receive webhooks over an outgoing WebSocket connection, so you don't need to expose a public service to the internet. briefkasten takes webhooks from GitHub, Linear, Sentry or your own senders, checks their signatures, fans them out to your servers and agents, and keeps each payload for three days for replay.
Why
Your server connects out to briefkasten. It can stay behind Tailscale, a NAT or a firewall: no open port, no tunnel, no certificate to renew.
If your server is offline, deploying or restarting, briefkasten keeps its events and delivers them in order when it reconnects.
An agent can wait for “pull request merged” or “email bounced” from GitHub, Linear or Resend, and act on it.
$ briefkasten listen --exec ./on-merge.sh waiting for pull_request.closed … ✓ pull_request.closed (merged) acme/shop#42 → on-merge.sh
Built-in adapters check each provider's own signature. For everything else, the generic adapter accepts any sender that includes the source's secret: CI jobs, cron check-ins, your own services.
Signatures checked:
How it works
The provider sends the webhook to briefkasten. Your server keeps an outgoing connection open to briefkasten and receives each event over it.
GitHub opens a pull request
and posts a signed webhook to your hook URL.
Checks the signature, keeps the event
verifiedstored for 3 daysConnected out, gets it in milliseconds
✓ receivedWas offline, catches up on return
offline✓ caught up, in orderCLI and SDK
The CLI in a terminal; the SDK in your app, connected to briefkasten; or the SDK inside your app, which then receives the webhooks itself with no gateway.
Set up sources, follow events, or run a command for each one. Works over SSH and in CI, and agents can drive it with --json.
Read the guide →briefkasten login you@example.com
briefkasten source add github --project acme-shop
briefkasten listen --filter '*:github:**' \
--exec ./on-event.shYour app opens a WebSocket to briefkasten, cloud or self-hosted, receives its events, and catches up after a reconnect. Your server needs no public entry point.
Read the guide →import { connect } from "briefkasten";
const inbox = connect({
url: "https://briefkasten.example",
token: process.env.BRIEFKASTEN_TOKEN,
});
inbox.on("github:pull_request.*", async (event) => {
// runs once per event, in order, after a reconnect too
});Mount briefkasten in the app you already have and reuse its webhook handling instead of writing your own: signatures verified, payloads parsed into typed events, retries and replay handled. No separate gateway; your server receives the webhooks itself.
Read the guide →import { Hono } from "hono";
import { briefkasten } from "briefkasten";
import { github } from "@briefkasten/adapter-github";
const hooks = briefkasten({
sources: {
github: github({ secret: process.env.GITHUB_WEBHOOK_SECRET }),
},
});
hooks.on("github:pull_request.opened", async (event) => {
// verified, parsed and typed
});
const app = new Hono();
app.post("/webhooks/*", (c) => hooks.fetch(c.req.raw));import express from "express";
import { briefkasten } from "briefkasten";
import { github } from "@briefkasten/adapter-github";
const hooks = briefkasten({
sources: {
github: github({ secret: process.env.GITHUB_WEBHOOK_SECRET }),
},
});
hooks.on("github:pull_request.opened", async (event) => {
// verified, parsed and typed
});
const app = express();
// before express.json(): signatures are checked on the raw body
app.use("/webhooks", hooks.node);Features
Every delivery is verified with the source's secret. Forged ones are logged with the reason and never delivered.
Each event has a stable, sortable id. Reconnect with since=<last id> and get everything you missed, in order.
An event keeps its id on every delivery, so you can drop duplicates by id.
Send pull_request.* to one server and everything else to another, with globs per project.
Your handler threw? Fix it, then send one event to one subscriber again.
A live tail, per-event headers and payload, verification results and delivery attempts.
Agents use the same: the briefkasten CLI with --json, or MCP over stdio or at https://briefkasten.fabrik.computer/mcp.
Pricing
Use the hosted service, or run briefkasten yourself: same code, same API, same CLI.
€0 / month
open source
Paid plans may come later for people who need more. You'll hear about them before anything costs money. All the limits
Questions
The API and the source code
Every operation is in the API reference, and the gateway is open source.
API referenceThe data plane (the part that receives your webhooks) runs on Cloudflare and keeps routing on its last known config even when our dashboard and API are down. If the data plane itself is down, providers see errors and most of them retry; GitHub lets you redeliver from its UI.
Nothing is lost for up to three days. Events wait; your server reconnects with the last id it saw and gets the backlog in order.
No. The TypeScript SDK can run briefkasten inside your own app: webhooks reach your server, get verified, and call your handlers, with no gateway in between. Use cloud or a self-hosted gateway when your server should have no public entry point, or when several servers and agents share the same events.
Each account gets its own Durable Object on Cloudflare that holds the open connections with the WebSocket Hibernation API: while no event arrives, nothing runs, and keep-alive pings are answered without waking it.
We store them for the retention window so we can hand them over, and you can inspect them in the dashboard. We do not mine them, sell them, or train anything on them. After the window they are deleted.
Yes. briefkasten is open source. Run it yourself, point the CLI at it with briefkasten use https://hooks.example.com, and move your sources. Same API, same CLI, same MCP tools.