Installation

Installation

Bootstrap a new project and run it locally.

Updated: 2026-07-26

Create a project

The fastest way is to scaffold with the CLI. It writes a working SSR app with routing, a layout, a loader, and an action already wired up.

bash
npx @rigbyhost/karui create my-app
cd my-app
npm run dev

Add to an existing project

Karui is a single package with no runtime dependencies. Vite is an optional peer, needed only for the dev server and bundling.

bash
npm install @rigbyhost/karui
npm install -D vite

Requirements

Node 20 or newer, Bun, or Deno. TypeScript projects set jsxImportSource to @rigbyhost/karui in both tsconfig and the Vite esbuild config.