ce

Installation
SKILL.md

LLM Docs Header: All requests to https://llm-docs.commercengine.io must include the Accept: text/markdown header (or append .md to 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 for serverStorefront()

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-nextjs is deprecated. Use @commercengine/storefront/nextjs instead.

By Task

Related skills
Installs
27
First Seen
Feb 22, 2026