drawcli
v1.3.0
Published
A lightning-fast CLI tool to instantly spin up a local, fully offline `tldraw` whiteboard.
Downloads
437
Readme
drawcli
A lightning-fast CLI tool to instantly spin up a local, fully offline tldraw whiteboard.
Everything runs locally, including the web fonts, making it perfect for secure offline environments or quick diagramming on airplanes.
Installation
Install globally via npm:
npm install -g drawcliUsage
Simply run this command anywhere in your terminal:
drawThis will instantly spin up a micro-server and open a new tab in your default browser.
🚀 Persistent Offline Drawings
Your drawings are now automatically saved to a global folder (~/.drawdata)!
- The web UI features a beautiful sidebar showing all your previous drawings.
- Any changes you make are instantly auto-saved to your local hard drive.
- You can create new drawings from the sidebar or by running
draw <filename>to instantly jump into a specific file.
🔄 Smart Auto-Shutdown
The CLI is smart! When you close the drawcli browser tab, the local server will automatically stop running in your terminal, freeing up the port and keeping your system clean.
🧹 Clear All Drawings
If you ever want to completely wipe your canvas history and start fresh, run:
draw --clearLocal Development
If you want to build and test this CLI tool locally from source:
- Install dependencies
npm install- Build the optimized production bundle
npm run build- Link the package globally to test the CLI
npm link- Run the CLI
draw