frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Line9 – A Mermaid rendering engine with its own layout

https://line9.ai/diagram
20•jumpalongjim•5d ago
Line9 is a new rendering engine for Mermaid flowchart diagrams that aims to remove the need for manual adjustment of layout. Mermaid is a popular text-based language for describing multiple types of diagrams.

Several Mermaid rendering engines already exist. Most, like the original mermaid.js, use Dagre or ELK graph drawing libraries to automatically lay out their diagrams. I’ve used Mermaid for the past four years but often recreated my flowcharts in a diagram editor so that I could modify the layout to something that better suited my needs.

Use Line9 when you want an automatic flowchart arrangement that optimises for clear communication. It seeks to layout flowcharts with regular grid spacing, closer positioning of related nodes, shorter, straighter edges and targets a page-like aspect ratio. The Compare button in the /diagram page (share panel on the left) shows you the Line9 and mermaid.js renders next to each other.

Use for free, no account required. A CLI tool can also be downloaded for Mac, Windows and Linux. Free-use diagrams carry a watermark. Commercial use of the CLI requires a paid account and you also get diagrams without watermarks. Line9 is not open source (I need to create an income and the business model is being tested).

I’ve tried to encode and automate the layout principles I use when creating flowcharts by hand. All rendering takes place in the browser, so no private data is sent to the web service. The CLI is written in Rust and embeds the renderer so you get a single binary install and all data and processing remains local. It’s currently a little slower than mermaid.js, due to the difficulty of solving node positioning and edge routing simultaneously to find the layout that best meets the design principles.

Output is produced in SVG or PNG formats. Diagrams can also be shared via a URL with a fragment that embeds the Mermaid text.

Things I know still need improvement: positioning and rotating subgraphs, folding graphs to hit good aspect ratios more often, further improvement on edge label placement, better interaction with long node labels and tidying up the display when scaling down. Then I also want to support more diagram types and the website needs lots of work.

Please paste your own Mermaid flowcharts into Line9 – particularly the ones that you previously discarded because the layout was bad. Let me know whether they improve, or what other work is needed.

Comments

ryanackley•42m ago
Looks cool. Price is pretty steep. Lucid chart is like $16/month.
iamcoder18•26m ago
This solves my biggest gripe with Mermaid.

It's an amazing tool, but I wish it were open source.

WalterGR•12m ago
Graph layout is a very interesting, very hard problem.

There's even a yearly competition - started in 1994 - whose results are announced at the yearly Symposium on Graph Drawing and Network Visualization.

It's not a subject I'm versed in, but can you talk more about your solution? Do you use a larger constraint solver or is it hand-coded?

--

Competition: https://mozart.diei.unipg.it/gdcontest/

The 34th International Symposium on Graph Drawing and Network Visualization, to be held in Ontario, Canada: https://graphdrawing.github.io/gd2026/

n.b. It's an independent conference, not under the auspices of e.g. IEEE or ACM.

WorldClaw Agentic 3D open-world generation at scale

https://tencent-hunyuan.github.io/Hunyuan3D-WorldClaw/
108•EwanG•3h ago•39 comments

CFTC declares market emergency, orders Kalshi to continue to operate in New York

https://www.cftc.gov/PressRoom/PressReleases/9281-26
89•michaefe•1h ago•49 comments

Nvidia Nemotron 3.5 Lightning and NeMo Switchyard

https://blogs.nvidia.com/blog/nemotron-lightning-switchyard-rtx-dgx/
177•droidjj•5h ago•90 comments

Compression is prediction

https://ngrok.com/blog/compression-is-prediction
242•nikolay•5h ago•103 comments

Mojo 1.0

https://www.modular.com/blog/modular-26-5-mojo-1-0-is-here
283•dayanruben•8h ago•128 comments

Stealing Reasoning Traces from Proprietary LLM APIs

https://stolen-thoughts.com/
485•quantumgarbage•12h ago•204 comments

OpenAI’s head of ethics leaves less than a year after joining

https://www.ft.com/content/e49dfb75-f841-4466-a577-f7aaff8779a0
272•ilamont•13h ago•343 comments

Making holograms with a pen plotter

https://blog.jordan.matelsky.com/Penplotter-holography/
112•DemiGuru•6h ago•11 comments

Show HN: iPhone app takes simultaneous images from 2 lenses, fuses into 1 photo

https://photosynthesis.camera
199•sajomes•3d ago•204 comments

Show HN: Line9 – A Mermaid rendering engine with its own layout

https://line9.ai/diagram
20•jumpalongjim•5d ago•3 comments

Grok Bot

https://x.ai/bot
129•rvz•8h ago•116 comments

US hires over 2k video gamers as air traffic controllers

https://www.cbsnews.com/news/video-gamer-air-traffic-controllers-faa-recruitment-sean-duffy/
66•shagie•1h ago•49 comments

Go is an ideal language for AI-assisted software engineering

https://developers.googleblog.com/why-go-is-an-ideal-language-for-ai-assisted-software-engineering/
255•0xedb•8h ago•314 comments

Show HN: Tamron Lens Utility Alternative on Linux

https://github.com/yikerman/tamron-lens-control
18•xiaoyu2006•4d ago•0 comments

Suzanne: AI tool for designing and manufacturing physical products

https://www.suzanne3d.com/
36•Samanthajeanneb•3h ago•26 comments

Retire the Abstractions

https://hazyresearch.stanford.edu/blog/2026-08-05-retire-the-abstractions
4•convexstrictly•6d ago•0 comments

How we used to get jobs: A newspaper classifieds story

https://ironicsans.ghost.io/how-we-used-to-get-jobs/
108•speckx•7h ago•89 comments

pg_clickhouse v0.10: Subquery pushdown and 1000x faster TPC-H queries

https://clickhouse.com/blog/pg_clickhouse-whats-new-july-2026
32•saisrirampur•3h ago•2 comments

England set to be one of the first countries to eliminate hepatitis C

https://www.bbc.com/news/articles/c75gk620r22o
487•stevekemp•12h ago•349 comments

Jolt: Clojure compiler implemented with Chez Scheme

https://jolt-lang.github.io
144•mark_l_watson•3d ago•53 comments

RSI Simulator

https://www.paradigm.xyz/writing/rsi-simulator
30•ckraeuter•8h ago•12 comments

Nvidia's Risky Business

https://stratechery.com/2026/nvidias-risky-business/
291•jonbaer•15h ago•138 comments

Manus will return to operating as an independent company

https://manus.im/blog/a-note-to-our-users
131•thm•11h ago•68 comments

Show HN: Git-knife – Edit commit messages, authors, and dates like a spreadsheet

https://github.com/TheRealYT/git-knife
128•YonathanTesfaye•10h ago•85 comments

London Underground begins scanning passengers' faces

https://www.btp.police.uk/news/btp/news/england/btp-expands-live-facial-recognition-lfr-trial-int...
218•BlueBerry2001•15h ago•252 comments

CSS properties you should know for better text designs

https://master.dev/blog/typographic-css-tricks/
74•ibobev•8h ago•7 comments

Emergent Introspective Awareness in Large Language Models

https://arxiv.org/abs/2601.01828
23•doener•4h ago•9 comments

OpenSSH 10.5/10.5p1

https://www.openssh.org/releasenotes.html#10.5
99•voxadam•7h ago•32 comments

The Hat and the Spectre – Recent Groundbreaking Discoveries in Mathematics

https://momath.org/the-hat/
14•vismit2000•3d ago•2 comments

What I learned by putting GitHub Copilot behind a MitM proxy

https://www.lighthousenewsletter.com/p/i-put-github-copilot-behind-a-mitm
159•j0selit0•14h ago•24 comments