§ how-to-use-line9

How to use Line9

View a diagram you already have

Have some Mermaid diagrams already? See them with Line9’s readable and stylish rendering by pasting your text directly into the diagram editor page. In many cases you’ll get a more usable diagram than you started with. Alternatively, if your diagrams are on disk, use the Line9 CLI with this command line9 render <diagram.mmd>.

From the diagram web page you can export SVG or PNG format images or copy the shareable URL to send your diagrams to others. Even better, with Line9 Pro, publish your diagram to your account’s workspace and get clean, durable shareable URLs and embeddable snippets for Markdown and HTML.

Create a new diagram by hand

Open the diagram editor page and write Mermaid source text into the text panel: your diagram will appear as you go. Working this way has long been the standard process for Mermaid flowchart creation (but see below for the AI-powered alternative). What’s different with Line9 is that your creative effort is rewarded with a diagram that you’ll be able to use, because it has layout that fits in a screen whilst remaining readable.

Don’t be daunted by creating a whole new diagram. We have a growing corpus of detailed, real-life examples that you can take freely as they are, or use as a template to modify for your own needs. Browse the flowchart library at Examples.

Powerful AI diagram creation

Creating flowchart diagrams with AI is made possible by an AI agent running locally alongside Line9’s new CLI tool.

Do this: install the Line9 CLI, bootstrap it (line9 bootstrap) and start an agent session with whatever local context is needed to inform the AI about your diagram. Then simply ask the AI to create a flowchart to reveal the logic and processes that document and explain your systems, your procedures, your code. The AI will create the Mermaid and then show you the diagram directly in a locally-delivered browser page. Your information remains private (unless you’re sharing it with your model provider) — none of it leaks to Line9.

Should you need to share a flowchart then publishing to your Line9 Pro account is seamless and fast — just click the button in the diagram page or enter line9 publish <diagram.mmd> at the command line.