Lab 2026
MermaidGenius
Describe a diagram. Share the canvas.
A browser-only Mermaid workspace: Gemini turns plain-English prompts into diagrams on an infinite canvas, and teammates edit the same canvas live over Firebase Realtime Database while each keeps a private AI thread.
What's hard about it
- Realtime sync per diagram: child-level listeners and per-field multi-path writes mean one edit sends one diagram, and collaborators see each other's selections as live presence.
- No backend, so the security rules are the authorization layer: invites are 7-day tokens checked inside the rules, and every diagram write is schema-validated.
- Invalid Mermaid goes back to the model with the parser's own error; prose streams token by token out of partial JSON while diagrams wait for the full document.