infini-create-storefront
v0.1.5
Published
Scaffold a full Eshop storefront in seconds
Readme
infini-create-storefront
Scaffold a complete, production-ready Next.js storefront powered by Infini API in seconds!
Features
- Next.js App Router: Latest Next.js best practices with React Server Components.
- Infini Storefront SDK: Fully typed data fetching and cart management.
- Infini UI library: Pre-built ShadCN-based UI components (cart drawer, checkout, etc).
- Zero Config: Scaffolds layout, global providers, authentication middleware, and required env vars automatically.
Usage
You don't need to install anything globally. Use npx or pnpm create to scaffold a project:
npx infini-create-storefront@latest my-store
# or
pnpm infini-create-storefront my-store
# or
yarn infini-create-storefront my-storeThe CLI will prompt you for:
- Storefront API URL: e.g.
http://localhost:3000/api - Public API Key: Your Infini Public API key
pk_test_... - Package Manager: npm, pnpm, or yarn
What gets built?
The CLI automatically initializes a standard Next.js application with Tailwind CSS and sets up the foundational storefront routes out of the box:
/– Home page framework/products/[id]– Product detail page skeleton/categories– Categories catalog/checkout– Secure checkout/account/*– Authenticated routes (order history, etc.) protected via Next.js middleware.
