Use the CLI
Start from a Crave storefront template with components and SDK wiring included.
Existing app
Add the SDK, shared UI dependencies, and component source to an app you already own.
Project structure
See where components, API helpers, and shared utilities should live.
Use the CLI
For new storefronts, start with the Crave CLI. The generated template includes the Storefront SDK, component files, Tailwind setup, and environment variables.Existing app
For an existing React or Next.js app, install the SDK first:components directory and adapt imports to match your aliases.
Project structure
Use a structure that keeps UI, data access, and ordering state separate:Configure the SDK
Create a shared Storefront SDK client and import it from your data loaders, hooks, or server actions.Import components
Crave component docs use local imports so you can customize the implementation:Next steps
Components Overview
Browse the full component catalog.
Storefront SDK
Configure the typed API client used by the components.
Display Menu
Fetch menu data and render categories, products, and modifiers.
Manage Cart
Wire cart creation, item updates, discounts, and checkout handoff.