prettier-plugin-dbml weekly downloads statistics
By nice-move (5 listings) · npm · Prettier plugins
A `prettier` plugin for DBML
prettier-plugin-dbml has 437 recorded weekly downloads on npm, an increase of 524% over the past 30 days, ranking #2294 of 3,247 tracked listings.
About prettier-plugin-dbml
prettier-plugin-dbml
Installation
npm install prettier-plugin-dbml --save-dev
Usage
prettier --write *.dbml
Known Issues
Formatting is powered by @dbml/core. When formatting through Prettier, most
syntax dropped by its parser/exporter is restored from the original source,
with a few limitations:
TablePartialdefinitions are preserved, but their~namereferences are still inlined into the tables that use them.- Only standalone comments at the start of a line are preserved; inline comments are dropped.
- Preserved blocks are copied back verbatim rather than reformatted.
- Comments are moved to the top of the file because the parser does not retain their positions.
Compatibility Workarounds
The parser/exporter needs a small amount of post-processing before the result is valid or stable DBML:
- It quotes every identifier and writes
Ref:without a following space. The plugin removes quotes around identifiers, keeps quoted string values (such as index names) and backtick expressions untouched, and restores the space afterRef:. - It resolves table aliases to their original table names in
Reflines. The plugin restores aliases with word boundaries so suffix matches such asusersinsideold_usersare not rewritten. - It omits front matter,
TablePartial,DiagramView, enum aliases, and top-levelRecords. The plugin keeps their original text and reattaches it around the exported body, which also avoids exporting enum record values asnullwhen formatting through Prettier. Direct calls can pass the source asast2dbml(ast, { source }); otherwiseast.sourceis used when present. BOM and CRLF in the provided source are normalized automatically.
Related
Description from the npm listing.
- database
- dbml
- prettier
- prettier-plugin
- schema
- sql
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Prettier plugins plugins
All 20 prettier-plugin-dbml alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/prettier-plugin-dbml. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.