frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Postgres schema review and 3D explorer, run on seven open-source apps

https://github.com/greenstevester/postgres-schema-gallery
2•greenstevester•41m ago

Comments

greenstevester•24m ago
I wanted two things and could not find them together:

1. A critical review of a (my) PostgreSQL schema. 2. A visualiser that shows how (possibly) hundreds of tables connect.

Nothing did both, so I built it....in a mid-Late 2026 moment (I know what you're thinking).

Anyway, then I ran it on the GitLab schema... cause why not right - its opensource? (nothing against gitlab btw, used it for years without a hitch, even hosted it myself)

I found missing keys, unindexed foreign keys, junction tables that allow duplicates, money in floats, relationships whose cardinality does not match what everyone believes, and a structural visualiser good enough to understand the relationships and the coupling in a schema of a few hundred tables.

So I built both into one tool, called it archlens-postgres, and to see whether it holds up I ran it over seven open-source products whose schemas are public: Temporal, Miniflux, Listmonk, Matrix Synapse, Sourcegraph, Cal.com and GitLab.

The review half parses the DDL with libpg_query (PostgreSQL's own parser as WebAssembly) and runs 23 deterministic checks; each finding carries the cost,the fix and usually the SQL. The visual half is a 3D explorer: one island per domain, every foreign key an arc, click any table or arc for its detail, mute the sheaf into the hub table with one click.

GitLab is 1,429 tables and 1,861 foreign keys; its projects table is referenced by 371 others, namespaces by 353. You can see that coupling in about two seconds in the explorer and not at all in a diagram.

https://greensill.net/postgres-schema-gallery/gitlab/schema-...

Some of what the review found:

Synapse: 109 of the 137 tables in its published full schema have no primary key.

Sourcegraph: 270 foreign keys with no index. 157 of them are the same tenant_id column, added to every table by their multi-tenancy work.

Cal.com: 205 timestamps without time zone (Prisma's default), one price stored as a float.

Temporal: zero foreign keys across 38 tables, by design.

TO BE CLEAR: I am not trying to fatshame or doxx any OSS project here here, just calling it how the tool (for better or worse) found it.

Telling the deliberate findings from the accidents is also hard.

The tool's answer is a narratives file: a human records "this is intended, here's why" once, and the next run treats it as a claim to check rather than a finding to repeat.

It's packaged as a Claude Code plugin because that judgment half is where an AI pair helps; the script runs on its own without it.

Schemas are fetched at pinned commits from each project's own repository; nothing is committed or edited by hand.

The gallery's build is at:

https://github.com/greenstevester/postgres-schema-gallery

and the reviewer at

https://github.com/greenstevester/archlens-postgres (both MIT).

Which schema should go in next? It needs a plain-SQL PostgreSQL schema in the repo, or a Prisma schema; the build can emit SQL from that.

WhisperWhy – Local STT WhisperFlow Alternative

https://github.com/ankurCES/whisperWhy
1•ankurCES•3m ago•0 comments

Tiobe Index for September 2026: Python Drops Below 18%, Julia Near Top 20

https://www.techrepublic.com/article/news-tiobe-september-2026-julia-nears-top-20/
1•TheWiggles•6m ago•0 comments

I turn screen recordings into interactive step-by-step video guides

https://alexhints.com/
1•ipselon•6m ago•0 comments

Show HN: Thread to Self – a private message thread with yourself

https://threadtoself.com
2•cwalenciak•9m ago•0 comments

'Lake America' makes one thing clear: We can't trust U.S. tech companies

https://www.tvo.org/article/analysis-lake-america-makes-one-thing-clear-we-cant-trust-us-tech-com...
2•Teever•10m ago•0 comments

Capital Without Labor: Data Centers and the Local Economy

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7384998
1•toomuchtodo•10m ago•0 comments

Poisoning AI Scrapers

https://www.brainonfire.net/blog/2024/09/19/poisoning-ai-scrapers/
1•serhack_•11m ago•0 comments

A Puzzle

https://kyle.marek-spartz.org/posts/2026-09-08-a-puzzle.html
2•zeckalpha•12m ago•0 comments

Does anyone know YouTube's pre-2006's des key?

2•kyer_bananaclan•16m ago•3 comments

Accuracy and Precision

https://blogs.extension.msstate.edu/theriskproject/accuracy-and-precision/
1•bryanrasmussen•16m ago•0 comments

Nim Version 2.2.12 Released

https://nim-lang.org//blog/2026/09/08/nim-2212.html
4•ibobev•16m ago•0 comments

Is Zenodo Down?

https://zenodo.org
2•cbracketdash•16m ago•0 comments

Taint tracking on AI agent traces: 0.48 precision on AgentDojo

https://github.com/IdoGol24/weir
2•CodeNinja778•17m ago•0 comments

Mamdani: Officials 'lied' to New Yorkers about still-toxic after 9/11

https://www.independent.co.uk/news/world/americas/911-air-quality-report-mamdani-ground-zero-b304...
1•doener•17m ago•0 comments

Wealth Inequality in America (Updated 2026) [video]

https://www.youtube.com/watch?v=2GxlL5-0m_g
4•sethops1•18m ago•0 comments

Underwater Drone Captured by Iran Matches American Anduril Model

https://www.navalnews.com/naval-news/2026/09/underwater-drone-captured-by-iran-matches-american-a...
1•bigyabai•18m ago•0 comments

Chime Announces Agreement to Acquire Stride Bank

https://finance.yahoo.com/markets/stocks/articles/chime-announces-agreement-acquire-stride-200500...
1•d1egoaz•20m ago•0 comments

Show HN: Browser viz of OpenAI's "spaghetti" Navier–Stokes vortex (illustration)

https://3d-retro.com/experiments/vortex
2•SouthWestAtlas•21m ago•0 comments

Show HN: CodeEraser – a deterministic judge of LLM-induced code and doc entropy

https://github.com/skymanbp/CodeEraser
1•Azng_0•24m ago•0 comments

USD Grants for OSS, Made by Guillermo Rauch (CEO Vercel)

https://rauchg-oss-grants.vercel.app/
2•gidellav•24m ago•0 comments

Judge spares Google's ad-tech business from a breakup

https://www.computerworld.com/article/4218844/judge-spares-googles-ad-tech-business-from-a-breaku...
1•CrankyBear•24m ago•0 comments

How long before a real crackdown on AI model decensoring?

https://www.unite.ai/how-long-before-a-real-crackdown-on-ai-model-decensoring/
3•50kIters•28m ago•0 comments

Superiority

https://www.baen.com/Chapters/1439133476/1439133476___5.htm
3•bryanrasmussen•29m ago•0 comments

A collection of minimal, generative and customizable SVG-patterns

https://bookofshapes.com/
2•drunkonvinyl•29m ago•0 comments

The Singapore Strategies

https://aeon.co/essays/did-singapore-go-wrong-in-its-quest-for-food-security
2•karakoram•30m ago•0 comments

Mercury 2.5

https://www.inceptionlabs.ai/blog/introducing-mercury-2-5
13•Topfi•35m ago•1 comments

Assume you've built sub-5-millon parameter competitor to Astra, so?

2•aunekiaru•37m ago•1 comments

UmamiEngine Has a Special Offer

https://umamiengine.com/
2•sauromates•38m ago•0 comments

Show HN: Postgres schema review and 3D explorer, run on seven open-source apps

https://github.com/greenstevester/postgres-schema-gallery
2•greenstevester•41m ago•1 comments

Animation in Bevy: The Big Picture

https://glocq.com/en/blog/20260827/
7•ibobev•41m ago•0 comments