AI-Native Open-Source Next.js commerce. Powered by Stripe. Ultra fast with typesafe Commerce SDK. Built for AI development (Claude, Codex, Cursor). https://demo.yournextstore.com
  • MDX 90.1%
  • TypeScript 9.7%
  • CSS 0.2%
Find a file
2026-02-25 15:28:23 +01:00
.agents/skills feat: add comprehensive copywriting skill 2026-02-20 15:00:15 +01:00
.claude chore: use agents-md codemod for AI Next.js docs 2026-02-07 15:12:54 +01:00
.github/workflows chore: add github action to lint 2026-02-25 15:28:23 +01:00
.husky fix: linter 2026-02-09 23:23:05 +01:00
.next-docs chore: use agents-md codemod for AI Next.js docs 2026-02-07 15:12:54 +01:00
.vscode feat: add order success page and create checkout proxy 2026-01-28 10:21:10 +01:00
.zed Commerce SDK + LLM-based template 2025-11-06 16:10:20 +01:00
app fix: formatting 2026-02-25 15:28:14 +01:00
components feat: search 2026-02-24 20:33:21 +01:00
hooks refactor: update shadcn components 2025-11-30 17:08:45 +01:00
lib feat: add image polling 2026-02-09 23:05:25 +01:00
public chore: add robots.txt to allow all web crawlers 2026-02-24 16:52:41 +01:00
.env.example feat: add order success page and create checkout proxy 2026-01-28 10:21:10 +01:00
.gitignore chore: use agents-md codemod for AI Next.js docs 2026-02-07 15:12:54 +01:00
.mcp.json feat: add next-devtools-mcp 2026-02-23 09:06:17 +01:00
AGENTS.md feat: add next-devtools-mcp 2026-02-23 09:06:17 +01:00
biome.json chore: update remotePatterns in next.config.ts and add useValidAnchor option to biome.json 2026-02-12 20:27:30 +01:00
bun.lock chore: update deps 2026-02-24 20:15:16 +01:00
CLAUDE.md chore: update AI setup 2026-01-25 21:06:34 +01:00
components.json refactor: update shadcn components 2025-11-30 17:08:45 +01:00
CONTRIBUTING.md feat: add contributing and update readme 2026-02-22 19:19:29 +01:00
LICENSE.md Add License to the project 2026-02-22 19:02:45 +01:00
next.config.ts chore: update remotePatterns in next.config.ts and add useValidAnchor option to biome.json 2026-02-12 20:27:30 +01:00
package.json chore: update deps 2026-02-24 20:15:16 +01:00
postcss.config.mjs Commerce SDK + LLM-based template 2025-11-06 16:10:20 +01:00
proxy.ts fix: update checkout proxy header 2026-01-28 10:21:51 +01:00
README.md feat: add contributing and update readme 2026-02-22 19:19:29 +01:00
SECURITY.md chore: revise security policy for version support and reporting 2026-01-28 10:21:37 +01:00
tsconfig.json refactor: coherent config 2025-11-30 17:04:45 +01:00

Your Next Store

Open-source AI-native Next.js e-commerce template.

Powered by Stripe. Built for AI coding tools.

GitHub Stars Deploy with Vercel Discord Product Hunt

AI-Friendly Codebase Ships with AGENTS.md — idiomatic patterns, Commerce Kit SDK with typed methods. Claude Code, Cursor, and Codex work out of the box
Stripe-Native Direct Stripe API integration — checkout, billing, subscriptions
Next.js 16 App Router, React Server Components, React Compiler
Open Source Self-host anywhere, deploy to Vercel in one click

Quick Start

git clone https://github.com/yournextstore/yournextstore.git
cd yournextstore && bun install
cp .env.example .env.local   # Add your YNS_API_KEY from https://yns.store/manage/settings/api
bun dev

Open localhost:3000 — your store is running.

Why AI Tools Work Better Here

Familiar patterns Idiomatic Next.js App Router (Server Components, Server Actions, "use cache") — matches what LLMs have seen thousands of times
Commerce Kit SDK Methods like productBrowse() and cartUpsert() have defined input/output shapes. LLMs write correct code when they know the contracts
Well-defined domain Products, variants, carts, checkout — the data models already exist with clear types. No need for the LLM to invent them
AGENTS.md Full project context, SDK examples, Biome rules, and validation checklist — AI agents understand the codebase before writing a single line

Tech Stack

  • Next.js 16 — App Router, React Server Components, React Compiler
  • Bun — Fast JavaScript runtime and package manager
  • Commerce Kit SDK — Headless commerce API integration
  • Tailwind CSS v4 — Utility-first styling
  • Shadcn UI — 50+ accessible components built on Radix UI
  • TypeScript — Strict type-safe development
  • Biome — Lightning-fast linter and formatter

Prerequisites

Environment Variables

Copy .env.example to .env.local and set:

  • YNS_API_KEY — Your API token from the admin panel

Contributing

See CONTRIBUTING.md for coding conventions and PR checklist.

Next Steps

Refer to the API documentation for details on fetching products, managing carts, and building on top of YNS.

Star History

Star History Chart