Storefront reference
These pages are generated from the storefront’s own source each time the docs are built, so they always match the code on main. They show what is exported and documented, as written in the source: names, signatures, prop types and doc comments.
Environment variablesEvery variable the storefront reads, grouped, with build-time or runtime and what it does.
RoutesEvery page and API route of the theme, with its methods and what it does.
GraphQL operationsEvery GraphQL document the engine defines, per feature: browser or server-only, and the modules it needs.
ComponentsThe theme's components by folder, with their props: commerce, layout, UI primitives, analytics, structured data and more.
Engine API@magenxcommerce/engine: providers and hooks, Apollo setup, Magento helpers, utilities and the agentic-commerce handlers.
How the code is organised
Section titled “How the code is organised”| Layer | Where | Reference |
|---|---|---|
| Engine | packages/engine/src/ | Engine API (one page per area), GraphQL operations (from features/) |
| Theme components | apps/theme/src/components/ | Components (one page per folder) |
| Routes | apps/theme/src/app/ | Routes |
See Engine and theme for how the layers fit together, and Customising a fork for overriding a component.
Keeping it useful
Section titled “Keeping it useful”The reference is only as good as the doc comments in the code. A /** … */ comment above an exported function, component, prop or type appears here as written; a file’s leading comment introduces it. Plain inline Markdown works: code, bold, lists and links.