create-rezi, each demonstrating different architectural patterns and widget capabilities.
Quick Start
Scaffold any template with:--template <name> to skip the prompt:
Template Catalog
Dashboard (Default)
EdgeOps operations console — Product-grade dashboard with live telemetry.- Fleet control plane with stable live telemetry updates
- Incident feed with inspector and escalation runbook
- Multi-panel layout with navigation tabs
- Real-time charts and status indicators
- Deterministic update model for production stability
- State management patterns for real-time data
- Layout composition with nested panels
- Live chart updates without flickering
- Navigation and routing
- Theme switching
- Keyboard shortcuts and focus management
View Dashboard Template
Browse the complete dashboard template source code
Minimal
Single-screen utility TUI — Lean starter for focused tools.- Single-screen state flow with keybindings
- Theme cycling and inline error handling
- Lean multi-file structure
- Reducer, render, and keybinding test examples
- Hot state-preserving reload support
- Minimal app bootstrap pattern
- Reducer-based state management
- Pure view functions
- Unit testing patterns
- Global keybinding setup
View Minimal Template
Browse the complete minimal template source code
CLI Tool
Multi-screen CLI with routing — Task-oriented TUI with first-party page routing.- Home, logs, settings, and detail screens
- Router history and focus restoration
- Global route keybindings
- Breadcrumb and tabs helpers wired to router state
- Shell screen for command execution
- Router setup and navigation
- Multi-screen architecture
- Screen-level state isolation
- Breadcrumb navigation
- Command palette integration
- Focus preservation across routes
View CLI Tool Template
Browse the complete cli-tool template source code
Animation Lab
Declarative animation playground — Responsive animation showcase.- Reactor command deck with canvas visuals, charts, and gauges
- Staggered module rails with coordinated animations
- Keyboard-driven autoplay and vector nudging
- Burst impulses with resize-aware layout adaptation
useTransition,useSpring,useSequence,useStaggerhooks
- Animation hook patterns
- Canvas drawing integration
- Coordinated multi-element motion
- Responsive layout adaptation
- Spring physics and easing curves
- Staggered entrance animations
View Animation Lab Template
Browse the complete animation-lab template source code
Starship
Starship command console — Full-featured showcase with all 56 widgets.- Six-screen bridge: Bridge, Engineering, Crew, Cargo, Comms, Settings
- Routing with animated gauges and live telemetry charts
- Command palette, modal dialogs, toast notifications
- Crew management forms with validation
- Split panes, canvas visuals, and theme cycling
- Comprehensive keybinding modes
- Complete widget catalog usage
- Advanced routing patterns
- Form handling and validation
- Modal and overlay management
- Toast notification system
- Command palette integration
- Multi-theme support
- Complex layout composition
- Real-time data visualization
View Starship Template
Browse the complete starship template source code
Stress Test
Visual benchmark matrix — Performance testing harness.- Three-lane visual benchmark (geometry + text/file activity + matrix rain)
- Phase-based intensity ramp
- Deterministic sim scorecard
- Measured CPU, RSS, lag, timing, and sink throughput
- Real runtime diagnostics
- High-frequency rendering patterns
- Canvas stress testing
- Virtual list performance
- Memory profiling techniques
- Frame timing measurement
- Deterministic load simulation
View Stress Test Template
Browse the complete stress-test template source code
Template Comparison
| Template | Complexity | Widgets | Routing | Animation | Best For |
|---|---|---|---|---|---|
| minimal | ⭐ | 5-10 | ❌ | ❌ | Quick utilities, learning Rezi |
| dashboard | ⭐⭐ | 15-20 | Basic | ❌ | Real-time dashboards, monitoring |
| cli-tool | ⭐⭐ | 10-15 | ✓ | ❌ | Multi-screen CLI tools |
| animation-lab | ⭐⭐⭐ | 20-25 | ❌ | ✓ | Visual apps, animation patterns |
| starship | ⭐⭐⭐⭐ | 40+ | ✓ | ✓ | Feature showcase, learning all widgets |
| stress-test | ⭐⭐⭐ | 30+ | ❌ | ❌ | Performance testing, benchmarking |
Template Selection Guide
Choose minimal if you want:
- A single-screen utility
- Minimal boilerplate
- Fast iteration on a small tool
- To learn Rezi basics
Choose dashboard if you want:
- A production-ready starting point
- Real-time data display
- Multi-panel layout patterns
- Live telemetry and monitoring
Choose cli-tool if you want:
- Multiple screens with navigation
- Routing and history management
- Task-oriented workflows
- Command execution interface
Choose animation-lab if you want:
- To learn animation hooks
- Canvas and visual effects
- Coordinated motion patterns
- Responsive layout adaptation
Choose starship if you want:
- To see all 56 widgets in action
- Complete feature reference
- Advanced patterns and composition
- A kitchen-sink showcase
Choose stress-test if you want:
- To benchmark your terminal
- Performance profiling tools
- High-load testing patterns
- Runtime diagnostics
Example Projects
Beyond templates, Rezi includes standalone example projects in the repository:Hello Counter
Location:examples/hello-counter/
Minimal counter example from the README — perfect for understanding the basics.
Widget Gallery
Location:examples/gallery/
Interactive widget catalog browser — showcases all 56 widgets with live configuration.
Common Patterns Across Templates
Project Structure
All templates follow this structure:State Management Pattern
- Define types in
types.ts - Create reducer in
helpers/state.ts - Pure view functions in
screens/ - Wire in
main.tswithapp.view()andapp.keys()
Keybinding Pattern
All templates use this keybinding structure:q— Quit applicationt— Cycle themeshorshift+/— Toggle helpescape— Close modals/overlays- Screen-specific keys — Documented in help overlay
Theme Support
All templates support runtime theme switching viaapp.setTheme():
dark(default)lightnorddraculadimmedhigh-contrast
Running Examples from Source
Clone the Rezi repository to run examples directly:Template Customization
After scaffolding, customize these files:package.json— Update name, version, descriptionsrc/types.ts— Define your app state and actionssrc/helpers/state.ts— Implement reducer logicsrc/screens/— Build your viewssrc/main.ts— Wire keybindings and lifecycle
Next Steps
Quickstart Tutorial
Build your first Rezi app step-by-step
Widget Catalog
Browse all 56 built-in widgets
Styling Guide
Learn layout, theming, and design tokens
Testing Guide
Write tests for your Rezi applications