Recipes
End-to-end guides for common Hanzo Commerce use cases
Recipes are complete, working examples that solve specific commerce scenarios. Each recipe walks through the full implementation from project setup to production deployment.
Available Recipes
Next.js Storefront
Build a production-ready storefront with Next.js 14, App Router, and Server Components using @hanzo/commerce
Digital Products
Sell software, ebooks, and courses with instant fulfillment, license keys, and download links
Subscriptions
Set up recurring billing with plan management, upgrades, downgrades, and cancellation flows
Multi-Currency
Serve international customers with region-specific currencies, tax-inclusive pricing, and automatic conversion
Marketplace
Build a multi-vendor marketplace with vendor onboarding, split payments, and commission tracking
B2B Commerce
Enterprise commerce with customer groups, bulk ordering, purchase orders, net terms, and quote requests
Prerequisites
All recipes assume you have:
- A Hanzo account with an API key (hanzo.ai)
- Node.js 18+ and npm/pnpm installed
- Basic familiarity with the Quick Start guide
- The
@hanzo/commerceSDK installed:
npm install @hanzo/commerceRecipe Structure
Each recipe follows a consistent format:
- Goal -- what you will build
- Prerequisites -- specific requirements beyond the basics
- Step-by-step implementation -- code you can copy and run
- Testing -- how to verify everything works
- Next steps -- where to go from here
Suggesting a Recipe
If you have a use case that is not covered, open an issue on the hanzoai/commerce repository with the recipe-request label.
How is this guide?
Last updated on