# D2
> Modern diagram scripting language that turns text to diagrams

## Summary
A modern diagram scripting language that converts text descriptions into diagrams, similar to Mermaid but with more features.

## Capabilities
- Convert text to diagrams
- Support for various diagram types
- Multiple output formats (SVG, PNG)
- Declarative syntax for diagrams
- Auto-layout engine
- Themes and styling

## When to Use
- User wants to create diagrams from text
- User needs diagrams in documentation
- User prefers code-based diagram creation

## When NOT to Use
- User prefers visual drag-and-drop diagram tools

---
Source: https://littlescripts.sh/tools/d2
