Skip to main content

Quick comparison

ExampleFrameworkCheckout typeAuthBest for
express-basicExpress.jsPaywall onlyHeader-basedFirst integration and API protection
checkout-demoNext.jsEmbeddedSupabaseFull custom checkout flow
hosted-checkout-demoNext.jsHostedSupabaseFast checkout integration
mcp-time-appMCP AppPaywall onlyOAuth + BearerUI-rich MCP apps
mcp-oauth-bridgeMCP ServerPaywall onlyOAuth + BearerNon-hosted MCP OAuth bridge

Prerequisites

  • Node.js 18+
  • pnpm
  • SolvaPay account (for real-backend examples)
  • Supabase project (for Supabase examples)
From workspace root:
pnpm install
pnpm build:packages

Run any example

cd examples/<example-name>
cp env.example .env.local
pnpm dev
Use .env instead of .env.local when the example README says so.

Example notes

express-basic

checkout-demo

hosted-checkout-demo

mcp-time-app

mcp-oauth-bridge

Next steps