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 replacementpnpm build—astro check+astro buildpnpm 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
- Rebranding theme — retheme the site
- SEO checklist — pre-launch setup (site URL, OG images, sitemap)