Hacker News
Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in the browser (3.1GB)
userbinator
|next
[-]
locusofself
|next
|previous
[-]
system_operator
|root
|parent
|next
[-]
I just ask Claude code for mermaid to visualize any topic I'm discussing.
halJordan
|root
|parent
|previous
[-]
wongarsu
|root
|parent
|next
[-]
Writing an SVG of a pelican riding a bicycle without being able to see the result and iterate based on that is incredibly difficult by comparison. I'm sure some humans could do it, but I sure can't. That's part of the beauty of it: it's very difficult to do but a toddler could judge the results
Writing an SVG of a diagram by hand would be somewhere on the middle ground. Or depending on the number of nodes might be even harder than the pelican. Layouting diagrams can get tricky very quickly. It's also one of Mermaid's biggest weaknesses
walthamstow
|next
|previous
[-]
avadodin
|root
|parent
|next
[-]
tredre3
|root
|parent
|next
|previous
[-]
I'm very surprised by this, in my tests E2B has very limited general knowledge.
walthamstow
|root
|parent
[-]
billyp-rva
|next
|previous
[-]
If you do a Google image search for "OAuth 2.0 PKCE sequence diagram" you get good results also. Maybe if you ask for something more esoteric this becomes valuable? Of course, that also makes hallucinations more likely.
OsamaJaber
|next
|previous
[-]
rahimnathwani
|next
|previous
[-]
"The LLM outputs compact code (~50 tokens) instead of raw Excalidraw JSON (~5,000 tokens)."
I see on the left that the LLM is outputting some instructions to add nodes and edges to the diagram. But what is interpreting those commands and turning them into an Excalidraw file?
wesleynepo
|next
|previous
[-]
Sathwickp
|next
|previous
[-]
logicallee
|next
|previous
[-]
teamchong
|root
|parent
[-]
agent37
|next
|previous
[-]
hhthrowaway1230
|next
|previous
[-]
embedding-shape
|root
|parent
|next
[-]
wereHamster
|root
|parent
|next
|previous
[-]
cjbgkagh
|root
|parent
[-]
faangguyindia
|root
|parent
|next
[-]
Just like you wouldn't use same table in your system for all users in a multi tenant application.
thornewolf
|root
|parent
|previous
[-]
logicallee
|root
|parent
|next
|previous
[-]
Okay, I did so. I realize that in your later followup comment you might want something different (like for Chrome itself to cache these downloads or something) but for now I made what you asked for, here you go:
https://stateofutopia.com/experiments/ephemeralcdn/
It's an ultrafast temporary CDN for one-off experiments like this. Should be lightning fast. By including the script, you can include any file this CDN serves.
logicallee
|root
|parent
|next
|previous
[-]
Rekindle8090
|root
|parent
|previous
[-]
hhthrowaway1230
|root
|parent
|next
[-]
Or indeed use some sort of huggingface model downloader (if that exist with XET)