NOW LET US – AI RAG SaaS Studio TP.HCM
NOW LET US
Digital Product Studio
Back to news
DEV-TOOLS...1 min read

I use excalidraw to manage my diagrams for my blog

Share
NOW LET US Article – I use excalidraw to manage my diagrams for my blog

The author shares their journey of automating the Excalidraw export process for blog diagrams, moving from a tedious manual workflow to a seamless VSCode extension integration that handles light and dark modes automatically.

TL;DR I use an Excalidraw, wrap the elements of interest with a frame, name it with export_ prefix, my forked excalidraw extension automatically generates SVGs for light and dark mode.

Using Excalidraw

I used Excalidraw a lot in the past.

  • When breaking down a technical problem for myself
  • When explaining a concept or an architecture to my coworkers.

Just recently a new usecase evolved: Expressing my thoughts in my Blog. While writing my first article the dependency between graphics and the text lead to a lot frustration. Fine-tuning the graphic led to an easier text. Changes in the text made me realize that some information in the graphic is not needed to grasp what should land.

The Problem

Every change in a graphic in Excalidraw meant 9 clicks in Excalidraw: Selecting the frame, pressing export, choosing names, switching modes, and re-exporting. It took about 45 seconds. Automate it!

First approach - the GitHub action

A little GitHub action that looks for changed excalidraw files, uses jq to find frames, exports them in dark and light mode, and commits those new svg files back to the repo.

Problems with approach 1

  • Rendering bugs in the library.
  • Docker image compatibility issues (x86 vs ARM Mac).
  • Slow feedback loop: pushing to GitHub and pulling back just to see local changes.

A new Idea: Add auto-export to Excalidraw

What if Excalidraw's VSCode extension would check the open file for changes and automatically export each frame? Now, I just wrap elements with a frame named export_${image_name}. The extension picks it up and saves two SVGs next to the file. This allows for live preview locally in the editor.

Conclusion

I am pretty happy with the result. It solves a real pain. I've created artifacts for the release section in my GitHub fork that allows others to download and use my extension.

© 2026 Now Let Us. All rights reserved.

Source: Hacker News

Advertisement
Ad slot ready: 5887729102

More in this category

NOW LET US Related – GLM 5.2 Is Out

dev-tools

GLM 5.2 Is Out

Zhipu AI has officially released GLM-5.2, its most powerful open-source model to date, featuring a 1M context window and advanced long-horizon task capabilities. The release underscores Zhipu's commitment to open-source AI and global scientific collaboration amid rising technological restrictions.

NOW LET US Related – Noise infusion banned from statistical products published by Census Bureau

dev-tools

Noise infusion banned from statistical products published by Census Bureau

The U.S. Department of Commerce has banned "noise infusion" from statistical products published by the Census Bureau, a decision that could have severe consequences for both data utility and privacy protection.

NOW LET US Related – Treating pancreatic tumours may have revealed cancer's master switch

dev-tools

Treating pancreatic tumours may have revealed cancer's master switch

A promising new drug called daraxonrasib has shown breakthrough results in treating pancreatic cancer, doubling median survival times. This achievement could pave the way for an entirely new class of cancer treatments.

NOW LET US Related – Every Frame Perfect

dev-tools

Every Frame Perfect

In UI design, perfection isn't just about the start and end states, but every single transition frame in between. Polishing these micro-interactions is key to building user trust.

NOW LET US Related – Leaving Mozilla

dev-tools

Leaving Mozilla

A poignant and candid reflection from a 15-year Mozilla veteran upon their departure. The author highlights the leadership's missteps in trying to emulate tech giants and urges Mozilla to return to its core values: community and uniqueness.

NOW LET US Related – Shepherd's Dog: A Game by the Most Dangerous AI Model

dev-tools

Shepherd's Dog: A Game by the Most Dangerous AI Model

A developer tested Anthropic's latest, supposedly 'too dangerous' AI model by asking it to build a long-held game idea in a single shot. The model succeeded, generating a complete 2,319-line game after a 45-minute reasoning session.

EXPLORE TOPICS

Discover All Categories

Deep dive into the specific technology sectors that matter most to you.