# CLAUDE.md This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. ## Project Overview This is a Svelte 5 + TypeScript + Vite single-page application. It uses the latest Svelte 5 with runes syntax (`$state()`, `$derived()`, etc.). ## Essential Commands ```bash # Install dependencies npm install # Development server with HMR npm run dev # Type checking npm run check # Production build (outputs to dist/) npm run build # Preview production build npm run preview ``` ## Architecture ### Component Structure - Components use `.svelte` files with TypeScript support via `lang="ts"` in script tags - Main entry: `src/main.ts` → mounts `src/App.svelte` - Reusable components go in `src/lib/` - Uses Svelte 5 runes syntax (not Svelte 4 syntax) ### Key Patterns 1. **State Management**: Use `$state()` rune for reactive state 2. **TypeScript**: All components should use `