question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi there, I was wondering, what if we have a CLI for excalidraw?

excalidraw my-drawing.excalidraw

This will open a browser. If my-drawing.excalidraw already exists, it will load it.

When user clicks “save” button, it won’t show the dialog but quietly save to my-drawing.excalidraw.

excalidraw my-drawing.excalidraw --export

with --export given, whenever user saves, the PNG version is exported as well.

excalidraw my-drawing.excalidraw --export images/my-drawing.png

I guess this can unblock new workflows, for example, for developers who want to have drawings in their git repository.

What do you think?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:16
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
tommywalkiecommented, Jun 20, 2020

Hello there, I’m currently trying to implement it in the following repo : tommywalkie/excalidraw-cli. A lot of CLI key features / refactoring / testing are still work-in-progress but it already works for directories with *.excalidraw files.

Early concept demo

demo

I may consider opening another issue to export some useful Excalidraw renderer methods and constants (especially drawElementOnCanvas()) so it can be easily integrated with this tool.

4reactions
lipiscommented, Feb 14, 2021

I didn’t follow the whole conversation… but should we maybe create an official excalidraw/excalidraw-cli repo and take it from there? It seems that we need this tool.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Experimental Excalidraw CLI tool - GitHub
Experimental Excalidraw CLI tool. Parses Excalidraw JSON schemas ( *.excalidraw ) into PNGs ( *.png ). This project is a follow-up to excalidraw#1261...
Read more >
@tommywalkie/excalidraw-cli - npm
Experimental Excalidraw CLI tool. Latest version: 0.5.0, last published: 2 years ago. Start using @tommywalkie/excalidraw-cli in your ...
Read more >
Excalidraw | Hand-drawn look & feel • Collaborative • Secure
Excalidraw is a virtual collaborative whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them.
Read more >
Excalidraw | npm.io
excalidraw/excalidraw, aakansha-excalidraw, @excalidraw/utils, ... Custom transformer to embed Excalidraw diagrams ... Experimental Excalidraw CLI tool.
Read more >
@tommywalkie/excalidraw-cli v0.5.0 Bundlephobia
Size of @tommywalkie/excalidraw-cli v0.5.0 is 358.5 kB (minified), and 101.6 kB when compressed using GZIP. Bundlephobia helps you find the performance ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found