Skip to content
D2CStarterkit

Built for vibecoding · Next.js 16

Launch a D2C store. In days, not months.

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.

Not technical? Let us set up, design and run it for you

  • Full source code
  • Unlimited projects
  • AI-ready docs and rules
  • Global + India presets
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)
  1. 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.

  2. 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.

  3. 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.

  1. 01

    Discover

    Filters, search and collections

  2. 02

    Choose

    Variants, swatches, pincode check

  3. 03

    Save

    Coupons, buy X get Y, live tax

  4. 04

    Pay

    Stripe, Razorpay or COD

  5. 05

    Track

    Courier updates and emails

  6. 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

  • Shipments

    Ready-to-ship queue, bulk booking, exceptions, settings

  • Returns

    Approve, decline, receive, restock and refund

  • Products

    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.

src/config/store.ts
currency: "USD",
locale: "en-US",
country: "US",
postalCode: null,
checkout: { cod: { enabled: false } },
tax: { pricesIncludeTax: false },
  • Stripe Checkout first
  • Sales tax added at checkout by state
  • ZIP or any postal code
  • US phone formatting

Built for developers

Code you'll actually enjoy extending.

Clear conventions, one config file for the brand, and documentation written for you and for your AI coding agent.

Config, not forks

Brand, copy, market, tax and returns live in one config file; the home page is an ordered list of sections.

One portable schema

58 tables with migrations for Postgres, MySQL and SQLite, plus smoke tests that run on two engines.

Made to be vibecoded

SETUP.md, CLAUDE.md, AGENTS.md and a storefront skill give your AI the full map, so its changes follow the kit's patterns.

Runs where you deploy

Node servers, Vercel or Cloudflare Workers. Payments and email use plain fetch and sockets, not heavy SDKs.

src/config/home.ts
export const homeSections = [
  { type: "hero", title: ["Carry less.", "Live more."] },
  { type: "collection-list", title: "Shop by category" },
  { type: "product-rail", collection: "bestsellers" },
  { type: "promo-banner", cta: { label: "Shop new" } },
  { type: "faq" },
  { type: "newsletter" },
];

$ pnpm install && pnpm db:migrate && pnpm db:seed

$ pnpm dev # localhost:3000, zero config

Bring your own database

  • PostgreSQL · Supabase, RDS, self-hosted
  • Neon · Serverless Postgres over HTTP
  • MySQL · MariaDB, PlanetScale
  • SQLite / Turso · Zero-config local dev
  • Cloudflare D1 · Runs on Workers

Images go to a local folder or any S3-compatible bucket (AWS S3, Cloudflare R2, MinIO).

Secure and privacy-ready by default.

The unglamorous parts that real stores get audited on, already done.

  • Staff sign-in with owner, admin and staff roles
  • Session tokens and one-time codes stored only as hashes
  • Signed webhooks for every payment and courier
  • Security headers (CSP framing rules, HSTS, nosniff) by default
  • Download-my-data and account deletion for GDPR and India's DPDP Act
  • Prices re-checked on the server before every payment

Who it's for

Made for people who build stores.

Developers

Skip the months of plumbing. Start from checkout, admin and shipping that already work, and spend your time on the brand.

Freelancers

Deliver client stores faster and at a better margin. One licence covers every client project you build.

Agencies

Standardise on one codebase your team knows, with the admin, tax and shipping your clients keep asking for.

Founders

Own your store, your data and your margins. Not technical? Our done-for-you service builds and runs it for you.

Compare

The speed of a platform, the freedom of your own code.

FeatureBuild from scratchHosted platformD2CStarterkit
Time to a working checkoutWeeks to monthsMinutesMinutes
You own the code and dataYesYes
Per-order platform feesUsually
Admin, shipping, returns, tax built inYou build itVia apps and add-onsIncluded
Customise anythingYesWithin limitsYes
Self-host on your stackYesYes

Meet the founder

Rushabh Shroff

Founder, D2CStarterkit

Software consultant and AI practitioner

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.

  • 5 years with enterprise QA teams
  • Test automation
  • AI-assisted QA
  • Release readiness

Questions about the kit or the service? Email support@d2cstarterkit.com.

Pricing

Build it yourself, or let us build it.

Buy the kit and build as many stores as you like, or have us set up, design and maintain your store for you.

D2C Kit

Build it yourself

The full source code, for developers, freelancers, agencies and vibecoders.

$49one-time

No subscription, no per-order fees.

  • Full source code
  • Unlimited stores and projects
  • Client projects included, no extra licences
  • Commercial use: charge for what you build
  • Every feature on this page
  • SETUP.md for you or your AI coding agent
  • Licence key and instant download
We do it for you

Done-for-you service

Setup + design + care

For brands that want a store without touching code. We set up, design and maintain it.

$99/ month

Billed monthly. No setup fee.

  • We set up the full store for your brand
  • Custom design to match your brand
  • Payments, shipping and email connected
  • Launched on your own domain
  • Ongoing maintenance, updates and fixes
  • Help with changes as your store grows
Book a meeting

Secure checkout by Dodo Payments. Prices in USD; local tax is shown at checkout. Already bought the kit? Download it

Not sure which fits? support@d2cstarterkit.com

FAQ

Questions, answered.

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.

Or let us build it for you