# CLAUDE.md ## Project Overview `datascape` is a minimal personal wiki where **the folder structure is the wiki**. No database, no CMS, no abstraction layer — every folder is a page, and `index.md` in a folder is that page's content. ## Build & Deploy ```bash # Local build (host architecture) go build . # Deploy to NAS make deploy ``` ### Editor bundle (the one build-pipeline exception) The page editor uses CodeMirror 6, vendored as a single pre-built IIFE at `assets/editor/vendor/codemirror.bundle.js` and embedded via `embed.FS`. This is the **only** deliberate exception to the "no build pipeline" rule below — it is a one-time, committed artifact, not a runtime build. `go build` / `make deploy` never touch Node and only consume the committed bundle. Regenerate the bundle **only** when upgrading the `@codemirror/*` versions: ```bash # bump versions in editor-build/package.json first, then: make editor # runs `npm ci && npm run build` in editor-build/, rewrites the vendored bundle ``` Commit the regenerated `codemirror.bundle.js` and the updated `editor-build/package-lock.json`. `editor-build/node_modules/` is gitignored. The bundle is served immutable under a stable filename, so the edit template appends `?v=` to its `