frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Pg-typesafe – Strongly typed queries for PostgreSQL and TypeScript

https://github.com/n-e/pg-typesafe
20•n_e•4h ago
Throughout my career, I tried many tools to query PostgreSQL, and in the end, concluded that for what I do, the simplest is almost always the best: raw SQL queries.

Until now, I typed the results manually and relied on tests to catch problems. While this is OK in e.g., GoLang, it is quite annoying in TypeScript. First, because of the more powerful type system (it's easier to guess that updated_at is a date than it is to guess whether it's nullable or not), second, because of idiosyncrasies (INT4s are deserialised as JS numbers, but INT8s are deserialised as strings).

So I wrote pg-typesafe, with the goal of it being the less burdensome: you call queries exactly the same way as you would call node-pg, and they are fully typed.

It's very new, but I'm already using it in a large-ish project, where it found several bugs and footguns, and also allowed me to remove many manual type definitions.

Comments

barishnamazov•27m ago
How is this different than kysely + kysely-codegen (or hand-made types)?

Claude Sonnet 4.6

https://www.anthropic.com/news/claude-sonnet-4-6
705•adocomplete•5h ago•583 comments

Show HN: AsteroidOS 2.0 – Nobody asked, we shipped anyway

https://asteroidos.org/news/2-0-release/index.html
200•moWerk•3h ago•26 comments

BarraCUDA Open-source CUDA compiler targeting AMD GPUs

https://github.com/Zaneham/BarraCUDA
42•rurban•2h ago•9 comments

Gentoo on Codeberg

https://www.gentoo.org/news/2026/02/16/codeberg.html
203•todsacerdoti•5h ago•52 comments

Using go fix to modernize Go code

https://go.dev/blog/gofix
234•todsacerdoti•6h ago•47 comments

Thank HN: You helped save 33k lives

33•chaseadam17•5h ago•4 comments

Physicists Make Electrons Flow Like Water

https://www.quantamagazine.org/physicists-make-electrons-flow-like-water-20260211/
65•rbanffy•4d ago•6 comments

Property taxes going up? The 340B Program might be partly responsible

https://www.pricepoints.health/cp/188296406
39•larsiusprime•2h ago•28 comments

So you want to build a tunnel

https://practical.engineering/blog/2026/2/17/so-you-want-to-build-a-tunnel
129•crescit_eundo•5h ago•50 comments

Structured AI (YC F25) Is Hiring

https://www.ycombinator.com/companies/structured-ai/jobs/q3cx77y-gtm-intern
1•issygreenslade•1h ago

Async/Await on the GPU

https://www.vectorware.com/blog/async-await-on-gpu/
132•Philpax•5h ago•37 comments

Assistant to the Regional Manager

https://smallpotatoes.paulbloom.net/p/assistant-to-the-regional-manager
30•NaOH•4d ago•3 comments

Show HN: Pg-typesafe – Strongly typed queries for PostgreSQL and TypeScript

https://github.com/n-e/pg-typesafe
20•n_e•4h ago•1 comments

Show HN: I wrote a technical history book on Lisp

https://berksoft.ca/gol/
130•cdegroot•7h ago•30 comments

GrapheneOS – Break Free from Google and Apple

https://blog.tomaszdunia.pl/grapheneos-eng/
1003•to3k•12h ago•729 comments

pg_background: Make Postgres do the long work (while your session stays light)

https://vibhorkumar.wordpress.com/2026/02/16/pg_background-make-postgres-do-the-long-work-while-y...
3•tanelpoder•12m ago•0 comments

Claims of disability are highest at elite universities

https://www.robkhenderson.com/p/americas-future-leaders-are-learning
36•paulpauper•1h ago•18 comments

I converted 2D conventional flight tracking into 3D

https://aeris.edbn.me/?city=SFO
192•kewonit•8h ago•41 comments

Is Show HN dead? No, but it's drowning

https://www.arthurcnops.blog/death-of-show-hn/
364•acnops•12h ago•313 comments

After 800 episodes, 'The Simpsons' creators look back and ahead

https://apnews.com/article/simpsons-800-episodes-72d723e6d885b1944c9a1ec8b9a24c3a
19•1659447091•2d ago•8 comments

HackMyClaw

https://hackmyclaw.com/
217•hentrep•6h ago•117 comments

Show HN: I'm launching a LPFM radio station

https://www.kpbj.fm/
39•solomonb•2h ago•25 comments

Contra "Grandmaster-level chess without search" (2024)

https://cosmo.tardis.ac/files/2024-02-13-searchless.html
17•luu•1d ago•0 comments

Discord Rival Gets Overwhelmed by Exodus of Players Fleeing Age-Verification

https://kotaku.com/discord-alternative-teamspeak-age-verification-check-rivals-2000669693
157•thunderbong•5h ago•63 comments

Climbing Mount Fuji visualized through milestone stamps

https://fuji.halfof8.com/
41•gessha•5h ago•6 comments

Don't pass on small block ciphers

https://00f.net/2026/02/10/small-block-ciphers/
46•jstrieb•2d ago•28 comments

Show HN: I taught LLMs to play Magic: The Gathering against each other

https://mage-bench.com/
80•GregorStocks•6h ago•61 comments

Launch HN: Sonarly (YC W26) – AI agent to triage and fix your production alerts

https://sonarly.com/
22•Dimittri•5h ago•3 comments

Chess engines do weird stuff

https://girl.surgery/chess
126•admiringly•5h ago•59 comments

Approaches to writing two-sentence journal entries

https://alexanderbjoy.com/two-sentence-journal-approaches/
4•fi-le•1h ago•0 comments