Skip to content
Use code for 20% launch discount. Lifetime licenses include complete source code.Copy code

Architecture guide

Cloud webhook SaaS vs a local Node.js binary

Cloud webhook products are an HTTPS listener, a JSON rewrite, retries, and a second POST. A local Node.js binary on a VPS you already run does the same job without a per-event bill.

Self-hosted webhook router architecture

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.

Cloud webhook SaaS
Stripe / GitHub / forms
        |  HTTPS
        v
Vendor ingest (Hookdeck, Svix, Zapier)
        |  payloads + secrets in their cloud
        |  billed per event
        v
Your app
Local Node.js binary
Stripe / 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 / pipeline

Run 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:ro

Lifetime licenses

Lifetime license

Webhook Router

$94.99one payment

  • Node.js binary for Linux, macOS, Windows
  • Docker image with the same routes.json
  • SQLite history, retries, dead-letter replay
  • Full source in member files
Get Webhook Router lifetime

Checkout stays on Whop. You get the source after payment.

Questions people ask before they switch

Is this a Node.js binary or a Docker image?

Both. The license includes a single-file Node.js binary for Linux, macOS, and Windows, plus a Docker image. Same SQLite schema. Same routes.json. Pick the runtime that matches the rest of your box.

How is this different from Hookdeck or Svix?

Those products keep ingest, retries, and payloads in their cloud. Webhook Router is a local process: TLS at your reverse proxy, verify in-process, SQLite on disk you back up. No per-event invoice.

Does Stripe signature verification still work?

Yes. STRIPE_WEBHOOK_SECRET lives in the env file. The binary checks the header before any transform or fan-out.

What if I already bought Complete Stack?

Webhook Router is included. Use this guide as the architecture map, then run the binary from the member files.

Keep reading

All guides

Guide

Self-hosted cron alternative

Stop paying a monthly bill to fire HTTP on a timer. NexusCron is a self-hosted cron alternative you deploy with Docker on machines you already own.

Guide

EasyCron and cron-job.org alternative

Compare EasyCron, cron-job.org, and other hosted cron products with NexusCron. Same job, no subscription, logs and secrets stay on your disk.

Guide

Migrate off EasyCron to a self-hosted runner

Step-by-step migration from EasyCron to a self-hosted cron runner. Export jobs, map cron expressions, Docker Compose, HTTP pings, and cutover without downtime.

Guide

Migrate cron jobs off cloud providers to self-hosted

Technical guide for migrating cron jobs off cloud providers to self-hosted NexusCron. Architecture, Docker Compose, job mapping, and cutover without missed pings.

Guide

Replace cloud cron services with self-hosted NexusCron

Architecture, Docker Compose, production env vars, and cutover for replacing hosted cron with NexusCron on a VPS you already run. One lifetime payment.

Guide

Migrate EasyCron jobs to self-hosted NexusCron

Architecture, Docker Compose, and cost math for replacing $20–$50/month hosted cron with NexusCron on a VPS you already run. One lifetime payment.

Guide

Self-hosted webhook router

A self-hosted webhook router that receives, transforms, and forwards events on your infrastructure. One payment. No Zapier tax for simple routing.

Guide

Replace cloud webhook services with self-hosted Webhook Router

Architecture, Docker Compose, and config mapping to replace Hookdeck, Svix, Zapier, and Make with NexusCore Webhook Router on your VPS. One lifetime payment.

Guide

Replace cloud webhook queues with local SQLite routing

Technical architecture for replacing cloud webhook queues with local SQLite routing. Production Docker Compose, under 50MB RAM, WAL mode, retries, and dead-letter replay.

Guide

Self-hosted pipeline setup

NexusPipeline is a FastAPI Docker execution engine. Clone it, compose up, and keep job state on disk you control. One payment. No worker SaaS.

Guide

Self-hosted admin dashboard setup

NexusAdmin is the self-hosted dashboard that sits next to NexusPipeline. One payment, Docker Compose, no SaaS admin tenant.

Guide

Self-hosted log stream setup

LogStream is a single-binary Node.js collector. HTTP and UDP ingest, SQLite, live dashboard, webhook alerts. One payment. No observability SaaS.

Guide

Self-hosted env sync setup

EnvSync Agent syncs .env values across VPS hosts, laptops, and microservices. Encrypted key-value store. One payment. No secrets tenant.

Guide

Self-hosted API proxy setup

API Proxy Service sits between your code and upstream APIs. Retries, rate limits, fallbacks, circuit breakers. One payment. No gateway SaaS.