Installation
No installation required. Use with npm/pnpm/yarn/bun:Usage
Interactive Mode
Run without arguments for interactive prompts:- Project name - Directory name for your project
- Template - Choose from available templates
- Package manager - npm, pnpm, yarn, or bun
Command-Line Mode
Provide options directly:CLI Options
Project directory name (positional argument).
Template to use. Options:
minimal, dashboard, cli-tool, animation-lab, stress-test, starship.Package manager to use. Options:
npm, pnpm, yarn, bun.Skip dependency installation.
Show available templates and exit.
Show help message.
Templates
minimal
Barebones starter with just the essentials. Features:- Single-file app
- Basic counter example
- Minimal dependencies
- No routing
dashboard
Production-ready dashboard template with routing and data visualization. Features:- Multi-page routing
- Table with sorting/filtering
- Charts (bar, line, sparkline)
- Modal dialogs
- Form validation
- Theme switcher
cli-tool
Interactive CLI tool template with command pattern. Features:- Command palette
- File tree explorer
- Code editor with syntax highlighting
- Status bar
- Keybindings help
animation-lab
Showcase of animation hooks and transitions. Features:useTransitionexamplesuseSpringphysicsuseSequencekeyframesuseStaggereffects- Container transitions
- Interactive controls
stress-test
Performance testing template with large datasets. Features:- 10,000+ row virtual list
- Real-time updates
- FPS counter
- Memory profiling
- Benchmark utilities
starship
Advanced template inspired by Starship prompt. Features:- Git status display
- Directory breadcrumbs
- System info widgets
- Custom icons
- Modular widget architecture
List All Templates
Project Structure
All templates follow a standard structure:Generated Scripts
All templates include these npm scripts:package.json
Examples
Create with Specific Template
Skip Install (CI)
Non-Interactive
Customization
After scaffolding, customize your project:Change Theme
Editsrc/theme.ts:
Add Dependencies
Configure FPS Cap
Editsrc/main.ts:
Template Development
Templates are located inpackages/create-rezi/templates/.
Adding a New Template
- Create directory:
packages/create-rezi/templates/my-template/ - Add
template.jsonwith metadata - Add template files
- Update
TEMPLATE_DEFINITIONSinscaffold.ts - Test:
npm run build && npm link
Template Metadata
template.json
Troubleshooting
Error: Directory already exists
Error: Directory already exists
The target directory is not empty.Solution: Choose a different name or delete the existing directory.
Error: Invalid package name
Error: Invalid package name
Project name contains invalid characters.Solution: Use lowercase letters, numbers, hyphens, and underscores only.
npm install fails
npm install fails
Dependency installation error.Solution: Try a different package manager or install manually:
Related Documentation
Getting Started
Installation and first app
Templates Guide
Detailed template comparison
Project Structure
Organizing your Rezi app
@rezi-ui/node
Node.js backend API