cd /news/developer-tools/show-hn-i-added-stacked-subgraphs-to… · home › topics › developer-tools › article
[ARTICLE · art-157446] src=ramraj07.github.io ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Show HN: I added stacked subgraphs to Mermaid flowcharts

A developer using the handle ramraj07 published a fork of Mermaid called ra-mermaid on GitHub that adds a new "stack layout" syntax for stacked subgraphs in flowcharts, addressing Mermaid's limitation that subgraphs do not follow direction when internal nodes connect to outside nodes. The developer said the change was produced by prompting Claude and also added local-storage snapshot saving to the mermaid.live playground. The Show HN post drew 1 point and 0 comments.

read1 min views6 publishedOct 25, 2026

I’m an avid user of mermaid but am constantly annoyed by their limitation that subgraphs do not follow direction if any internal nodes are connected to the outside. So I asked Claude to add a new syntax called stack layout and it seems to work pretty elegantly.

I also fixed my annoyance with mermaid.live and allowed this playground to save snapshots in your local storage as well. Happy to add more storage features if anyone’s interested!

The one prompt fork is at [https://github.com/ramraj07/ra-mermaid](https://github.com/ramraj07/ra-mermaid)

Comments URL: [https://news.ycombinator.com/item?id=50236250](https://news.ycombinator.com/item?id=50236250)

Points: 1

── more in #developer-tools 4 stories · sorted by recency
── more on @mermaid 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-i-added-stac…] indexed:0 read:1min 2026-10-25 · —