D2
D2: Declarative Diagramming
d2lang.com Source★ 44MPL-2.0 DiscordProductivity & Collaboration / Whiteboards & Diagrams
- Monthly visits
- 44.4K
- Down54.5%MoMOct 2026
- Public revenue
- Undisclosed
- No public revenue evidence yet
- Entry price
- Free
- No monthly subscription pricing
- Launched
- Unknown
- No public launch record
Traffic
Marketing moves
Launches, search & content, referrals, promotionsNo launch, search, referral, or promotion moves recorded for this product yet.
Third-party reviews & case dossiers
Acquisition breakdowns, engineer reviews & open-source metrics- What engineers like:
- Full language designed for diagramming. Includes themes and animations. Use custom fonts and icons. Supports embedding code with syntax highlighting and Markdown for adding explanations. Has web editor and VS Code extension. CLI to generate the diagram output.
- Trade-offs & limitations:
- Can currently only export to PDF, SVG, PNG - more formats are on the roadmap.
- Best suited for:
- Developers who need to create diagrams with code embedding and syntax highlighting should consider D2
Open Source & Agent Ecosystem
- GitHub Stars
- ★ 44
- Forks
- 3
- License
- MPL-2.0
- Primary language
- JavaScript
- Exposed tool capabilities:
- Diagram as CodeProduction-ready themesSketch modeAnimationsLaTeX
Traffic sources
Traffic breakdown
Channels
- Organic Search37%
- Direct32%
- Social13%
- AI Assistants10%
- Other8%
Countries
- United States30%
- Germany18%
- Vietnam17%
- India12%
- Indonesia5%
Search
Domain authority —Domain registered 2022-10-24
| Keyword | Monthly volume |
|---|---|
| d2 diagram | 600 |
| d2 diagrams | 450 |
| d2lang | 440 |
| d2 (declarative diagramming) — | 380 |
| online d2 diagram viewer | 120 |
Traffic data: Vaneform
Pricing
Pricing page not identified yet, or no public pricing listed.
Pages & changes
Key pages
Weekly snapshotsChanges
Design
Minimal Monochrome (Light canvas, balanced density) featuring centered headline + cta layout and product ui screenshot / component visuals.
First-screen preview · click to zoom
First-screen pitch & conversion flow
“D2: Declarative Diagramming”
Centered Headline + CTA hero structure paired with start free / sign up CTA and live generated output showcase.
Conversion path: Centered Headline + CTA + Product UI Screenshot / Component → Start Free / Sign Up · Trust bar: Live Generated Output Showcase
- Category Positioning Anchor
- Large Hero Product Shot
- Code & Terminal
Palette · click to copy
- Typography
- 7.0
- Color & Contrast
- 7.0
- Layout & Spacing
- 8.0
- Craft & Polish
- 7.0
- Distinctiveness
- 6.0
Structure
- Fonts
- SourceSansPro / monospace
- Hero layout
- Centered Headline + CTA
- Primary visual
- Product UI Screenshot / Component
- Conversion CTA
- Start Free / Sign Up
- Social proof
- Live Generated Output Showcase
- Navigation
- Full-Width Top Bar
- Theme & density
- Light · Balanced
- Corners & depth
- Small Radius · Hairline borders
Preview full AI design brief (includes :root CSS variables & layout rules)Style tokens only; never copy brand names, logos, copy, or images
# Design Brief: Minimal Monochrome (with Enterprise Clean)
Monochrome palette with a single accent color, hairline dividers, and generous whitespace.
## Design Tokens
```css
:root {
--background: #ffffff;
--surface: #f3f3f3;
--foreground: #0a0f25;
--muted-foreground: #6b7280;
--accent: #526fe9;
--radius: 4px;
--font-heading: "SourceSansPro", ui-sans-serif, system-ui, sans-serif;
--font-body: "SourceSansPro", ui-sans-serif, system-ui, sans-serif;
--font-mono: "monospace", ui-monospace, monospace;
}
```
Color area ratio: Background #FFFFFF (~74%) · Surface #F3F3F3 (~15%) · Text #0A0F25 (~6%) · Muted Text #6B7280 (~3%) · Accent #526FE9 (~2%). Background and surface dominate the canvas; reserve the accent color for primary buttons and active states.
## Layout & Conversion Structure
- Hero layout: Centered Headline + CTA
- Navigation: Full-Width Top Bar
- Theme & density: Light · Balanced
- Border radius & elevation: Small Radius; no drop shadows—separate layers with hairline borders and whitespace
- Primary visual medium: Product UI Screenshot / Component
- Conversion CTA: Start Free / Sign Up · Trust bar uses Live Generated Output Showcase
- Headline hook: Category Positioning Anchor
- Hero components: Large Hero Product Shot, Code & Terminal
- Spatial layout notes: Centered Headline + CTA hero structure paired with start free / sign up CTA and live generated output showcase.
- Visual summary: Minimal Monochrome (Light canvas, balanced density) featuring centered headline + cta layout and product ui screenshot / component visuals.
## Avoid
- Multi-stop neon gradients
- Heavy drop shadows
- More than one competing accent color
Implement the UI following the design tokens and layout specifications above: use only these color variables, and reserve the accent color strictly for primary actions and active states. Adopt only this visual style—never copy any reference product’s brand name, logo, copy, or imagery.
Questions & evidence
- How much website traffic does D2 get?
- Vaneform estimates 44.4K website visits in 2026-10. Visits can include repeat visits; this estimate measures web traffic separately from paying customers or revenue.Source
- What is D2 and what platforms does it support?
- D2 is catalogued under Whiteboards & Diagrams: D2: Declarative Diagramming. Supported platforms: CLI / SDK, API.
- Is D2 open source?
- D2 has a public repository (https://github.com/d2lang/d2) under the MPL-2.0 license, recording 44 GitHub stars.Source
Related products in this category
These products share a catalog category. Compare customer tasks, features and deployment requirements before treating them as alternatives.
| Product | Entry price | Visits | Revenue |
|---|---|---|---|
| MiroGiantHuman collaboration at the speed of AI | $8/mo | 30.7M | Undisclosed |
| Diagrams.netGiantSecurity-first diagramming for teams | — | 10.5M | Undisclosed |
| ExcalidrawMatureVirtual collaborative whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them. | — | 4.3M | Undisclosed |
| draw.ioMatureSecurity-first diagramming for teams | — | 2.5M | Undisclosed |
| MuralMatureSync up. Speed up. Stand out. | $12/mo | 2M | Undisclosed |
| HolstMatureНачните проектс чистого листа холста | $5.49/mo | 1.7M | Undisclosed |