Skip to main content
All guides
Briefing 01 of 08

Getting started

Clone, install, and run Cosmo locally.

Last updated

Prerequisites

  • Node 22 LTS or higher (see .nvmrc)
  • A Node package manager: pnpm (recommended), npm, or yarn. Cosmo ships a separate template variant per package manager — pick the one matching your tool below.

Installation

Commands

The template ships scripts that work the same with any package manager. With pnpm:

  • pnpm dev — local dev server with hot module replacement
  • pnpm buildastro check + astro build
  • pnpm typecheck — type-check only (also runs on pre-push via Lefthook)
  • pnpm check — Biome lint + format (also runs on staged files on pre-commit via Lefthook)
  • pnpm check:fix — Biome with autofix

Substitute npm run <script> or yarn <script> if you’re not on pnpm.

Next steps

Cookieless analytics and no session replay. We respect your personal space.