Using create-vertz-app (recommended)
The fastest way to get started:Manual setup
Add Vertz to an existing Bun project.1. Install packages
vertz meta package includes the UI runtime, compiler, and all core packages. @vertz/theme-shadcn provides design tokens for the css() utility (optional but recommended).
2. Configure TypeScript
Update yourtsconfig.json to use the Vertz JSX runtime:
jsx: "react-jsx" and jsxImportSource: "@vertz/ui" — this tells TypeScript to use the Vertz JSX factory instead of React’s.
3. Create the entry point
Createsrc/app.tsx:
4. Start the dev server
The Vertz CLI provides a dev server with SSR and HMR:package.json scripts:
- Compiles
.tsxfiles through the Vertz compiler plugin - Server-side renders on first load
- Hot-reloads with state preservation (HMR)
- Extracts and injects scoped CSS
Project structure
A typical Vertz project looks like this:Next steps
Components
Write your first component with props and children.
Styling
Scoped CSS with
css() and parameterized styles with variants().