Frequently asked questions

Answers about bromaid: what it is, where it runs, how it differs from Mermaid and Graphviz, licensing, and installation.

What is bromaid?

bromaid is an open-source TypeScript toolkit for diagrams-as-code. You write a tiny DSL and the library returns an SVG string. The pipeline is parse → layout → renderSVG, all pure functions with no DOM.

Where does bromaid run?

Anywhere modern JavaScript runs: Node 18+, Bun, Deno, Cloudflare Workers, the edge, CLIs, and inside React Server Components. There are no browser globals or worker URLs required.

How is bromaid different from Mermaid or Graphviz?

bromaid is a pure-function TypeScript library that returns an SVG string. There is no DOM, no client runtime, and no worker setup. Layout uses ELK; the renderer is a plain function you can call from a server, a build script, or an RSC.

Is bromaid free and open source?

Yes. bromaid is MIT licensed. The source lives at github.com/vaarvik/bromaid.

How do I install bromaid?

Install via npm, pnpm, or yarn: `npm install bromaid`. The umbrella package bundles core, layout, renderer, and theme.

Analytics cookiesWe'd like to use PostHog analytics to understand how the playground is used so we can improve it. See our privacy policy for details.