# holistics/dbml

Database Markup Language (DBML), designed to define and document database structures

Repository: https://github.com/holistics/dbml
Canonical: https://ross.abutalabs.com/products/dbml
Homepage: https://dbml.org
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: dbx, database-schema, dbml
Last push: 2026-08-18T05:50:08+00:00

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

## Adoption (not part of the score)
Stars 3679, forks 230 (observed 2026-08-28T04:08:13.750089+00:00)

## What it is
DBML (Database Markup Language) is a simple, human-readable DSL for defining and documenting database structures, database-agnostic in design. It ships as a JavaScript core library (@dbml/core) and CLI (@dbml/cli), with companion tools dbdiagram.io for visualization and dbdocs.io for documentation.

## Use cases
- define database schemas in a readable DSL
- document database structures
- convert DBML to SQL DDL for different databases
- visualize database schema as ER diagrams
- generate database documentation from schema files

## When to choose
- you want a database-agnostic, human-readable schema definition language
- you need to document or visualize database structures quickly
- you want to generate SQL for multiple database engines from one schema source

## When to avoid
- you need full DBMS-specific feature coverage like stored procedures or triggers
- you want migrations/versioning tooling rather than schema definition
- your workflow is already covered by ORM schema definitions

## Facets
- artifact type: library
- maturity: active
- function: parser, documentation, developer-tools
- domain: databases, developer-tools, documentation
- platform: cli, cross-platform
- tags: dsl, database-schema, schema-definition, dbdiagram, erd, nodejs

## Member repositories
- holistics/dbml (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:13.750089+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-29T18:31:13.933484+00:00, confidence not recorded.
  - readme: https://github.com/holistics/dbml (fetched 2026-08-28T04:08:13.750089+00:00, sha ea164f9c1864)
  - homepage: https://dbml.org (fetched 2026-08-29T09:25:26.491789+00:00, sha c3155a7f46f1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
