# Commerce Engine Docs > Official documentation for Commerce Engine - The modern headless commerce platform for building scalable e-commerce solutions. ## Guides ### Quickstart - [Quickstart](https://www.commercengine.io/docs/storefront/quickstart.md): Let's get you up and running with the Commerce Engine Storefront API. This guide covers the basics: obtaining credentials, understanding environments, and making your first API call. - [Credentials & channels](https://www.commercengine.io/docs/storefront/credentials.md): Get your Store ID and Storefront API key, and understand the store, channel, and API key model that determines which products your storefront can see. ### Starters - [Starters](https://www.commercengine.io/docs/starters/overview.md): Production-ready storefront templates. Three designs, each with a 1:1 clone across five frameworks, with catalog, cart, checkout, SEO and agent tools wired from the first commit. ### AI-assisted development - [AI-Assisted Development](https://www.commercengine.io/docs/ai/overview.md): Use AI coding assistants to build Commerce Engine integrations faster with LLM-optimized docs, agent skills, and ready-to-use prompts. - [Production Storefront](https://www.commercengine.io/docs/ai/production-storefront.md): A complete agent execution contract for planning, building, validating, and shipping a production-ready Commerce Engine storefront. - [Prompts](https://www.commercengine.io/docs/ai/prompts.md): Ready-to-use prompts for AI coding assistants to build Commerce Engine integrations - [Production Starters](https://www.commercengine.io/docs/ai/starter-projects.md): How agents and developers should use the multi-framework Commerce Engine starter repository as executable production documentation. ### AI apps - [Manage your store from AI apps](https://www.commercengine.io/docs/ai/mcp-connector.md): Connect Claude, ChatGPT, Codex and other AI apps to your Commerce Engine store, so they can work on your catalog, offers, media, channels and marketplace as you. ### Storefront - [Authentication](https://www.commercengine.io/docs/storefront/authentication.md): Authentication verifies the identity of the user interacting with your storefront. Commerce Engine uses a robust token-based system (JWT) and offers flexible login methods, including passwordless options via Email, Phone, and WhatsApp. - [Catalog](https://www.commercengine.io/docs/storefront/catalog.md): The Catalog module is the cornerstone of your Commerce Engine storefront. It defines everything you sell – products, their variations, how they're organized, priced, and described. Mastering these APIs allows you to build compelling product listings, detailed descriptions, category navigation, power… - [Cart](https://www.commercengine.io/docs/storefront/cart.md): The Carts module provides the APIs to manage a user's shopping cart. It allows you to add, update, and remove items, apply discounts and loyalty points, manage fulfillment options, and retrieve the cart's state before checkout. Commerce Engine carts are persistent and associated with the user (anony… - [Checkout](https://www.commercengine.io/docs/storefront/checkout.md): This guide walks you through the process of converting a customer's shopping cart into a placed order, including address validation, shipping checks, payment processing, and handling payment retries. It utilizes endpoints primarily from the Carts, Orders, Payments, Shipping, and Common modules. - [My Account](https://www.commercengine.io/docs/storefront/my-account.md): This section details the APIs used to build the "My Account" area of your storefront, allowing logged-in customers to manage their profile, view past orders, handle returns or cancellations, update addresses, track loyalty points, and manage their reviews. - [Subscriptions](https://www.commercengine.io/docs/storefront/subscriptions.md): The Subscriptions module allows you to offer products and services on a recurring basis, enabling business models like "Subscribe & Save," SaaS, content access, and custom refill schedules. Commerce Engine provides APIs to define subscription plans on products, let users initiate subscriptions, and… ### Hosted checkout #### Getting Started - [Overview](https://www.commercengine.io/docs/hosted-checkout/overview.md): Drop-in checkout for any website or app. A fully hosted, embeddable checkout experience that handles cart, payments, and order completion. - [Checkout Studio](https://www.commercengine.io/docs/hosted-checkout/checkout-studio.md): A no-code dashboard for configuring Hosted Checkout with real-time preview and instant publishing. - [Vanilla JS / CDN](https://www.commercengine.io/docs/hosted-checkout/vanilla-js.md): Add Commerce Engine Checkout to any website with a single script tag. No build step required. #### Framework Guides - [React](https://www.commercengine.io/docs/hosted-checkout/react.md): Integrate Commerce Engine Checkout into React apps with the useCheckout hook. Reactive state, no providers required. - [Vue](https://www.commercengine.io/docs/hosted-checkout/vue.md): Integrate Commerce Engine Checkout into Vue 3 apps with the useCheckout composable. Returns reactive refs with automatic cleanup. - [Svelte](https://www.commercengine.io/docs/hosted-checkout/svelte.md): Integrate Commerce Engine Checkout into Svelte 5 apps with readable stores. - [Solid](https://www.commercengine.io/docs/hosted-checkout/solid.md): Integrate Commerce Engine Checkout into SolidJS apps with fine-grained reactive signals. - [Astro](https://www.commercengine.io/docs/hosted-checkout/astro.md): Integrate Commerce Engine Checkout into Astro sites using the root checkout helpers. No dedicated binding needed — works with ClientRouter and framework islands. #### Reference - [Configuration](https://www.commercengine.io/docs/hosted-checkout/configuration.md): Full reference for all Hosted Checkout configuration options, events, and methods. - [Analytics](https://www.commercengine.io/docs/hosted-checkout/analytics.md): Use Commerce Engine's vendor-neutral analytics mappers with Hosted Checkout, custom SDK checkouts, or direct REST implementations. ### SEO & AEO #### Getting Started - [SEO & AI for Storefronts](https://www.commercengine.io/docs/seo-ai/overview.md): Make Commerce Engine storefronts search-ready, answer-engine friendly, and agent-actionable with @commercengine/seo and @commercengine/ai. - [SEO & AEO Package](https://www.commercengine.io/docs/seo-ai/seo.md): Use @commercengine/seo for structured data, canonical metadata, robots, sitemaps, llms.txt, Markdown mirrors, and framework adapters. #### Framework Guides - [React / Vite](https://www.commercengine.io/docs/seo-ai/react.md): Add Commerce Engine SEO/AEO and browser agent tools to a React or Vite storefront. - [Next.js](https://www.commercengine.io/docs/seo-ai/nextjs.md): Wire @commercengine/seo and @commercengine/ai into a Next.js App Router storefront with one SEO proxy and one client agent-tools component. - [TanStack Start](https://www.commercengine.io/docs/seo-ai/tanstack-start.md): Use Commerce Engine SEO request middleware, route head data, and WebMCP tools in TanStack Start. - [Astro](https://www.commercengine.io/docs/seo-ai/astro.md): Use Commerce Engine SEO head helpers, server middleware or static prebuild assets, and WebMCP tools with Astro View Transitions. - [SvelteKit](https://www.commercengine.io/docs/seo-ai/sveltekit.md): Add SEO/AEO surfaces and WebMCP agent tools to SvelteKit in server or adapter-static deployments. #### Reference - [Deployment & Indexability](https://www.commercengine.io/docs/seo-ai/deployment.md): Choose server or static SEO serving, configure preview noindex behavior, and validate robots, sitemaps, Markdown mirrors, and deep links. ### Agent tools - [AI Agent Tools](https://www.commercengine.io/docs/seo-ai/ai.md): Expose catalog, session, cart, navigation, and storefront content capabilities to browser AI agents through WebMCP. - [Agent Tools & Security](https://www.commercengine.io/docs/seo-ai/agent-security.md): Reference for Commerce Engine WebMCP tools, capability gating, cart semantics, session behavior, diagnostics, custom modules, and safety boundaries. - [AI Coding Agent Skills](https://www.commercengine.io/docs/seo-ai/agent-skills.md): Install Commerce Engine's ce-seo and ce-ai Agent Skills so coding assistants implement the packages using the same production contracts as the starters. ## Hosted Checkout ### Getting Started - [Overview](https://www.commercengine.io/docs/hosted-checkout/overview.md): Drop-in checkout for any website or app. A fully hosted, embeddable checkout experience that handles cart, payments, and order completion. - [Checkout Studio](https://www.commercengine.io/docs/hosted-checkout/checkout-studio.md): A no-code dashboard for configuring Hosted Checkout with real-time preview and instant publishing. - [Vanilla JS / CDN](https://www.commercengine.io/docs/hosted-checkout/vanilla-js.md): Add Commerce Engine Checkout to any website with a single script tag. No build step required. ### Framework Guides - [React](https://www.commercengine.io/docs/hosted-checkout/react.md): Integrate Commerce Engine Checkout into React apps with the useCheckout hook. Reactive state, no providers required. - [Vue](https://www.commercengine.io/docs/hosted-checkout/vue.md): Integrate Commerce Engine Checkout into Vue 3 apps with the useCheckout composable. Returns reactive refs with automatic cleanup. - [Svelte](https://www.commercengine.io/docs/hosted-checkout/svelte.md): Integrate Commerce Engine Checkout into Svelte 5 apps with readable stores. - [Solid](https://www.commercengine.io/docs/hosted-checkout/solid.md): Integrate Commerce Engine Checkout into SolidJS apps with fine-grained reactive signals. - [Astro](https://www.commercengine.io/docs/hosted-checkout/astro.md): Integrate Commerce Engine Checkout into Astro sites using the root checkout helpers. No dedicated binding needed — works with ClientRouter and framework islands. ### Reference - [Configuration](https://www.commercengine.io/docs/hosted-checkout/configuration.md): Full reference for all Hosted Checkout configuration options, events, and methods. - [Analytics](https://www.commercengine.io/docs/hosted-checkout/analytics.md): Use Commerce Engine's vendor-neutral analytics mappers with Hosted Checkout, custom SDK checkouts, or direct REST implementations. ## Packages ### storefront #### Getting Started - [Installation & Quick Start](https://www.commercengine.io/docs/sdk/installation.md): Get started with the CommerceEngine TypeScript SDK in minutes - [Configuration](https://www.commercengine.io/docs/sdk/configuration.md): Complete guide to configuring the TypeScript SDK for different environments and use cases - [Token Management](https://www.commercengine.io/docs/sdk/token-management.md): Complete guide to authentication and token management in the TypeScript SDK #### Core Features - [Type Safety](https://www.commercengine.io/docs/sdk/type-safety.md): 100% type-safe SDK with IntelliSense, compile-time checking, and OpenAPI-generated types - [Error Handling](https://www.commercengine.io/docs/sdk/error-handling.md): SDK-specific error handling patterns with type safety and automatic recovery - [Client Overview](https://www.commercengine.io/docs/sdk/client-overview.md): Overview of SDK clients with type safety and automatic token management #### Framework Integration - [React](https://www.commercengine.io/docs/sdk/react-integration.md): Complete guide to integrating the SDK with React applications - [Next.js](https://www.commercengine.io/docs/sdk/nextjs-integration.md): Integrate the Commerce Engine Storefront SDK into Next.js with server-side session management, cookie-backed tokens, and three distinct accessors for every rendering context. - [TanStack Start](https://www.commercengine.io/docs/sdk/tanstack-start-integration.md): First-class TanStack Start wrapper with automatic token management, server functions, and pre-rendering support - [Astro](https://www.commercengine.io/docs/sdk/astro-integration.md): First-class Astro wrapper with cookie-backed sessions, SSR pages, API routes, middleware, and static prerendering support. - [SvelteKit](https://www.commercengine.io/docs/sdk/sveltekit-integration.md): First-class SvelteKit wrapper with cookie-backed sessions, server load functions, form actions, hooks, and universal load support. - [Node JS](https://www.commercengine.io/docs/sdk/nodejs-integration.md): Complete guide to using the SDK in Node.js backend applications #### Advanced Usage - [Middleware System](https://www.commercengine.io/docs/sdk/middleware-system.md): SDK middleware for authentication, token management, and debugging - [Debugging & Performance](https://www.commercengine.io/docs/sdk/debugging-performance.md): Debug SDK issues with built-in logging and monitoring tools - [Migration Guide](https://www.commercengine.io/docs/sdk/migration-guide.md): Migrate from direct API calls to the type-safe SDK ### ssr-utils - [SSR Utils](https://www.commercengine.io/docs/sdk/ssr-utils.md): Build custom SSR bindings for frameworks without a first-party wrapper. Cookie-backed server token storage for Nuxt and anything else that renders on the server. ### checkout #### Getting Started - [Overview](https://www.commercengine.io/docs/hosted-checkout/overview.md): Drop-in checkout for any website or app. A fully hosted, embeddable checkout experience that handles cart, payments, and order completion. - [Checkout Studio](https://www.commercengine.io/docs/hosted-checkout/checkout-studio.md): A no-code dashboard for configuring Hosted Checkout with real-time preview and instant publishing. - [Vanilla JS / CDN](https://www.commercengine.io/docs/hosted-checkout/vanilla-js.md): Add Commerce Engine Checkout to any website with a single script tag. No build step required. #### Framework Guides - [React](https://www.commercengine.io/docs/hosted-checkout/react.md): Integrate Commerce Engine Checkout into React apps with the useCheckout hook. Reactive state, no providers required. - [Vue](https://www.commercengine.io/docs/hosted-checkout/vue.md): Integrate Commerce Engine Checkout into Vue 3 apps with the useCheckout composable. Returns reactive refs with automatic cleanup. - [Svelte](https://www.commercengine.io/docs/hosted-checkout/svelte.md): Integrate Commerce Engine Checkout into Svelte 5 apps with readable stores. - [Solid](https://www.commercengine.io/docs/hosted-checkout/solid.md): Integrate Commerce Engine Checkout into SolidJS apps with fine-grained reactive signals. - [Astro](https://www.commercengine.io/docs/hosted-checkout/astro.md): Integrate Commerce Engine Checkout into Astro sites using the root checkout helpers. No dedicated binding needed — works with ClientRouter and framework islands. #### Reference - [Configuration](https://www.commercengine.io/docs/hosted-checkout/configuration.md): Full reference for all Hosted Checkout configuration options, events, and methods. - [Analytics](https://www.commercengine.io/docs/hosted-checkout/analytics.md): Use Commerce Engine's vendor-neutral analytics mappers with Hosted Checkout, custom SDK checkouts, or direct REST implementations. ### pos #### Getting Started - [POS](https://www.commercengine.io/docs/pos/overview.md): TypeScript SDK for the Commerce Engine POS API — in-store selling, device pairing, cart management, and order capture. ### analytics - [Analytics](https://www.commercengine.io/docs/hosted-checkout/analytics.md): Use Commerce Engine's vendor-neutral analytics mappers with Hosted Checkout, custom SDK checkouts, or direct REST implementations. ### seo #### Getting Started - [SEO & AI for Storefronts](https://www.commercengine.io/docs/seo-ai/overview.md): Make Commerce Engine storefronts search-ready, answer-engine friendly, and agent-actionable with @commercengine/seo and @commercengine/ai. - [SEO & AEO Package](https://www.commercengine.io/docs/seo-ai/seo.md): Use @commercengine/seo for structured data, canonical metadata, robots, sitemaps, llms.txt, Markdown mirrors, and framework adapters. #### Framework Guides - [React / Vite](https://www.commercengine.io/docs/seo-ai/react.md): Add Commerce Engine SEO/AEO and browser agent tools to a React or Vite storefront. - [Next.js](https://www.commercengine.io/docs/seo-ai/nextjs.md): Wire @commercengine/seo and @commercengine/ai into a Next.js App Router storefront with one SEO proxy and one client agent-tools component. - [TanStack Start](https://www.commercengine.io/docs/seo-ai/tanstack-start.md): Use Commerce Engine SEO request middleware, route head data, and WebMCP tools in TanStack Start. - [Astro](https://www.commercengine.io/docs/seo-ai/astro.md): Use Commerce Engine SEO head helpers, server middleware or static prebuild assets, and WebMCP tools with Astro View Transitions. - [SvelteKit](https://www.commercengine.io/docs/seo-ai/sveltekit.md): Add SEO/AEO surfaces and WebMCP agent tools to SvelteKit in server or adapter-static deployments. #### Reference - [Deployment & Indexability](https://www.commercengine.io/docs/seo-ai/deployment.md): Choose server or static SEO serving, configure preview noindex behavior, and validate robots, sitemaps, Markdown mirrors, and deep links. ### ai - [AI Agent Tools](https://www.commercengine.io/docs/seo-ai/ai.md): Expose catalog, session, cart, navigation, and storefront content capabilities to browser AI agents through WebMCP. - [Agent Tools & Security](https://www.commercengine.io/docs/seo-ai/agent-security.md): Reference for Commerce Engine WebMCP tools, capability gating, cart semantics, session behavior, diagnostics, custom modules, and safety boundaries. - [AI Coding Agent Skills](https://www.commercengine.io/docs/seo-ai/agent-skills.md): Install Commerce Engine's ce-seo and ce-ai Agent Skills so coding assistants implement the packages using the same production contracts as the starters. - [API Reference (824 pages)](https://www.commercengine.io/docs/_llms/api-reference.txt): Documentation for API Reference. ## OpenAPI Specs - [ce-pos](https://openapi.commercengine.io/ce-pos.json) - [ce-webhooks](https://openapi.commercengine.io/ce-webhooks.json) - [ce-admin](https://openapi.commercengine.io/ce-admin.json) - [ce-storefront](https://openapi.commercengine.io/ce-storefront.json) ## Optional - [Browse all packages](https://www.npmjs.com/org/commercengine): Every published Commerce Engine package on npm. > The links below point to documentation indexes. Follow each `/_llms/` index recursively until you reach documentation pages. ## Indexes - [API Reference (824 pages)](https://www.commercengine.io/docs/_llms/api-reference.txt): Documentation for API Reference. - [API Reference / Storefront API (128 pages)](https://www.commercengine.io/docs/_llms/api-reference/storefront-api.txt): Everything a storefront calls — catalog, cart, checkout, auth, orders. - [API Reference / Webhooks (238 pages)](https://www.commercengine.io/docs/_llms/api-reference/webhooks.txt): Events Commerce Engine delivers to your endpoints — orders, payments, shipments, catalog, customers, store and marketplace. - [API Reference / Admin API (382 pages)](https://www.commercengine.io/docs/_llms/api-reference/admin-api.txt): Back-office operations — catalog management, customers, fulfilment, store settings. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.