Terrastruct

SaaS

D2 is a declarative diagramming language that converts text into diagrams.

Competes with

terrastruct.com
Terrastruct homepage screenshot

About Terrastruct

D2 is a modern declarative language that turns text into diagrams. It is designed to create diagrams quickly with simple syntax and is endlessly customizable. The tool is suited for teams that need to create and edit diagrams collaboratively.

D2 supports production-ready themes, sketch mode, animations, LaTeX, multiple languages, code snippets, Markdown, and tables. It includes a local CLI with watch mode, official editor support for VSCode and Vim, an online playground, and container support. It also offers multiple layout engines, font customization, imports, variables, globs, autoformat, a language API, interactive tooltips and links, class shapes, sequence diagrams, and adaptive dark mode.

Key features

  • Production-ready themes by professional designers
  • Sketch mode for a hand-drawn aesthetic
  • Animations from text
  • LaTeX support for academic use
  • Multiple language support including English, Chinese, French, and emojis
  • Code snippets with syntax highlighting

Good fit for

  • Creating diagrams for blogs, wikis, and presentations
  • Academic use and research papers
  • Software diagrams with code snippets
Tags
diagramming
declarative
text-to-diagram
cli
vscode
vim

Terrastruct: questions and answers

What is Terrastruct used for?
Terrastruct is a declarative diagramming language that converts text into diagrams. It is a good fit for creating diagrams for blogs, wikis, and presentations; academic use and research papers; and software diagrams with code snippets.
Is Terrastruct open source?
No. Terrastruct is proprietary (closed-source) software. In the Developer Tools category, open-source options include Neovim, App Store Connect CLI and TypeUI.
Can I self-host Terrastruct?
Yes. Although Terrastruct is closed source, it can be self-hosted on your own servers, and the vendor also offers a hosted version.
What are some alternatives to Terrastruct?
Terrastruct competes with Eraser.

Open-source alternatives to Terrastruct

See all

SaaS alternatives to Terrastruct

See all