Documentation
Ship a paid API in minutes
Everything you need to install Run402, protect routes, and start collecting payments — with copy-paste examples.
Quickstart
Install, protect, charge
- 1Install run402 with your package manager
- 2Wrap a route with protect() and set a price
- 3Deploy — Stripe Checkout is handled for you
server.ts
import express from "express"import { protect } from "run402" const app = express() app.use( "/premium", protect({ price: "$0.50" })) app.get("/premium", (req, res) => { res.json({ data: "🔓 premium unlocked" })}) app.listen(3000)Explore the docs
Quickstart
Install and protect your first route in under two minutes.
Protecting routes
Pricing, subscriptions, and metered usage per endpoint.
SDK reference
Typed client for Node, edge, and serverless runtimes.
Webhooks
Subscribe to payment, refund, and usage events.
Analytics
Track revenue, conversion, and endpoint performance.
Guides
Framework recipes for Express, Fastify, and Next.js.