frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://line9.ai/diagram
38•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•2h ago
Looks cool. Price is pretty steep. Lucid chart is like $16/month.
iamcoder18•2h ago
This solves my biggest gripe with Mermaid.

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

doublerabbit•2h ago
Well, it is. Mermaid.js

Just vibe code a user interface to it.

nylonstrung•2m ago
Is this not open source enough for your purposes?

https://github.com/mermaid-js/mermaid https://github.com/mermaid-js/mermaid-live-editor https://github.com/mermaid-js/mermaid-cli

WalterGR•2h 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.

sbarre•2h ago
FYI for any new or casual Mermaid users, it comes with a built-in alternate layout called `elk` that I find does a much cleaner job on complex flowcharts.

See docs here: https://mermaid.ai/open-source/config/layouts.html

CGamesPlay•38m ago
This is super interesting, but apparently neither Obsidian nor Typora include support for it. I guess it's actually provided by an optional plugin.

https://mermaid.ai/live/edit#pako:eNplUlFPwjAQ_ivNPW9EkMHWB4...

hankbond•1h ago
I have a bunch of bad layouts so I'll give it a shot, but there's no way my org would pay 120 a year per seat for this. I don't think for any price it would get through procurement to be honest. Also we mostly render mermaid in confluence documents with a macro that renders it from the source in the document. Not sure how that would relate to this pricing/auth model.

Not trying to throw any shade or dissuade you from trying to earn a living, just providing feedback.

nylonstrung•3m ago
https://frankorz.com/merman/ Here's a pretty solid Rust reimplementation of Mermaid btw

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

https://line9.ai/diagram
38•jumpalongjim•5d ago•9 comments

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

https://photosynthesis.camera
226•sajomes•3d ago•228 comments

Show HN: Tamron Lens Utility Alternative on Linux

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

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

https://github.com/TheRealYT/git-knife
143•YonathanTesfaye•12h ago•88 comments

Show HN: Write.md – A free, open-source, themeable Markdown editor for macOS

https://writemd.app/
86•danielbilekq•14h ago•68 comments

Show HN: Mcptoon – Token-efficient MCP CLI client

https://github.com/activeing123/mcptoon
70•mcptokensaver•22h ago•43 comments

Show HN: Needle2: 14MB agentic LLM for phones, wearables, smart home and robots

https://cactuscompute.com/needle
510•HenryNdubuaku•1d ago•171 comments

Show HN: Ante, a coding agent in a single binary that runs offline

https://github.com/AntigmaLabs/ante
159•ubermon•1d ago•88 comments

Show HN: TermDOM – HTML, CSS and JavaScript (With a Real DOM) for TUIs and CLIs

https://github.com/bikeshaving/termdom
9•bikeshaving•9h ago•0 comments

Show HN: Scroll through all 43252003274489856000 Rubik's Cube states

https://everycube.alen.is/
285•Alen123•1d ago•115 comments

Show HN: I wrote the emudev hello world (CHIP-8 emulator in C)

https://github.com/Tackx/c8
3•tack1234•5h ago•0 comments

Show HN: MacPacker – open-source archive manager for macOS, now edits ZIPs

https://github.com/sarensw/MacPacker
4•sarensw•5h ago•3 comments

Show HN: Supply-Wizard; Start Selling Data with an Easy Vendor Checklist

https://brickroad.network/supplier-wizard
2•dataranger•5h ago•1 comments

Show HN: Voice driven murder mystery, Interview AI suspects with your voice

https://www.whodunnitai.com/
208•MrRowTheBoat•2d ago•86 comments

Show HN: Tokyo Trains

https://greggman.github.io/tokyo-trains/
10•greggman65•12h ago•1 comments

Show HN: Openleetcode – local LeetCode runner where tests live in the repo

https://github.com/therepanic/openleetcode
3•therepanic•7h ago•0 comments

Show HN: p0rt – see every dev server, port and Docker container in your menu bar

https://p0rt.app
3•ddeunert•7h ago•0 comments

Show HN: ThinkingType, an eval measuring if fonts change VLM judgments

https://github.com/wdanfort/thinkingtype
3•bwuckner-sf•8h ago•1 comments

Show HN: A tiny LLM running at 21,000 tok/s on a $250 FPGA (Live Demo)

https://www.mikeayles.com/blog/on-chip-llm-kv260/
75•mikeayles•1d ago•24 comments

Show HN: Pulp – Zero-allocation C11 telemetry engine (28M logs/SEC to disk)

https://github.com/superwired-labs/Pulp
5•superwired_labs•8h ago•1 comments

Show HN: HyperSAE – Hyperbolic Sparse Autoencoders for LLM Interpretability

https://github.com/vishal-dehurdle/hypersae
3•visha1v•9h ago•0 comments

Show HN: A Project Oberon System version running on RISC-V instead of RISC-5

https://github.com/rochus-keller/OberonSystem/tree/op2-rv32
121•Rochus•2d ago•19 comments

Show HN: AI Pulse a fake LED strip beside the macOS Dock that shows agent status

https://github.com/leog/ai-pulse
18•leog_me•1d ago•12 comments

Show HN: Proxima serves 4x more requests with no hardware change on vLLM

https://github.com/Tenosra/Proxima
3•pythongiant•12h ago•1 comments

Show HN: The self-improving QA agent for software teams

https://vostride.com
3•pranshuchittora•13h ago•0 comments

Show HN: C# Game Engine with its own scripting language and IDE

https://github.com/ArcadeMakerSources/ArcadeMaker
2•am-gm•13h ago•0 comments

Show HN: Parley – your coding agent can talk to a teammate's agent

https://parley.weldra.dev
7•tyagivivek•14h ago•4 comments

Show HN: drawtonomy – Draw and run driving scenarios in the browser

https://github.com/kosuke55/drawtonomy
3•kosuke55•14h ago•2 comments

Show HN: Higher-dimensional lattices unfolded into the 2D plane

https://number-garden.com/?@THLP@
18•unitX•5d ago•1 comments

Show HN: Tesserae, self-hosted dashboards for e-ink panels

https://tesserae.ink/
4•xDaftTurtle•16h ago•3 comments