Discover more ways to diagram with D2
Official and community-made plugins for D2 to fit into your existing workflows. Can't find something? Let us know on Github. If you'd like to contribute to D2's ecosystem, we're happy to include it here with credit.
Official plugins
VSCode extension
Syntax highlight your D2 files on VSCode
VIM extension
The Vim plugin for D2 files
Obsidian plugin
Create D2 diagrams directly in your Obsidian files
D2 app for Slack
The D2 app for Slack lets you create beautiful diagrams on the fly with a /d2 command
Atlassian Confluence plugin
Include D2 Studio diagrams in your Confluence pages for the whole team.
Community plugins
- Tree-sitter grammar D2 grammar for tree-sitter Bypleshevskiy
- Emacs major mode Emacs major mode for D2 diagrams Byandorsk
- Goldmark extension Goldmark extension for D2 diagrams ByFurqanSoftware
- Telegram bot A Telegram Bot which replies to messages with D2 diagrams Bymeinside
- Postgres importer Create a D2 ERD Diagram from your existing PostgreSQL schema Byzekenie
- Structurizr to D2 exporter Provides a way to export Structurizr views to diagram definitions that are compatible with D2 Bygoto1134
- MdBook preprocessor D2 diagram generator plugin for MdBook Bydanieleades
- ROS2 D2 exporter Exports ROS2 nodes (publishers, subscribers and services) into a D2 file ByGreenroom-Robotics
- D2 org-mode support Org-Babel support for evaluating D2 diagram scripting language Byxcapaldi
- Python D2 diagram builder A fully typed Python interface for building D2 diagrams ByMrBlenny
- Clojure D2 transpiler From Clojure to D2, and back again! Byjudepayne
- JavaScript to D2 An unofficial interface for building D2 diagram files in Javascript. ByKreshnik
- Maven plugin Unofficial D2lang Maven plugin Byandrinmeier
- Confluence plugin Macro for embedding D2 diagrams in your Confluence pages. Byandrinmeier
- CIL to D2 An unofficial converter for CIL(C#, Visual Basic, F#, C++ CLR) DLL's to D2 ByHugoVG
- D2 Snippets Collection of code snippets for D2 that can be used in any text editor that supports snippets. ByParacelsus-Rose
- Mongo to D2 Generate D2 diagrams from MongoDB schemas. Bynovuhq