Freedom251 › Database Documentation Tools
drizzle-docs-generator

What drizzle-docs-generator is
drizzle-docs-generator is a free command-line tool for producing database documentation from Drizzle ORM schemas. It generates Markdown by default or DBML, giving Drizzle users a way to turn schema definitions into a data dictionary. Markdown can be produced as one file or as multiple files, and can include a table list, a Mermaid ER diagram, and separate documentation for each table. An option can exclude the diagram. DBML output can be imported into dbdiagram.io to view ER diagrams and table definitions.
The tool extracts JSDoc comments from table and column definitions, including them in generated documentation and converting them into DBML notes. It imports schema files from a directory and supports extensionless imports. It detects relations declared with `defineRelations()` or `relations()`, and can fall back to foreign key constraints. A watch option regenerates documentation when schema files change, which the maker describes using in CI/CD workflows. Documented dialects are PostgreSQL, MySQL, and SQLite. The README recommends local installation as a development dependency and also documents global installation with npm or pnpm. The project is licensed under MIT and intended for self-hosted deployment.
Who it suits
This tool suits Drizzle ORM users who want documentation generated from their schema definitions and kept current as those files change. It is relevant to teams maintaining relational database schemas in PostgreSQL, MySQL, or SQLite and preferring a command-line workflow.
What it does well
- Generates Markdown or DBML from Drizzle ORM schemas.
- Extracts JSDoc comments from table and column definitions.
- Detects declared relations and can fall back to foreign key constraints.
- Watch mode regenerates documentation after schema changes.
- Markdown can include a table list and Mermaid ER diagram.
- Licensed under MIT.
What to know first
- Its documented dialects are limited to PostgreSQL, MySQL, and SQLite.
- It is a command-line tool intended for self-hosted deployment.
Getting started
- Open the project on GitHub.
- Install it locally as a development dependency, or use the documented global installation route with npm or pnpm.
- Import schema files from a directory.
- Choose Markdown or DBML output and configure Markdown file and diagram options if needed.
- Enable the watch option to regenerate documentation when schema files change.
Verdict
Pick drizzle-docs-generator if you use Drizzle ORM and want schema-derived Markdown or DBML, including extracted comments and relation details. Look elsewhere if your database dialect is outside PostgreSQL, MySQL, and SQLite or you do not want a self-hosted CLI workflow.
Questions
How much does drizzle-docs-generator cost?
It is free and open source.
What database dialects does it support?
Its documented dialects are PostgreSQL, MySQL, and SQLite.
What output formats can it generate?
It generates Markdown by default or DBML. Markdown can be a single file or multiple files and can include an optional Mermaid ER diagram.
Does it include schema comments and relationships?
It extracts JSDoc comments from table and column definitions. It detects relations defined with `defineRelations()` or `relations()` and can fall back to foreign key constraints.
How do I install it?
The README recommends local installation as a development dependency and also documents global installation using npm or pnpm.
What license does the project use?
It is licensed under MIT.
Facts from drizzle-docs-generator's own pages
- Audience
- The maker recommends it for Drizzle users who want to keep schema definitions and documentation in sync. · zenn.dev, 9 Oct 2026
- CI/CD use
- The maker describes incorporating the tool into CI/CD to update documentation when schemas change. · zenn.dev, 9 Oct 2026
- Database dialects
- The documented dialect options are PostgreSQL, MySQL, and SQLite. · github.com, 4 Oct 2026
- DBML output
- The generated DBML can be imported into dbdiagram.io to view ER diagrams and table definitions. · zenn.dev, 9 Oct 2026
- Installation
- The maker documents installation through npm or pnpm, as a development dependency or globally. · zenn.dev, 9 Oct 2026
- JSDoc comments
- JSDoc comments on table and column definitions are included in the generated documentation. · zenn.dev, 9 Oct 2026
- JSDoc extraction
- It extracts JSDoc comments and converts them to DBML notes. · github.com, 4 Oct 2026
- License
- The GitHub repository lists the project under the MIT license. · github.com, 9 Oct 2026
- Markdown output
- Markdown output can include a table list, Mermaid ER diagram, and separate documentation for each table. · zenn.dev, 9 Oct 2026
- Output formats
- It generates Markdown by default or DBML, with Markdown output supporting multiple files or a single file and an optional ER diagram. · github.com, 4 Oct 2026
- Output options
- Markdown can be generated as a single file, and its ER diagram can be excluded with an option. · zenn.dev, 9 Oct 2026
- Purpose
- The CLI generates Markdown documentation and DBML table definitions from Drizzle ORM schemas. · zenn.dev, 9 Oct 2026
- Relations
- The maker says the tool supports both Drizzle relation definition styles, including v0 and v1. · zenn.dev, 9 Oct 2026
- Schema dialects
- The tool supports MySQL, PostgreSQL, and SQLite schema definitions. · zenn.dev, 9 Oct 2026
- Schema imports
- It supports schemas split across multiple files by accepting a schema directory as input. · zenn.dev, 9 Oct 2026
- Watch mode
- Its watch option regenerates documentation when schema files change. · github.com, 4 Oct 2026
Where drizzle-docs-generator stands on Freedom251
- Database Documentation Tools#25 of 27