E-commerce
by @ops Inventory Reservation & Overselling Prevention
Redis-backed distributed locking around the checkout moment so two customers can't both buy the last unit — distinct from Inventory & Order Management: that tracks stock levels generally, this specifically prevents overselling under real concurrency.
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 inventory-reservation-overselling --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.