slate-pencil
v1.0.0
Published
A minimal whiteboard — pencil, paper, eraser. Draw freehand, type anywhere, share with terminal agents.
Maintainers
Readme
🪨 Slate
A minimal whiteboard — pencil, paper, eraser. That's it.
Draw freehand. Click anywhere and type — text appears right where your cursor is. No fuss.
Features
- ✏️ Pencil — freehand drawing
- 🧽 Eraser — drag to erase
- ⌨️ Text — click anywhere, start typing
- ↩️ Undo — Ctrl+Z
- 💾 Save — download as PNG
- 📎 Share — saves snapshot, copies file path to clipboard (paste in terminal for AI agents to read)
- 🗑️ Clear — fresh slate
Quick Start
npm install
npm startKeyboard Shortcuts
| Shortcut | Action |
|----------|--------|
| Ctrl+Z | Undo |
| Ctrl+S | Save as PNG |
| Ctrl+Shift+S | Share (save + copy path) |
Tests
Built with TDD (Red/Green). 34 tests.
npm testTech
- Vanilla HTML/CSS/JS — no frameworks
- Canvas 2D API
- Express server (for Share snapshot API)
- Vitest + happy-dom for testing
