Dbctx
Compile a PostgreSQL database into compact, queryable context
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
Hi HN, I've been finding increasing need for helping our users chat with the underlying application data in postgresql directly using LLMs, visualize results and so on.A major obstacle to this is -- traditional sql schema doesn't contain enough information for an LLM to easily query things in one shot.For example, traditional schema doesn't say what is the expected/allowed value set in a state field, or what are the paths available embedded in a jsonb field.Also -- given a user query -- only a small fraction of the whole schema is relevant for an LLM to construct SQL queries. So filtering parts of schema relevant to construct a prompt is important.dbctx solves all these by inspecting a postgresql database and turning the results into an sqlite backed ".dtx" file. You can pass your natural language query to dtx, and get relevant tables in a compressed schema format along with field/json intelligence embedded in it. This leads to much better responses from the LLM from the getgo.I have a CLI, library and tiny UI embedded in a single go binary.Do give it a go, and any feedback welcome.
HN · launched Aug 11, 2026 · 5 upvotes (top 87%) · 0 views
Niche: semantic search and rag tools · 93 launches, 0 in the last 7 days · Explore this niche →
Category and tags
- Horizontal
- Data infrastructure
- Developer
- AI-native
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 93 launches in semantic search and rag tools →
Could you build this?
Yes It is a developer utility that inspects PostgreSQL information schema catalogs, foreign keys, and statistics to generate compact, token-optimized context prompts for LLMs.
Discussion
No comments on this launch.
Competitors
Other products that read as similar to this one : 263 launches clear the similarity bar, closest 8 shown.
Attention rank: #241 of 264 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 286 days after the earliest competitor.
- uplpgsql · hn · 2026-07-16 · 10 upvotes · similarity 0.56
- DDL to Data · hn · 2026-01-06 · 55 upvotes · similarity 0.53
- SchemaForge · ph · 2026-10-06 · 1 upvotes · similarity 0.52
- Pg-typesafe · hn · 2026-02-17 · 69 upvotes · similarity 0.50
- Xsql · hn · 2025-12-16 · 11 upvotes · similarity 0.50
- Widen · hn · 2026-07-31 · 7 upvotes · similarity 0.49
- Misata · hn · 2025-12-16 · 24 upvotes · similarity 0.48
- DeepSQL · hn · 2026-07-20 · 52 upvotes · similarity 0.48
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.