overthinking-canvas
by danielhe4rt
README.md
# overthinking-canvas
[](https://github.com/danielhe4rt/overthinking-canvas-rs/actions/workflows/ci.yml)

A local daemon that stores the infinite canvases the agent generates. The agent sends a `canvas.json` over MCP, the server validates it, saves it as a new version and serves it in the browser. I open it, move around and ask my question right on the item that raised it.
One Rust binary (Laravel for Rust + Inertia + React), SQLite, port 8090. The why lives in `PRODUCT.md` and the contracts in `PLAN.md`.
```text
Claude Code (canvas skill) ── POST /api/mcp ──► overthinking-canvas :8090 ──► SQLite
│
browser ◄───────┘ / · /c/{slug} · /questions
```
## What a canvas looks like

This is a showcase canvas about the project itself. It uses all 25 block types: hero, timeline, actions, charts, an image board, sticky notes, a transcript with a redacted passage, and the rest. Every frame says in its badge which blocks it uses. For the smallest document with every block, see `resources/canvas/examples/minimal.json`.
## Install
It runs on Linux only for now: the installer writes a systemd user unit. You need `cargo`, `npm`, `systemd` and Chromium at `/usr/bin/chromium` (or `CHROMIUM_PATH`).
```sh
scripts/install.sh
```
The script builds the frontend and the release binary, copies the binary to `~/.local/bin/overthinking-canvas`, creates the `.env` and the database if they are missing, writes the unit `~/.config/systemd/user/overthinking-canvas.service` and starts the service. It waits for `http://127.0.0.1:8090/up` to answer. The service starts on its own at every login.
To see what it would do without changing anything: `scripts/install.sh --dry-run`.
Open `http://127.0.0.1:8090`. Use `127.0.0.1`: in production the server only answers to the `APP_URL` host.
## Register the MCP
Only once:
```sh
claude mcp add --transport http --scope user overthinking-canvas http://127.0.0.1:8090/api/mcp
```
Tools: `canvas_catalog`, `canvas_validate`, `canvas_publish`, `canvas_list`, `canvas_get`, `canvas_questions`, `canvas_answer`, `canvas_check`, `canvas_export` and `canvas_upload_image`.
## Update after you change the code
Run `scripts/install.sh` again. It rebuilds, swaps the binary, runs the migrations and restarts the service.
## Where the data lives
Everything goes in `storage/app/`, which git ignores:
| What | Where |
| --- | --- |
| Database (canvases, versions, questions, replies) | `storage/app/database.sqlite` |
| `canvas_check` screenshots | `storage/app/checks/{slug}/v{n}/` |
| List thumbnails | `storage/app/thumbs/{slug}.png` |
| Exported HTML | `storage/app/exports/` |
## Service
```sh
systemctl --user status overthinking-canvas
journalctl --user -u overthinking-canvas -f
scripts/uninstall.sh
```
`uninstall.sh` stops and removes the service. The data and the binary stay.
## Development
```sh
laravel dev # server and Vite with hot reload
cargo test
cargo clippy --all-targets -- -D warnings
cargo fmt --check
npm run types:check
```
`laravel dev` also wants port 8090, which is the daemon's port. Stop the daemon first (`systemctl --user stop overthinking-canvas`) or run dev on another port, like `SERVER_PORT=8091 APP_URL=http://127.0.0.1:8091 laravel dev`. `APP_URL` must follow the port: it is the address `canvas_check` opens in Chromium.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues