Pg

Pg_dbml – A dependency-free CLI to export Postgres to DBML

Hacker News

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 card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: cursor, claude, context · Missing: mac, agents, macos
80%80% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
56%56% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: exist, existing · Missing: https docs, excited, just released
49%49% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
39%39% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
26%26% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Pg
Pg_stat_ch, a Postgres extension to export every metric to ClickHouse63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pg_stat_ch, a Postgres extension to export every metric to ClickHouse

Hacker News4
Pg
Pgmigrate, modern Postgres migrations CLI38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pgmigrate, modern Postgres migrations CLI

Hacker News2
Pg
Pgcli – A CLI for Postgres with auto-completion and syntax highlighting67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pgcli – A CLI for Postgres with auto-completion and syntax highlighting

Hacker News227
Pg
PgModeler – EER Diagramming for postgres73%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PgModeler – EER Diagramming for postgres

Hacker News9
Me
Merging RethinkDB and Postgres with GraphQL79%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Merging RethinkDB and Postgres with GraphQL

Hacker News6
Fi
First experiment wih Vertx,Vue,Postgres48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

First experiment wih Vertx,Vue,Postgres

Hacker News1
Lo
Logchain – ClickHouse/Postgres gRPC hook for logrus81%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Logchain – ClickHouse/Postgres gRPC hook for logrus

Hacker News3
pg
pglockanalyze - See the locks your Postgres migrations will acquire59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

pglockanalyze - See the locks your Postgres migrations will acquire

Hacker News8
No
Now supporting MySQL, Postgres, Redis, Mongo60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Now supporting MySQL, Postgres, Redis, Mongo

Hacker News3
Gr
GraphQL for Postgres83%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GraphQL for Postgres

Hacker News195