logoalt Hacker News

Show HN: Prompt-to-Excalidraw demo with Gemma 4 E2B in the browser (3.1GB)

85 pointsby teamchongyesterday at 11:17 AM41 commentsview on HN

Comments

userbinatoryesterday at 9:16 PM

Am I correct in interpreting the title to mean that visiting the page will result in a 3.1GB download?

show 1 reply
locusofselfyesterday at 7:28 PM

I've had excellent luck using Claude Code to generate "mermaid diagrams" for me, and convert them to .png format headlessly using mmdc/puppeteer. Really helped me out with an engineering proposal I just finished. In past years I would have fumbled around with Visio forever and the result would have been worse.

show 2 replies
walthamstowyesterday at 7:30 PM

The Gemma models really are amazing. I was on a flight a few days ago and used E2B to do some basic research on the place I was going to, running the model locally on my Pixel 10 Pro. It gave me basically the same as Gemini or ChatGPT would do when I landed

show 3 replies
billyp-rvayesterday at 8:07 PM

> "OAuth 2.0 authorization code flow with PKCE as a sequence diagram — user, browser, app server, auth server, API"

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.

OsamaJaberyesterday at 6:40 PM

Small models in the browser are a different optimization problem than small models on a server. On server you chase throughput so you batch. In browser you're stuck at batch size 1, which means kernel launch overhead and memory bandwidth dominate, not FLOPs

xnxyesterday at 10:08 PM

It seems like Gemma should replace Gemini Nano as the AI built into Chrome.

rahimnathwaniyesterday at 5:18 PM

How does this part work?

"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?

show 1 reply
wesleynepoyesterday at 4:18 PM

Really interesting, I wish I could understand the under the hood better but I guess I don't have all the background needed.

busssardyesterday at 11:35 PM

no firefox? sad :(

Sathwickpyesterday at 6:29 PM

just tried it out, must say it's amazing the speed at which it generates these diagrams Is this opensource by any chance? Would love to take a look at the code and understand how it works

logicalleeyesterday at 3:27 PM

I love this idea. Unfortunately, it says "Unsupported browser/GPU" for me. This is Desktop Chrome version 147 (page says it requires 134+) and I have a 1060 card with 6 GB of RAM on this specific device, so it should fit. I have more than 4 GB of free RAM as well.

show 1 reply
agent37yesterday at 3:48 PM

Very cool. Did you happen to try other models like Qwen and was there a difference as opposed to Gemma ?

COOLmanYTyesterday at 1:01 PM

no firefox support?

show 1 reply
hhthrowaway1230yesterday at 1:19 PM

so multiple of these browser wasm demos make me re-download the models, can someone make a cdn for it or some sort u uberfast downloader? just throw some claude credits against it ty!

show 5 replies
nigardevyesterday at 12:36 PM

[dead]