Getting started
- Run it: open this folder in VS Code (File → Open Folder…), open a terminal (Terminal → New Terminal), run
npm run dev, and open the address it prints. - Add your board: open
/setup/(the bar at the top of each preview page links to it) and follow its three steps: 3D, your board, publish. Drop your KiCad project’s folder on it; it copies the project intokicad/, makes the 3D model with your KiCad, writes a note for each part of the design, and replaces this example. The setup page only exists whilenpm run devruns. - Write. Pages go in
src/content/docs/like any Starlight site; notes on the parts of your design go insrc/content/groups/<board>/. Those groups come from boxes you draw in your KiCad schematic (see Writing notes). - Publish: the setup page’s step 3 walks you through putting this folder on GitHub from VS Code and connecting it to Netlify, so your site updates itself every time you commit and sync (or a one-off upload with Netlify Drop). Any static host works: it’s plain files.
By hand instead of the setup page: put the project anywhere, list it in loupe.json ("boards": [{ "project": "./kicad/my-board/my-board.kicad_pro", "slug": "my-board" }]), and for 3D on hosts without KiCad commit the web/ folder that KiCad’s web-export jobset writes next to the project (the setup page has the jobset and the steps). The site builds each board on every npm run build, so a change in KiCad shows up on the next deploy.
How the board stays on screen
Section titled “How the board stays on screen”Every page has the board in a column on the right (on a phone, a panel at the top that folds away). Astro’s client router swaps only the page beside it, so the board keeps its view, layers and selection while you read. Browsers that can’t move a live element (older Safari) get ordinary page loads instead: the board reloads on each page, everything else works the same.