The ADHD Software Engineer's Toolbox
Localidraw
Open source · MIT · runs on your machine
Every diagram in your head, saved as a file in git
Localidraw serves the real Excalidraw editor, full screen in your browser, on the drawings in a folder on your machine. There's no export step and no cloud copy: what you draw is saved straight to the file.
Keep the diagrams next to the code they describe, commit them, and your teammates get them on their next git pull.

Why I built it
I think in boxes and arrows. Localidraw gives me as many Excalidraw canvases as I have ideas, kept next to the code, and shared with other people the same way the code is: through source control.
- Every folder, plus Scratch
- One Localidraw serves every folder you
localidraw add, plus Scratch, a folder of its own for when you just want to draw. - Projects and canvases
- Every folder with .excalidraw files in it is a project, and each file is a canvas, listed in a Canvases tab in Excalidraw’s own sidebar. One canvas per diagram, rather than one endless board.
- Saved as you draw
- Each canvas is written back to its file within a second of you stopping. Just opening or panning around a canvas never writes it, so browsing leaves git status clean.
- Draw alongside your coding agent
- When something else changes a file, like an agent editing the JSON or a git pull, the canvas updates within a second, merged element by element with what you have drawn since.
- A Library to share
- Keep a library.excalidrawlib at the top of a folder and your reusable shapes are shared and merged through git, just like the canvases.
- It really is Excalidraw
- It runs Excalidraw 0.18.1, the same version as the VS Code extension, so files stay compatible both ways. It works offline and only listens on 127.0.0.1.
Quick start
# Scratch, plus any folders you add$ npx localidraw --open# add a project: its drawings show up at once$ npx localidraw add ~/code/web-app# or just the current folder, on its own$ npx localidraw .
Opens at
http://localhost:3729/. Also available as a Docker image, and installable as a service. Docs at localidraw.edspencer.net, including how a coding agent should edit a canvas.More from the toolbox
Local-first, MIT-licensed tools for keeping track of everything you've got in flight. See them all