Installation
Prerequisites
Section titled “Prerequisites”- Node.js 22 or higher
- A frontend project with TypeScript
Install
Section titled “Install”# npmnpm install -D screenbook
# pnpmpnpm add -D screenbook
# yarnyarn add -D screenbookInitialize
Section titled “Initialize”Run the init command to set up Screenbook in your project:
npx screenbook initThis will:
- Auto-detect your framework (Next.js, Vite, Remix, Nuxt, Astro)
- Create
screenbook.config.tswith appropriate patterns - Add
.screenbookto.gitignore
Verify Installation
Section titled “Verify Installation”Check that the CLI is working:
npx screenbook --helpYou should see the list of available commands.
Next Steps
Section titled “Next Steps”- Quick Start - Create your first screen definition
- Configuration - Customize Screenbook settings