
Built with standard Next.js patterns and typed commerce APIs. AI coding tools like Cursor and Copilot are more effective when the codebase is consistent and the APIs are well-defined.
git clone https://github.com/yournextstore/yournextstore.gitcd yournextstore && bun installcp .env.example .env.local # Add your YNS_API_KEY from yns.app/adminbun dev
Open localhost:3000 — your store is running.
| Familiar patterns | Idiomatic Next.js App Router code (Server Components, Server Actions, "use cache") matches what LLMs have seen thousands of times. Less guessing, more accurate suggestions. |
| Typed APIs | Commerce Kit SDK methods like productBrowse() and cartUpsert() have defined input/output shapes. LLMs write correct code when they know the contracts. |
| Bounded domain | Commerce is well-defined: products, variants, carts, checkout. The data models already exist with clear types - no need for the LLM to invent them. |
Copy .env.example to .env.local and set:
YNS_API_KEY – Your API token from the admin panelNEXT_PUBLIC_ROOT_URL – Your store URL (e.g., http://localhost:3000)Refer to the documentation found at yns.app/admin/api/endpoints for more information on how to fetch products or create carts in your store.