- Deploy: local binary, Docker Compose, k3s manifests
## Run Locally
Backend:
```bash
cd server
go mod tidy
go run . -f etc/config.yaml
```
Frontend:
```bash
cd frontend
pnpm install
pnpm dev
```
Open `http://localhost:5173`. Next.js rewrites `/api` to `http://localhost:8888` in development. `pnpm build` runs `next build` and `vite build`, producing gzip assets in `frontend/dist`.
The canvas asset picker and drag-and-drop surface accept DWG and DXF files up to 24 MB. Conversion runs locally in a browser worker, uploads a sanitized derived SVG, and leaves the source file unchanged. DXF supports ASCII and binary drawings; DWG supports AutoCAD R14 through AutoCAD 2018 format families.
Derived CAD SVGs retain bounded semantic metadata for drawing units, layers, reusable blocks, entity types, visible labels, and crop-indexed bounds. Agent Chat sends this metadata as hidden reference context while rasterizing only the model-bound image input to transparent WebP. Vector crop keeps the original SVG and creates a smaller transparent WebP sibling beside it with crop-specific semantic context, ready for follow-up questions in Agent Chat.