Kairo Store — Next.js 16 Store for Digital Products (Stripe, Downloads, License Keys)
Your own store for digital products, with no marketplace taking a cut. Kairo Store is a complete Next.js 16 application for one seller and many customers: the storefront, cart, Stripe Checkout, file delivery, license keys, customer library, reviews, coupons, affiliates, emails and the admin are wired together and covered by an end-to-end test.
Live demo
https://kairo-store-demo.vercel.app — buy something as a guest (the checkout is simulated, no card) and download the files; create an account with any email to open the admin. The data resets every day, and file uploads are off in the demo because it runs without a storage bucket.
What your customers get
- A storefront with search, filters and sorting in the URL, category pages and product pages with a gallery, license options (Personal / Commercial), file list, changelog and related products
- Fixed prices per option, pay what you want with a minimum, or free products that collect an email
- A cart, coupons and an optional tax line, then Stripe Checkout
- Guest checkout: the receipt has the download links and a one-click sign-in link, no password needed
- A library with fresh download links on every visit, license keys and PDF receipts
- Reviews that only verified buyers can leave
- An email when you publish a new version of something they bought (if they asked for it)
What you get as the owner
- Dashboard: revenue, orders, conversion, top products, recent orders
- Products with options, file uploads per option, a stock of license keys with a pattern fallback, and versions that email buyers
- Orders: resend the receipt, revoke access, mark as refunded (keys and commissions are cancelled automatically)
- Customers, coupons (percent or fixed, per product, expiry, usage limit), review moderation
- Affiliates: ?ref= links, per-affiliate rates, balances and "mark paid"
- Reports by period with Orders and Products CSV
- Markdown pages (about, licensing, terms, privacy) and settings for currency, tax, emails, download limits and the affiliate program
Files and downloads
Files stay on your server's disk in development and on any S3-compatible bucket in production (Cloudflare R2, AWS S3, Backblaze B2, MinIO). Every download link is signed, expires, checks the order is still paid and counts against a per-file limit. With a bucket, customers download straight from it through a short-lived presigned URL.
Tech stack
Next.js 16 (App Router), React 19, TypeScript, Tailwind CSS 4, shadcn/ui, Better Auth (email + password, magic link, Google, GitHub), Drizzle ORM with SQLite locally and Turso in production, Stripe Checkout + webhooks, S3 SDK, React Email + Resend, @react-pdf/renderer, Vercel Cron.
Developer experience
- Demo mode: runs right after npm install with no API keys. Payments are simulated and emails are printed to the console
- Sample store "Fieldnotes Studio": 24 products with real files, 40 customers, 60 orders, reviews, coupons and affiliates
- One function computes every total (cart, checkout, Stripe, receipt, PDF); money stored as integers
- Idempotent Stripe webhook: retries never double-deliver
- 100% TypeScript, zero lint errors, a README that covers setup, Stripe, storage, email, deployment and customization
What you get
Full source code (.zip) and an illustrated PDF guide (12 pages) covering setup, adding products with options, files and license keys, Stripe payments and refunds, file storage and downloads, coupons, reviews and affiliates, and deployment. Also README, LICENSE.md and CHANGELOG.md. Free updates: download the latest version from your Payhip library.
License
Personal: one end product (personal or commercial). Commercial: unlimited end products. You can't resell or redistribute the source code itself.
FAQ
Do I need Stripe to try it?
No. Without keys the checkout is simulated and everything else works, including downloads and license keys.
Can I sell on Vercel?
Yes. Use Turso for the database and an R2 or S3 bucket for the files (Vercel's disk isn't persistent). The README walks through it. A VPS with a persistent disk works too.
Does it handle EU VAT or sales tax by country?
It adds one tax rate you choose. For tax by country, turn on Stripe Tax in the Checkout call; the README shows where.
Can customers buy without an account?
Yes. Guests pay with just an email and get a sign-in link to their library. If they create an account later with the same email, their past orders are already there.
Can I sell license keys for software?
Yes. Paste keys you generated elsewhere into the stock, or let the store generate them from a pattern like APP-XXXX-XXXX.
Is it multi-vendor?
No. It is a store for one seller (you), which keeps it simple to run and to customize.
Support
Questions or a bug? Reply to your purchase email with your order number.
Refund & support
Made and supported by Jefferson Valandro (GitHub, portfolio). If the product doesn't work as described and I can't fix the problem for you, reply to your purchase email within 14 days for a full refund.