# BurntSushi/erd

Translates a plain text description of a relational database schema to a graphical entity-relationship diagram.

Repository: https://github.com/BurntSushi/erd
Canonical: https://ross.abutalabs.com/products/erd
Language: Haskell
License: Unlicense
License Family: permissive
Last push: 2024-09-09T12:30:17+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4694, "days_push": 723, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1864, forks 153 (observed 2026-08-28T04:05:46.132597+00:00)

## What it is
A Haskell CLI utility that converts a plain text description of a relational database schema into a graphical entity-relationship diagram using GraphViz/Dot. It supports multiple output formats including pdf, svg, png, and dot.

## Use cases
- generate an ER diagram from a plain text schema file
- visualize relational database entities and relationships
- convert .er text files to pdf or svg diagrams
- document database schema as a diagram
- render entity-relationship diagrams in CI pipelines

## When to choose
- you want to version-control your schema diagrams as plain text
- you need reproducible ER diagrams generated via CLI or Docker
- you already use GraphViz and want a text-to-diagram workflow

## When to avoid
- you need diagrams generated directly from a live database connection
- you want an interactive GUI diagram editor
- you need support for non-relational (NoSQL) schema modeling

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: parser, data-visualization, cli
- domain: databases, developer-tools, documentation
- platform: windows, cli
- tags: erd, entity-relationship-diagram, graphviz, haskell, database-schema, diagram-generation, command-line, linux, macos, docker

## Member repositories
- BurntSushi/erd (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:46.132597+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:15:35.791872+00:00, confidence not recorded.
  - readme: https://github.com/BurntSushi/erd (fetched 2026-08-28T04:05:46.132597+00:00, sha 9919fc2f7120)
- Data as of 2026-08-30T08:39:29.467469+00:00.
