merchant
The open-source commerce backend for Cloudflare + Stripe. Bring a Stripe key. Start selling.
A lightweight, API-first backend for products, inventory, checkout, and orders—designed to run on Cloudflare Workers with Stripe handling payments.
Quick Start
# 1. Clone & Install
git clone https://github.com/ygwyg/merchant
cd merchant && npm install
# 2. Initialize (creates API keys)
npx tsx scripts/init.ts
# 3. Start the API
npm run dev
# 4. Seed demo data (optional)
npx tsx scripts/seed.ts http://localhost:8787 sk_your_admin_key
# 5. Connect Stripe
curl -X POST http://localhost:8787/v1/setup/stripe \
-H "Authorization: Bearer sk_your_admin_key" \
-H "Content-Type: application/json" \
-d '{"stripe_secret_key":"sk_test_..."}'
# 6. Admin dashboard
cd admin && npm install && npm run dev