Show HN: Pg_dbml – A dependency-free CLI to export Postgres to DBML
1 points
1 hour ago
| 0 comments
| pg_dbml.80.cz
| HN
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!

No one has commented on this post.