@girokit/express
v0.1.0
Published
Express middleware adapter for GiroKit — checkout, portal, and Stripe webhook handlers.
Downloads
32
Readme
@girokit/express
Express adapter for GiroKit. Mount checkout, portal, and Stripe webhook handlers on any Express app.
import express from "express";
import { checkoutHandler, webhookHandler } from "@girokit/express";
import { billing } from "./billing";
const app = express();
app.post("/api/checkout", express.json(), checkoutHandler(billing));
app.post(
"/api/webhooks/stripe",
express.raw({ type: "application/json" }),
webhookHandler(billing),
);Scaffold build — handlers are typed and exported, but throw
not implementeduntil the logic lands.
