draw
Local-first, sketch-style drawing tool. Excalidraw-inspired, built on Rust with a vanilla JS frontend.
Single binary. No cloud. Your drawings live in ~/.config/draw/drawings/.
Features
- 9 tools: Select, Rectangle, Ellipse, Diamond, Line, Arrow, Pen (freedraw), Text, Eraser
- Sketch-style fills: hachure (diagonal lines), cross-hatch, solid, none
- Full interactions: drag, resize, multi-select, rubber band, pan (scroll/space+drag), zoom (ctrl+scroll)
- Undo/redo: all operations, including batched multi-element changes
- Copy/paste/duplicate with proper ID remapping
- Z-ordering: bring to front/back/forward/backward
- Styles: stroke color/width/dash, fill color/pattern/density, opacity, font
- Export: SVG and PNG
- Document management: auto-save, dirty indicator, rename, list
- Desktop app: native window via webview (same UI, no browser needed)
- Python bindings:
import dkdc_draw - Keyboard-driven: full shortcut set,
?for help overlay
Install
From source (Rust)
From source (Python)
Development
Usage
Python
=
=
Keyboard shortcuts
| Key | Action |
|---|---|
| V | Select |
| R | Rectangle |
| O | Ellipse |
| D | Diamond |
| L | Line |
| A | Arrow |
| P | Pen (freedraw) |
| T | Text |
| E | Eraser |
| G | Toggle grid snap |
| ? | Help overlay |
| Ctrl+Z | Undo |
| Ctrl+Shift+Z | Redo |
| Ctrl+S | Save |
| Ctrl+A | Select all |
| Ctrl+D | Duplicate |
| Delete | Delete selected |
| ] / [ | Bring to front / Send to back |
Architecture
crates/
draw-core/ Document model, serialization, SVG/PNG export, tiny-skia renderer
draw-cli/ CLI binary (clap)
draw-webapp/ Axum web server (port 1213) + embedded vanilla JS frontend
draw-app/ Desktop app (wry webview)
draw-wasm/ WASM bindings for the renderer
draw-py/ PyO3 Python bindings
Development
License
MIT