Skip to content

devhindo/draw

Repository files navigation

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 drawcli

Usage

Simply run this command anywhere in your terminal:

draw

This 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.

🧹 Clear All Drawings

If you ever want to completely wipe your canvas history and start fresh, run:

draw --clear

Local Development

If you want to build and test this CLI tool locally from source:

  1. Install dependencies
npm install
  1. Build the optimized production bundle
npm run build
  1. Link the package globally to test the CLI
npm link
  1. Run the CLI
draw

About

start creating tldraw diagrams directly from a single cmd - 100% works locally with no single API call

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors