A CLI tool (v0.7.2) that generates DBML and Markdown documentation from Drizzle ORM schema definitions. It extracts JSDoc comments as DBML Notes, supports both v1 (defineRelations) and v0 (relations) relation APIs, and offers watch mode for auto-regeneration. Key differentiators: no file extension required for schema imports, directory import support, and multiple output formats including ER diagrams. Released actively on npm, requires Node >=24 and peer dependency drizzle-orm >=0.44.0 or >=1.0.0-beta.0.
npm install drizzle-docs-generatorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installation, schema definition with JSDoc comments, and generation of Markdown docs with ER diagram.
Use 'npx drizzle-docs' or 'drizzle-docs' after global install.
Upgrade Node.js to v24 or later.
Use '--single-file' if you want a single file output, and specify a file path.
Ensure the schema file can be parsed and that the output directory exists.
Upgrade drizzle-orm to a compatible version.
Run 'npm install --save-dev drizzle-docs-generator' or 'npm install -g drizzle-docs-generator'.
Upgrade drizzle-orm to >=0.44.0 (for v0) or >=1.0.0-beta.0 (for v1).
Ensure all imports in the schema file are valid and use relative paths without extensions.
Use '--single-file' for Markdown single file output, or change to DBML format with '-f dbml'.