Next.js
App Router, RSC-safe provider placement, metadata, and route-level themes.
npx create-next-app@latest app && cd app && npx cronus-ui@latest init- Provider in app/layout.tsx
- tokens imported in globals.css
- focus restores on navigation
Installation
New product: scaffold a composed SaaS. Existing app: run the CLI. Create Studio is for designing a visual preset first.
Recommended for a new product
npx create-cronus-app@latest my-app --template saas. Use Create Studio when you want to design a visual preset before you generate setup snippets.create-cronus-app composes a Next.js app from validated blocks (auth, dashboard shell, billing), wires the theme, and ships the AI Kit.
Scaffold a SaaS app
pnpm dlx create-cronus-app@latest my-app --template saas
npx create-cronus-app my-app --template saas — a Next.js product composed from validated blocks, with theme and AI Kit.
Get startedBuild a preset visually, save it, and generate the setup snippets for your stack.
Open CreateCompose an app stack and export a runnable default scaffold command, KICKOFF.md, and stack.json.
Open Stack Builderinit, add, compose, add-page, diff, upgrade, theme, and ai — inside any project.
Read CLI docsAdd tokens, providers, and components to an app you already created.
Choose frameworkBuild your preset visually, preview the result, save it locally, and generate the command for your stack.
Create the app with your framework's official tool, then run init inside it. The CLI is framework-agnostic and acts on the current directory.
Initialize the current project
pnpm dlx cronus-ui@latest init
Works in any project — including next, vite, tanstack-start, react-router, astro, and laravel apps.
After init, copy components from the registry into your app. Imports are rewritten to your local aliases.
Copy components into your app
pnpm dlx cronus-ui@latest add button card dialog
Using @cronus-ui/ui as a managed npm dependency instead of the CLI? A few heavy, component-specific libraries are optional peers and are not installed automatically — add them only when you import the component. CLI users skip this: add installs each item's dependencies.
| Component(s) | Install |
|---|---|
| Chart | npm i recharts |
| RichTextEditor | npm i @tiptap/react @tiptap/pm @tiptap/starter-kit |
| Kanban | npm i @dnd-kit/core @dnd-kit/sortable @dnd-kit/utilities |
| DataTable | npm i @tanstack/react-table |
| Calendar | npm i react-day-picker |
| DatePicker, DateRangePicker | npm i react-day-picker date-fns |
| Scheduler | npm i date-fns |
| Form | npm i react-hook-form zod @hookform/resolvers |
Each adapter documents where the provider, token import, and accessibility handoff should live.
App Router, RSC-safe provider placement, metadata, and route-level themes.
npx create-next-app@latest app && cd app && npx cronus-ui@latest initSPA setup with a root provider, CSS token import, and fast registry adds.
npm create vite@latest app && cd app && npx cronus-ui@latest initFile routes, server functions, and persistent theme state across route transitions.
npm create @tanstack/start@latest app && cd app && npx cronus-ui@latest initFramework mode with route modules, loader-friendly forms, and progressive UX.
npx create-react-router@latest app && cd app && npx cronus-ui@latest initIsland components with shared CSS tokens and isolated interactive surfaces.
npm create astro@latest app && cd app && npx cronus-ui@latest initBlade or Inertia setup with Vite, shared token CSS, and server-rendered forms.
laravel new app && cd app && npx cronus-ui@latest init