The diagramming
tool
for developers
Using general-purpose diagramming tools can feel like coding on Google Docs. D2 Studio is a modern developer tool to power all your visual documentation. Feel the difference in speed, simplicity, and maintainability.
Powering visual documentation at
D2 Studio: An IDE for diagrams
D2 Studio uniquely supports both drag-and-drop and text-to-diagram, allowing you to create both free-form and structured diagrams, all in one tool. Feel how much easier it is to create and maintain diagrams with features such as
Text-to-diagram
Syntax designed from the ground up to let you express all sorts of software architecture, and kept simple enough to learn in minutes.
Bidirectional editing
Sometimes you want to take the reins and place an object in a particular location or resize it to be just perfect. Changes you make on the board get synced to the text.
Autoformat
Never worry about syntax style or indentation. On each save, the autoformatter does the housekeeping.
Syntax highlighting
D2 comes with syntax highlighting extensions for Vim and VSCode, making it pleasant to read and edit with a native feel.
Themes & styles
Diagrams from scratch to presentable in your company blogs and wikis in a matter of minutes, personalized to a selection of beautiful themes and limitless styling options.
Icons & images
We have a wide variety of handpicked icons, as well as Google image search built into the app, all easily embeddable into D2.
The language for text-to-diagram
A modern, open-source DSL designed specifically for software architecture diagrams.
Interactive, multi-layered diagrams
Zoom in to lower levels of abstraction or out for overviews. Define scenarios for each layer (e.g. what happens when there's an error in this server?). D2 Studio is built to handle complex diagrams. Click around in this example to see what we mean.
Text for speed, GUI for precision, best of both
Some diagrams require precision, when you have a clear image in your head of what it should be. Others don't -- there's 100 ways to draw it as long as it looks good and has the right structure. Terrastruct gives you the tools to mix and match. Our GUI editor is fully-featured if you just want the traditional diagramming experience with all the benefits of multi-layered. You can even create the diagram in IDE mode then adjust in GUI mode.
Learn moreOpen-source language you can trust
D2 is a modern diagramming language developed by Terrastruct. We're not asking you to learn and adopt a niche proprietary language. D2 was open-sourced in November 2022, and has seen soaring popularity in the community.
It will be the future of using text to diagram, and it's entirely free and open-source, so even if you decide later to opt out of Terrastruct, your D2 diagrams remain just as useful and functional.
Learn moreA custom layout engine that give your diagrams a competitive advantage
We've developed a layout engine from the ground up to specifically make software architecture diagrams look amazing. Paired with D2, you won't believe how quickly you can take an idea in your head and turn it into a production-ready diagram that you'd be proud putting on your company blog, internal wiki, or client deliverables.
Learn moreTerrastruct helps software teams around the world realize the full potential of visual documentation
"...honestly impressed with the product and felt a wave of relief when I discovered it. I've been struggling the last 3 months trying to find a way to diagram what's in my head in an efficient and sustainable way as things continue to evolve and change within my environment, and this with the IDE but bi-directional GUI changes etc. By god it's beautiful, the nested boards with the ability to dive in, and the "scenarios" are exactly what I want to be able to train up my Support Engineers to be able to understand the infrastructure as it's used by clientele etc."
"I have a bunch of big and complex diagrams that are needed in a certification process. We successfully use D2 for our diagrams..."
"Amazing tool, both the layout engine and the service in general. Perhaps the best I've seen around."
"D2 is a super useful new language that anyone can learn and start to use in 10 minutes or less... we can use to generate cool looking diagrams in no time. I was so happy to discover D2."
"D2 is so much prettier and more approachable compared to PlantUML while feeling more powerful and versatile than Mermaid."
"..the [D2] syntax is dead simple, it's the perfect fit for our goal."
"It took me just a few MINUTES to take a bunch of diagrams that the engineering team made and change the styling to match the look and feel of company brand for a presentation."
“D2, un langage permettant de transformer du texte en diagrammes. Vous décrivez ce que vous voulez schématiser et il générera l'image pour vous. Je l'utilise actuellement pour les diagrammes de mes livres et c'est juste 🔥.”
“D2, a language for transforming text into diagrams. You describe what you want to map and it will generate the image for you. I currently use it for diagrams in my books and it's just 🔥.”
"D2 de Terrastruct une CLI moderne qui transforme ton code en diagramme. Facile à utiliser et avec déjà pas mal de fonctionnalités 🚀 Parfait pour les féru·e·s de schéma d'archi😁"
"D2 of Terrastruct a modern CLI that turns your code into a diagram. Easy to use and with already a lot of features 🚀 Perfect for architecture scheme enthusiasts 😁"
"I never want to drag and drop shapes on a canvas to make a diagram again…Because the diagram is essentially “code” it can be versioned in source control. Making it easy to track changes over time in a visual way."
"[Tool recommendation] D2 is a new, declarative diagramming language, that can make diagramming technical diagram a breeze"
"Enter Terrastruct, which is software created to solve the problem of managing technical documentation while remaining highly customizable. With this tool, you can see changes instantly and store them in a version control system. This lets you create a densely layered process that anyone can read and appreciate, giving the technical documentation team a powerful tool while not holding the engineering team back with new requirements."
"Don't use "Draw.io"/"Diagrams.net" to create infrastructure diagrams.
Here's how it will go: "Can we please update the name of the Galactus* service and document integration with Stripe?"
And off you go on a hunt for source files, stuck with moving arrows and boxes around, feeling like a designer in Photoshop for the rest of the day. The thing is - you are not a designer - and it definitely isn't your strength.
Ten revisions later, it's finally done, and you have wasted your time and energy.
"Wasted" - because the process is tedious; thus, documentation will only be updated "upon request", leaving it outdated most of the time. What's the point of that?
Use a different tool instead.... Use D2Lang... Think "#terraform for diagrams" or 'diagrams as a code'. D2 saves countless hours in visual diagramming tools."
A friend linked me to the Terrastruct D2 diagramming language project, and though it's still a young project it is absolutely the easiest diagram as code language I've seen.
"Terrastruct is the closest thing to the ideal diagramming tool that I've been thinking about for years."
"D2 has given me and my team the ability to go from high level whiteboard concept to low level high detail diagrams where we all leave understanding how each service and operation interacts with the other in much less an amount of time than with alternatives. It has removed the issue of same question overload by giving the ability to reference a diagram as a single source of truth all while making it super easy to add touch ups along the way without hassle. D2's fault tolerant warning first approach has removed hours of headache I'd normally experience with alternative diagramming tools and has allowed me to be ahead of schedule on delivery."
Pricing
Terrastruct Bundle
$20 month/user
Ideal for individuals, contractors, small teams
- IP of diagrams belongs to individual
- Powerful, feature-complete GUI
- Unlimited diagrams
- Unlimited boards per diagram
- Team sharing/assets
- Password-protected diagrams
- Branded presentations
- Hand-drawn style
Enterprise
$30 month/user
Ideal for engineering teams of 10+
Learn more- IP of diagrams belongs to organization
- Single Sign On (SSO)
- Audit trail (SIEM)
- Option to host on-premises
- Admin portal
- Insights & analytics
- Custom support & integrations
- License to run TALA on CI
A full diagramming stack
The Terrastruct bundle and Enterprise tiers give you the full stack of diagramming tools for your developer toolkit.
Platform to host and manage diagrams and team. Web viewer for professional presentations. Powerful GUI editor. Rich selection of icons. IDE for D2 integrated with our layout engine and bidirectional editing.
If you prefer to run everything locally and are just looking to get the benefits of our layout engine, you may also purchase a standalone TALA license:
Personal TALA license
Terrastruct’s proprietary layout engine specifically designed for software architecture