Skip to content
Day 69: new resources are added every day. See what's new

Desktop App

D2

A diagram scripting language that turns plain text into clean diagrams.

Visit D24.6
  • Rating

    4.6 / 5

  • Pricing

    Free

  • Difficulty

    Intermediate

  • Works on

    macOS, Windows, Linux

Built with love by Shushant Lakhyani. Building bestproductivityresources.com

What is D2?

D2 is a free, open-source language for drawing diagrams from text. Describe boxes, arrows and groups in a few readable lines and D2 lays them out automatically as SVG, PNG or PDF, with themes, sketch mode and live preview, so architecture and process diagrams take minutes instead of hours.

Third-party open-source projects. We are not affiliated with their authors; repositories are provided as-is by their maintainers. Review each project's license, code and security before installing. See our Disclaimer.

Pros: what D2 does well

  • Readable text syntax
  • Automatic, tidy layouts
  • Free and open source

Cons: where it falls short

  • Command line first
  • Some layout engines are paid add-ons

Who D2 is for

Developers and writers who want diagrams they can version and edit as text.

Who can skip it

Anyone who prefers drawing diagrams by hand on a whiteboard app.

D2 alternatives

Not sold on D2? These do a similar job, and each card says what it has in common.

reladraw

Focus: svg and architecture diagrams. Shares diagrams and diagram as code with D2. A framework, not a desktop app. Adds Web. Rated 4.5 (D2: 4.6).

FrameworkFreeWeb, Cross-Platform

Whiteboard

Focus: software design, code review and claude code. Shares diagrams and open source with D2. Rated 4.5 (D2: 4.6).

Desktop AppFreemacOS, Windows

Bruno

Focus: api client, api testing and postman alternative. Shares open source and github with D2. Same 4.6 rating.

Desktop AppFreeWindows, macOS

delta

Focus: git, diff and code review. Shares open source and github with D2. Same 4.6 rating.

Desktop AppFreemacOS, Windows

RustDesk

Focus: remote desktop, remote support and self-hosted. Shares open source and github with D2. Same 4.6 rating.

Desktop AppFreemacOS, Windows

Zed

Focus: code editor, pair programming and ai coding. Shares open source and github with D2. Freemium (D2: Free). Same 4.6 rating.

Desktop AppFree planmacOS, Windows

Free alternatives to D2

Want to spend nothing? These free picks cover similar ground.

dufs

Focus: file sharing, file server and upload. Shares open source and github with D2. Rated 4.4 (D2: 4.6).

Desktop AppFreeCross-Platform

fzf

Focus: fuzzy finder and shell. Shares command line and open source with D2. Rated 4.8 (D2: 4.6).

Desktop AppFreemacOS, Windows

Atuin

Focus: shell history, terminal and sync. Shares command line and open source with D2. Rated 4.7 (D2: 4.6).

Desktop AppFreemacOS, Linux

bat

Focus: file viewer and developer tool. Shares command line and open source with D2. Rated 4.7 (D2: 4.6).

Desktop AppFreemacOS, Windows

chezmoi

Focus: dotfiles and config management. Shares command line and open source with D2. Rated 4.7 (D2: 4.6).

Desktop AppFreemacOS, Windows
Are you the maker of D2?Get a free Featured badge for your site, a share image and ready-to-paste posts. No sign-up.

Free Notion database

1,100+ ways people are making money online

Real online businesses, creators and projects, broken down by how they make money: apps, online stores, AI tools and more. Free on Gumroad.

Get the free database

Free Notion database

399+ ways to make money online

Hundreds of online income methods in one place, so you can compare options and pick one to try. Free on Gumroad.

Get the free list

For research and ideas only. Results vary and nothing here is a promise of income. See our Disclaimer.

Weekly newsletter

Everything new, every Monday.

One short email every Monday with everything shipped that week: new free tools and websites, new guides, new free browser tools and what's new in my free Gumroad libraries, plus how the site is growing. Free, and you can unsubscribe anytime.

Join the newsletter

You sign up on Gumroad, which stores your email to send the newsletter. See our Privacy Policy.