E-commerce
by @ops Referral Program Backend
Referral codes, attribution tracking, and reward payouts as first-class records — distinct from a coupon engine: this tracks who referred whom and what they're owed for it, not just a discount at checkout.
Loads this recipe straight into the wizard — every setting stays editable before you generate anything.
The stack
Install
# pulls this exact recipe straight from the Vault $ npx stacktora install referral-program-backend --remote $ stacktora sync # generate the files
What you get
More from the Vault
Bun + Postgres + Redis: Freelance/Gig Marketplace with Milestone Payments
Project milestones, escrow-style payment release via Stripe Connect, and dispute state, a worker processing milestone payouts — distinct from the general Marketplace and Escrow recipes: this is specifically freelance-work-shaped, with milestones instead of a single transaction.
Coupon & Promotion Engine
Discount codes, promotion rules (percentage, fixed amount, BOGO), and redemption tracking with Redis guarding against a code being used past its limit under concurrent requests. The part of checkout that's deceptively easy to get wrong at the edges.
Digital Asset & License Delivery
Selling downloads or license keys instead of physical goods — secure, expiring download links and license activation state in Postgres, Redis for fast validation on every activation check. Distinct from a physical-goods storefront or a marketplace.
Food Order & Delivery Tracking Backend
Order lifecycle from placed through delivered, with Redis for live status that needs to update in near-real-time. Distinct from the Marketplace recipe: this is a linear order-to-delivery pipeline, not multi-vendor listings.