Skip to content

Gridgram

A Mermaid-like text grammar for AI-era relationship diagrams.

Simple DSL

A small grammar that humans and LLMs both write fluently.

TypeScript library

Drop it into web apps, build scripts, servers — anywhere JS runs.

5,500+ icons

Tabler icons built in — search and use any of them instantly. tabler.io/icons ↗

SVG or PNG output

Ship to the web, docs, slides, or print — one renderer, either format.

Place icons on a grid

The primary workflow — put nodes at explicit coordinates (@A1, @B1, …) and connect them. Same diagram, two authoring styles.

How it works

Two authoring paths converge on one rendering pipeline. The gg CLI reads .gg files; the gridgram npm package takes a DiagramDef directly. Both emit the same SVG. PNG is produced by the CLI only, via sharp / libvips fetched on first use.

Ready to try it?

No signup, no API key — everything runs locally.

Built on open source

Gridgram stands on the shoulders of these projects. Licenses and notices are reproduced in THIRD_PARTY_LICENSES.md and gg --license.