Top
Best
New

Posted by mlysk 12 hours ago

I use Excalidraw to manage my diagrams for my blog(blog.lysk.tech)
232 points | 98 comments
afc 4 hours ago|
Looks pretty cool. I think it's great that you support light/dark mode. FWIWI, I'm also a huge fan of Excalidraw.

I wanted to ask you: is there's a reason you use a separate svg file for each (light/dark) mode?

A single SVG file using CSS can change it's own colors based on the user's preference. I have an example here: http://alejo.ch/3jj - the 3 plots should honor your mode (I put the generator code here: https://github.com/alefore/mini_svg)

Just figure I'd ask. If you have a good reason for using separate files, I'd love to hear it (because it probably would also apply to what I'm doing). :)

mlysk 4 hours ago|
My goal is that it renders on GitHub as well as on my blog. GitHub doesn’t support css based dark mode afaik
sudhirkhanger 2 hours ago||
It would have been great if Excalidraw made it easier to do manage multiple scenes. I use its PWA and save individual files on the disk.
mlysk 57 minutes ago|
I thought about forking the pwa - should be easy to add the same concept using https://developer.chrome.com/docs/capabilities/web-apis/file... but I didn't want to leave vscode
Jnr 10 hours ago||
Cool, I did a similar thing last week.

I made a custom Payload CMS block that allows to create and update excalidraw diagrams within the CMS. It supports dark and light mode switching and rendering inline or as external SVG.

And last weekend I added MCP server with Oauth so I could generate and update those diagrams and add them to post drafts from Claude. I think it is more convenient since I don't have to use API billing model and don't need to build a custom UI.

Here is an example post: https://www.janhouse.lv/blog/network/self-hosting-tailscale-...

Originally I wanted to sync posts from Obsidian but it doesn't have good enough image handling which I sometimes need and I needed extra metadata to unlist or password protect or noindex some posts.

1a527dd5 7 hours ago||
Huge fan of https://github.com/mermaid-js/mermaid, not the prettiest things but enough to scratch the itch.
mlysk 7 hours ago|
Author here: I use mermaid lot as well and for some things like process flows, and to model interactions it it outrules excalidraw and posts will follow where i need exactly that. but to visualize things high level i find excalidraw way nicer.
walthamstow 10 hours ago||
Excalidraw has proliferated quite widely in my company since we got Claude Code. Its a shame the default font is ugly, childish and inaccessible.
freedomben 2 hours ago||
I love excalidraw, but I have to agree. It also looks very unprofessional so if you ever have to write customer-facing diagrams, you have tool fragmentation. I just stick to draw.io now (aka diagrams.net)
ChadNauseam 41 minutes ago||
Why does it cause tool fragmentation? You can change the font to a normal sans-serif font or to a monospaced font.

Personally I like the default font. It looks weird to have my crappy doodles next to a normal computer font. The default one is very legible but has a style (and ligatures) that make it feel not too neat

lloydatkinson 8 hours ago||
Whiteboard handwriting is childish?
walthamstow 8 hours ago|||
It's not on a whiteboard, nor was it written by hand. It's a computer font.
lloydatkinson 8 hours ago||
The Excalidraw website describes itself as: Excalidraw is a virtual collaborative whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them.

And the GitHub repo says: An open source virtual hand-drawn style whiteboard. Collaborative and end-to-end encrypted.

It's the intended design...

walthamstow 8 hours ago||
Cool. I have stated my opinions on their intended design.
lloydatkinson 5 hours ago||
Cool. I have stated the facts of the product.
bundie 1 hour ago|||
It just looks weird not childish.
lnenad 9 hours ago||
I love diagramming, but I genuinely don't understand how people can use these wonky looking tools. It looks off, I had to make my own[1] to create something that's easy to use and looks good/normal.

[1] https://grafly.io

emaro 9 hours ago||
I like the wonky, hand-drawn looking style. I think it fits well beause usually if I use a diagram it's not 100% precise and accurate, but more a high-level illustration. The wonky style conveys the approximate precision of the presented concept.

Also, and that's personal, I think it's cute.

boomskats 7 hours ago|||
I agree with you. I think the 'wonky' comment was more to serve as justification for the plug than an actual criticism of Excalidraw.

Excalidraw is my favourite thinking tool, and the style it produces is just the right level of limiting, disarming, and professional at the same time.

lnenad 6 hours ago||
It's not, I genuinely find it harder to read diagrams. And also the plug is very relevant, I wanted to share, it's not a saas it's a free tool.
lnenad 7 hours ago||||
I agree 100% it's personal, wasn't trying to imply anything else, but for me the style takes away from the actual content and makes it harder to read/grasp.
grosswait 8 hours ago||||
I thought they were saying the tool is wonky looking, but <shrug>?
SatvikBeri 5 hours ago|||
One person's bug is another's feature.
count 6 hours ago|||
Excalidraw has a 1 click 'sloppiness' change. We do drafts and ideation in 'full sloppy' mode, to indicate to the reader that this is not fully thought through, or a final documented decision. Once we've gotten through discussions and analysis, the final diagram is changed to be 'not sloppy', and the font changed from handwriting to a san serif font.

It's pretty effective to immediately communicate to folks that 'this is a concept' approach. Too many people instantly jump to conclusions about diagrams - if it's written down it must be done / fixed / formal.

aniviacat 8 hours ago|||
In Excalidraw, you can reduce (and completely remove) the "sloppiness" in the element properties.
jaffa2 4 hours ago|||
“USING AI TO GENERATE DIAGRAMS

Click the AI button in the toolbar to copy the Grafly format reference. Paste it into any LLM (Claude, ChatGPT, Gemini…) along with a description of the diagram you want. Copy the JSON the LLM returns. Click the Import JSON button () in the toolbar and paste it in. ”

Super user friendly as well! I don’t even understand the instructions on how to use it.

geektips 7 hours ago|||
This looks really clean, nice work. I’ve had the same issues with most diagramming tools, it's either not so good looking or the insane pricing .

I went a different route using diagram-as-code with Mermaid instead of manual drawing.

[1] https://graphlet.xyz

lnenad 6 hours ago||
Thanks! I love Mermaid as well, I made it so you can import Mermaid diagrams as well.
beAbU 5 hours ago|||
The best way to drive adoption to your product is to not shit on someone else's labour of love. Just a little pro-tip.
lnenad 3 hours ago||
How did I shit on excalidraw? I don't like how it looks, it's a personal preference. I don't think saying that equates to shitting on it.
elias1233 4 hours ago|||
Whimsical is a whiteboard/diagram app that I think looks pretty nice, not too far from how yours looks
subhobroto 59 minutes ago|||
I absolutely love it that you can import mermaid. I love mermaid because I'm a huge fan of anything related to code that can I check into git, track its evolution and the thinking that went behind it.

However, those who don't know mermaid have to struggle with updating my diagrams. Your approach, atleast in theory, should get us the best of both worlds. Mermaid for those who would like to and the mouse for those who don't.

This also addresses the issue that large complex diagrams can get unwieldy using Mermaid and moving things around with a mouse would fix those edge cases.

everybodyknows 5 hours ago|||
Questions:

1. Will you be making the source code public?

2. How to export the JSON for SCM, then re-import for updating/maintenance?

lnenad 3 hours ago||
It's open source, I just haven't linked it in the project (my bad).

https://github.com/lnenad/grafly/

In the upper right there is an import/export button that could be used for this. It's stored in localstorage so you could also dump that to wherever you like.

edit: added link to the repo in the about modal. edit2: added import export of the entire localstorage entry on the bottom of the diagrams(left) panel.

Ygg2 8 hours ago|||
> It looks off

Depends on what you want to achieve with your look. Do you want to scream professionalism, authority, and completed? Use a regular UML tool.

Want to say this is a rough draft of a few ideas? Then using UML is probably THE wrong look. And Exaclidraw should be used instead.

--- Anecdote time. According to one of my professors, they showed how the prototype will look in action, and the customers were so impressed by the smoke and mirrors prototype they wanted to start using it right away.

In the end, customer walked away because they thought they were being strung along to pay for something that was already done.

atentaten 7 hours ago|||
When a background shape is in focus it comes to the foreground covering the shapes that are on top of it.
lnenad 6 hours ago||
That is by design. If you deselect it it goes back to it's layer.
dominotw 5 hours ago|||
https://news.ycombinator.com/item?id=47503348
antback 5 hours ago|||
I prefer excalidraw …
superkai 9 hours ago|||
looks awesome man !
sandos 5 hours ago||
Wow, I had no idea that excalidraw could "import" mermaid!! This is just awesome.. I can have my LLM generate mermaid, which it is really very good at. And then I can edit the diagram!
wdroz 11 hours ago||
You can also bootstrap your initial schema with LLMs with the excalidraw MCP "app" [0]. But MCP "apps"[1] are quite new and not very well supported yet.

[0] -- https://github.com/excalidraw/excalidraw-mcp

[1] -- https://modelcontextprotocol.io/extensions/apps/overview

mi_lk 11 hours ago|
I didn't have good experience with excalidraw-mcp when it first came out a month ago; the Claude-generated diagrams were too raw/unpolished. I'm sticking to mermaid for now but I'm interested in hearing how people make exclidraw-mcp work for them
mhawthorne 4 hours ago||
Interesting approach. I make heavy use of Mermaid as I find it easier to make small changes and bulk generate-and-copy for publishing elsewhere. But being able to update the diagram and automatically generate the output files is a nice hybrid.
tombert 3 hours ago|
I use Mermaid too, but a lot of that comes down to the fact that it's easier to generate it with Claude.

It can be exceedingly useful to do this if you have a big log file and you need to have a diagram of a trace, even if you're not sharing it on a blog.

jannesblobel 8 hours ago|
That fits perfectly with the idea that everything should actually be in the repository. At last, I no longer have to update the images myself. Thanks!
mlysk 7 hours ago|
Thanks for the flowers
More comments...