ce
LLM Docs Header: All requests to
https://llm-docs.commercengine.iomust include theAccept: text/markdownheader (or append.mdto the URL path). Without it, responses return HTML instead of parseable markdown.
Commerce Engine Skills Router
These skills cover B2C storefronts. B2B storefronts use the same SDK patterns plus customer-group-aware pricing and headers.
Current SDK Mental Model
All frameworks install @commercengine/storefront — a unified package with subpath exports per framework:
- SPA (
@commercengine/storefront):createStorefront(...)→storefront.public()/storefront.session() - Next.js (
@commercengine/storefront/nextjs):createNextjsStorefront(...)→storefront.publicStorefront()/storefront.clientStorefront()/await storefront.serverStorefront() - TanStack Start (
@commercengine/storefront/tanstack-start):createTanStackStartStorefront(...)→storefront.publicStorefront()/storefront.clientStorefront()+ server entry forserverStorefront()
Core principle: public reads use the public accessor (API-key-backed, build-safe). Live session flows (auth, cart, orders) use the session/client/server accessor.
@commercengine/storefront-sdk-nextjsis deprecated. Use@commercengine/storefront/nextjsinstead.
By Task
More from commercengine/skills
ce-cart-checkout
Commerce Engine cart management, checkout flow, and payment integration. Hosted checkout (recommended) and custom checkout with Cart CRUD, coupons, loyalty points, fulfillment, and payment gateways.
58ce-orders
Commerce Engine order management - create orders, list/detail, shipment tracking, payment status, cancellation, and refunds.
40ce-catalog
Commerce Engine product catalog - products, variants, SKUs, categories, faceted search, reviews, and recommendations.
31ce-setup
Set up the Commerce Engine TypeScript SDK in any project. Framework detection, public vs session client selection, token storage choices, environment variables, and migration guidance.
27ce-auth
Commerce Engine authentication and user management. Anonymous sessions, OTP login, password auth, token refresh, profile management, and account flows.
27ce-webhooks
Commerce Engine webhook events and syncing. 14 event types for orders, payments, refunds, and shipments. Signature verification and async processing patterns.
21