qmetrics.net

DBML

Readable database schema definition markup language

DBML screenshot

DBML is a simple DSL for defining and documenting database structures in plain text. It stays database-agnostic and focuses on tables, fields, refs, and notes.

Overview

DBML expresses schemas declaratively so developers can read and maintain structure without dialect-specific DDL noise. Tables, columns, enums, relationships, and inline notes capture intent at a logical level rather than physical creation commands.

The ecosystem includes a command-line converter between DBML and SQL DDL, JavaScript modules such as @dbml/core for programmatic translation, and community parsers and editor plugins in many languages. Companion web tools visualize diagrams and publish documentation from the same source files.

Project guidance suggests keeping a database.dbml file alongside application code, similar to other project metadata, so schema design stays versioned and reviewable. DBML is intentionally declarative where SQL DDL is imperative and vendor-specific.

Holistics maintains the language and related open tooling; users can extend the ecosystem by contributing parsers, generators, or integrations listed on the official ecosystem page.

Key features

  • Declarative table definitions
  • Relationship ref syntax
  • Column notes and enums
  • Database-agnostic modeling
  • SQL DDL conversion CLI
  • JS core conversion library
  • Diagram and doc tooling
  • Community parser plugins

Use cases

  • Documenting database schemas
  • Sharing ERD source in Git
  • Converting models to SQL DDL
  • Team database design reviews
  • Feeding diagram generators

Tags

Similar software

drawDB

Browser-based database schema design and SQL generation

drawDB is an online entity-relationship diagram editor that runs in your browser. You can design schemas, import live data, and export SQL without creating an account.

★ 40.5k⟳ 2 days agoAGPL-3.0
DatabasesDesktop/CLI app
Open Source Alternative to:DrawSQLSqlDBM

ChartDB

Web-based database schema diagram editor

Imports database schemas via a JSON query, edits ER diagrams in the browser, and exports DDL for other database dialects.

★ 23.2k⟳ 27 days agoAGPL-3.0
DatabasesDesktop/CLI app

Azimutt

ERD and exploration tool for large database schemas

Azimutt helps teams design, explore, document, and analyze relational and other database schemas. It targets large, messy production databases with diagrams, search, and data navigation.

★ 2.2k⟳ 3 months agoMIT
DatabasesDesktop/CLI app

Excalidraw

Open-source collaborative whiteboard for hand-drawn style diagrams

Excalidraw is a virtual whiteboard for sketching diagrams and wireframes in a hand-drawn style. It offers an infinite canvas, real-time collaboration with end-to-end encryption, and is also published as an npm package for embedding.

★ 136.4k⟳ todayMIT
Open Source Alternative to:Miro

three.js

Cross-browser JavaScript library for 3D graphics

Three.js is a lightweight JavaScript 3D library for browsers. Default builds target WebGL and WebGPU, with optional SVG and CSS3D renderers as add-ons.

★ 119.5k⟳ todayMIT
Design & VisualizationDesktop/CLI app

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database