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
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
Neovim
Developer Tools
Vim-fork focused on extensibility and usability
OSSvs Sublime Text★ 104k
App Store Connect CLI
Developer Tools
Fast, scriptable CLI for the App Store Connect API. Automate TestFlight, builds, submissio
MIT★ 8.3k
TypeUI
Developer Tools
Build better UI with AI
OSS★ 2.2k
Google Workspace CLI
Developer Tools
Google Workspace CLI — one command-line tool for Drive, Gmail, Calendar, Sheets, Docs, Cha
Apache-2.0vs Tavily★ 32kTesseract
Developer Tools
Tesseract Open Source OCR Engine (main repository)
Apache-2.0★ 77k
code-server
Developer Tools
VS Code in the browser
MITvs Replit★ 80k
SaaS alternatives to Terrastruct
See all
Eraser
Whiteboards
Diagramming tool for engineers with diagram-as-code and AI generation
SaaS
Archwise
Developer Tools
AI platform that generates cloud architectures for AWS, Azure, GCP and Kubernetes from an app description
SaaS
mermaidonline.live
Developer Tools
Web editor for creating diagrams and charts with Mermaid.js syntax
SaaS
Plantdiagrams
Developer Tools
AI-powered PlantUML editor that turns ideas into diagrams
SaaS
Ilograph
Docs & Wikis
Interactive system architecture diagramming tool for documenting and explaining systems
SaaS
act101
Developer Tools
Codebase quality and refactoring toolkit for coding agents, with code porting and verification
SaaS

