Pg_dbml – A dependency-free CLI to export Postgres to DBML
Pg_dbml – A dependency-free CLI to export Postgres to DBML
I built this because I needed a clean way to feed my database schema to LLMs (Claude/Cursor) to get better context for coding. Most existing tools felt too heavy—they required Node.js, Python, or complex setups. I wanted something that follows the Unix philosophy: a simple tool that uses psql to talk directly to pg_catalog. It's a single SQL script wrapped in a CLI that produces clean DBML. No external dependencies, just pure SQL. I'd love to hear what you think about the output format or if there are any edge cases in Postgres schemas I should handle better!
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Pg_stat_ch, a Postgres extension to export every metric to ClickHouse
Pgmigrate, modern Postgres migrations CLI
Pgcli – A CLI for Postgres with auto-completion and syntax highlighting
PgModeler – EER Diagramming for postgres
Merging RethinkDB and Postgres with GraphQL
First experiment wih Vertx,Vue,Postgres
Logchain – ClickHouse/Postgres gRPC hook for logrus
pglockanalyze - See the locks your Postgres migrations will acquire
Now supporting MySQL, Postgres, Redis, Mongo
GraphQL for Postgres