D2CStarterkit is a production-ready e-commerce codebase: storefront, checkout, accounts, shipping, returns, tax invoices and a full admin. Built to be vibecoded: open it in your AI coding tool, describe your store, and ship.
Built withNext.js 16React 19TypeScriptTailwind CSS v4DaisyUI 5Drizzle ORMStripeRazorpayDelhiveryCloudflare Workers
58
database tables, designed for D2C
14
admin areas, ready on day one
5
databases supported from one schema
0
payment or email SDKs to babysit
Built for vibecoding
Describe your store. Your AI builds it.
Open the kit in Claude Code, Cursor, Codex or any AI coding tool and talk to it in plain English. The kit ships with the map your AI needs to customise, extend and deploy it cleanly, following the same patterns every time.
SETUP.md
A step-by-step setup script for your AI: it asks about your brand, market, payments and shipping, then applies the answers and verifies.
CLAUDE.md + AGENTS.md
Project rules picked up by Claude Code, Cursor, Codex and other agents, so they know the layout before writing a line.
Storefront skill
Where everything lives, the design tokens, checkout, tax and shipping rules, and recipes for common changes.
Verify steps
Type-check, schema check and seed commands your AI runs after every change, so mistakes surface immediately.
your-store · AI session (example)
You: Set this up for Hillfolk Coffee. India, Razorpay, Delhivery.
AI: Following SETUP.md: India preset, brand colours and fonts, Razorpay and Delhivery key slots. Type-check passes.
You: Add a testimonials strip above the newsletter.
AI: Per the storefront skill: new section type, added to src/config/home.ts in the right order.
You: Deploy it to Cloudflare Workers with D1.
AI: Switched the database to D1, ran migrations and deployed with pnpm deploy.
Everything a real store needs
Not a template. A working store, end to end.
Every flow a D2C brand runs on, from the first product view to the return label, is already built, wired together and tested.
Storefront
A config-driven shop your clients will recognise as their own brand.
Home page built from reorderable sections
Search, category, price-slider and stock filters, sorting
Product pages with variants, swatches and a swipeable gallery
Delivery check by postal code, Buy now, sticky mobile buy bar
CMS pages, FAQs, newsletter, sitemap.xml and structured data
Checkout & payments
One pricing engine for the page and the payment, so totals never drift.
Stripe Checkout and Razorpay (standard and Magic Checkout)
Cash on delivery with fees and serviceable-area rules
Pluggable gateways: add one by implementing a small interface
Signed webhooks, idempotent payment sync, price re-checks
Orders that a coupon makes free confirm without a payment
Discounts
The promotions D2C brands actually run, priced line by line.
Percentage, fixed amount and free-shipping codes
Whole order, specific products or specific collections
Buy X get Y, from the same items or a separate set
Minimums, dates, usage and per-customer limits
First-order-only and prepaid-only offers
Customer accounts
Passwordless sign-in shoppers don't abandon.
Email one-time-code sign-in, no passwords to leak
Guest orders join the account automatically
Saved addresses and one-tap checkout prefill
Cart follows the shopper across devices
Order history, live tracking and invoices
Shipping & tracking
From pincode check to doorstep, without spreadsheets.
Pluggable couriers, with Delhivery included
Ready-to-ship queue, one-click and bulk booking
Automatic shipping on order, with retries
Labels, tracking webhooks and a polling cron
Public order-tracking page and shipped emails
Returns & reviews
Post-purchase flows that build trust instead of tickets.
Return requests with photos, inside a set window
Approve, receive with restock, refund and close
Emails to the shopper at every step
Reviews from verified buyers only, one per purchase
Moderation queue and brand replies
Tax & invoices
Compliant from the first order, in any market.
Rates by country, state and HSN / tax code
Prices including tax (GST, VAT) or added at checkout (US sales tax)
India GST split into CGST + SGST or IGST automatically
Sequential invoice numbers with frozen snapshots
Printable invoice pages for buyers and staff
Transactional email
A built-in SMTP client that runs on Node and Cloudflare Workers.
Sign-in codes, order confirmations and new-order alerts
Shipped, cancelled, refunded and return updates
One shared, brandable email layout
Every send logged on the order timeline
No email SDK or third-party service required
The shopper's journey
Every step a customer takes, covered.
01
Discover
Filters, search and collections
02
Choose
Variants, swatches, pincode check
03
Save
Coupons, buy X get Y, live tax
04
Pay
Stripe, Razorpay or COD
05
Track
Courier updates and emails
06
Return
Photo-backed returns and refunds
A full admin, included
Run the business, not a spreadsheet.
Fourteen admin areas your team or client can use from day one, behind staff sign-in with owner, admin and staff roles.
Ship one order or fifty in a click
Refund through the gateway, restock automatically
Approve returns with the shopper's photos in front of you
GST-ready invoices for every confirmed order
Dashboard
Revenue, orders, ready-to-ship and low stock at a glance
Orders
Timeline, notes, cancel with restock, refunds, COD collected
One-page editor: photos, options → variants, specs, SEO
Inventory
Stock per variant with a movement ledger
Discounts
Codes, scopes, buy X get Y, limits and usage
Taxes
Rates by region and tax code, GST-ready
Customers
Accounts, order counts and lifetime spend
Reviews
Moderate, reply and publish
Subscribers
Newsletter list with CSV export
Content
Pages, policies and FAQs
Staff
Owner, admin and staff roles, email sign-in
Collections
Categories and merchandising order
Global by default, India-ready
One codebase. Any market.
Ship with global defaults, or switch to the India preset with pincode checks, cash on delivery, Razorpay, Delhivery and GST invoices. It's a config change, not a rewrite.
I'm a software consultant who has spent the last five years helping enterprise teams test with confidence: test strategy, automation architecture and AI-assisted QA. Today I'm a Lead Customer Engineer at BrowserStack.
Outside that, I build and ship my own products, from developer APIs on RapidAPI to browser extensions. D2CStarterkit brings the same quality-first habits to e-commerce: type checks, schema checks and smoke tests across database engines come built in, so you start from a codebase that's been tested, not just written.
Can't find what you're looking for? Email us and we'll reply.
Can I build it with AI tools like Claude Code, Cursor or Codex?
Yes, that's how it's designed to be used. The kit ships with SETUP.md, CLAUDE.md, AGENTS.md and a storefront skill, so your AI knows where everything lives, follows the same patterns, and checks its own work. Describe what you want in plain English: set up the brand, add a section, switch the database, deploy.
What's the difference between the kit and the service?
The D2C Kit ($49 one-time) is the full source code: you, your developer or your AI build and run the store. The done-for-you service ($99 a month) is us doing it: we set up the store, design it for your brand and keep it maintained while you focus on selling.
What exactly do I get?
The complete source code of a Next.js 16 e-commerce app: storefront, checkout, customer accounts, admin, shipping, returns, reviews, tax and invoices, plus the database schema and migrations, a demo seed, and setup documentation.
Can I use it for client work?
Yes. One licence covers unlimited projects, including stores you build for clients. You can deliver the finished, customised project to them. What you can't do is resell or redistribute the kit itself as a template or starter kit.
Which payment gateways and couriers are included?
Stripe Checkout and Razorpay (standard and Magic Checkout) for payments, cash on delivery, and Delhivery for shipping. Each is a small, pluggable module, so adding another gateway or courier follows the same pattern.
Does it work outside India?
Yes. It ships with global defaults (USD, Stripe, sales tax added at checkout) and an India preset (INR, pincodes, COD, Razorpay, Delhivery, GST) that's one config change away. Currency, locale, postal-code rules and tax are all configurable.
Which database and hosting can I use?
PostgreSQL, Neon, MySQL/MariaDB/PlanetScale, SQLite/Turso or Cloudflare D1, from one schema. It runs on any Node host, Vercel or Cloudflare Workers. Local development is zero-config SQLite.
Do I need to be an expert in Next.js?
You'll be comfortable if you've built a Next.js or React app before. The code follows one set of documented conventions, and SETUP.md walks you (or an AI coding agent) through brand, database, payments, shipping, email and admin setup step by step.
Are updates and support included?
Updates and support are offered at our discretion, as described in the licence. If a launch offer includes a specific update or support period, it will say so at checkout.
Can I get a refund?
Because you get the full source code immediately, kit purchases are generally non-refundable, except where consumer law requires otherwise. Email us before buying if you have any questions.
Your next store is already built.
Spend your time on the brand, the products and the customers. We did the plumbing, and your AI handles the rest.