This page is the architecture map for NexusCore Webhook Router: how cloud ingest compares to a single-file Node.js binary, how SQLite replaces the vendor inbox, and where the lifetime license sits in a real deploy.
Cloud pipe vs local binary
Left: events leave your vendor, sit in Hookdeck/Svix/Zapier, then arrive at your app. Right: TLS at Caddy, verify in-process, SQLite on disk.
Stripe / GitHub / forms
| HTTPS
v
Vendor ingest (Hookdeck, Svix, Zapier)
| payloads + secrets in their cloud
| billed per event
v
Your appStripe / GitHub / forms
| HTTPS
v
Caddy / nginx on your VPS
| 127.0.0.1:8090
v
webhook-router binary (Node.js)
verify -> transform -> fan-out
SQLite WAL on ./data
v
Your app / Discord / pipelineRun the binary
Member files ship a Node.js binary. No container required if you already run systemd.
# Linux amd64 binary from member files chmod +x ./webhook-router NEXUS_TELEMETRY=off \ STRIPE_WEBHOOK_SECRET=whsec_xxx \ ./webhook-router --listen 127.0.0.1:8090 --data ./data --routes ./routes.json
What the process actually does
Sketch of ingest + Stripe verify + SQLite. The licensed binary adds transforms, retries, and dead-letter replay.
import { createServer } from "node:http";
import { createHmac, timingSafeEqual } from "node:crypto";
import Database from "better-sqlite3";
const db = new Database("./data/webhooks.sqlite");
db.exec(`CREATE TABLE IF NOT EXISTS events (
id TEXT PRIMARY KEY, source TEXT, body TEXT, created_at INTEGER
)`);
function verifyStripe(raw, sigHeader, secret) {
const parts = Object.fromEntries(
sigHeader.split(",").map((p) => p.split("=")),
);
const expected = createHmac("sha256", secret)
.update(`${parts.t}.${raw}`)
.digest("hex");
return timingSafeEqual(Buffer.from(parts.v1), Buffer.from(expected));
}
createServer((req, res) => {
const chunks = [];
req.on("data", (c) => chunks.push(c));
req.on("end", () => {
const raw = Buffer.concat(chunks);
if (!verifyStripe(raw.toString(), req.headers["stripe-signature"], process.env.STRIPE_WEBHOOK_SECRET)) {
res.writeHead(400); res.end("bad sig"); return;
}
const evt = JSON.parse(raw.toString());
db.prepare("INSERT OR IGNORE INTO events VALUES (?,?,?,?)")
.run(evt.id, "stripe", raw.toString(), Date.now());
res.writeHead(200); res.end("ok");
});
}).listen(8090);Same architecture in Compose
services:
webhook-router:
image: webhook-router:latest
restart: unless-stopped
ports:
- "127.0.0.1:8090:8090"
environment:
NEXUS_TELEMETRY: "off"
STRIPE_WEBHOOK_SECRET: ${STRIPE_WEBHOOK_SECRET}
volumes:
- ./data/webhooks:/var/lib/webhook-router
- ./routes.json:/app/routes.json:roLifetime licenses
Also see replace cloud webhooks and the Webhook Router product.
