frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Two tiny Bun-native packages tRPC over Bun.serve and a Kysely Postgres dialect

1•lacion•2h ago
I’ve been using Bun-first stacks in a few monorepos and ended up extracting two small packages that might save others some glue code. Both are MIT, ESM-only, and avoid Node shims.

— trpc-bun (Bun-native tRPC adapter: HTTP + WebSocket) What: Run tRPC on Bun.serve with first-class HTTP and WS. How: HTTP via a fetch adapter + server.upgrade; WS via Bun’s websocket handler; one-liner server composer; optional reconnect broadcast. Reqs: Bun ≥ 1.3.0, @trpc/server ≥ 11.6.0, TS ≥ 5. Repo: https://github.com/lacion/trpc-bun

Highlights: • Uses only public tRPC server APIs (v11) • createTrpcBunFetchAdapter, createTrpcBunWebSocketAdapter, configureTrpcBunServer • Connection params over WS, subscriptions, mutations, error shaping • Duplicate-id protection, graceful stop/disconnect • bun test + GitHub Actions CI

— kysely-bun-sql (Kysely Postgres dialect backed by Bun SQL) What: Tiny, dependency-free Kysely dialect/driver using Bun’s native SQL client. How: Pooled SQL under the hood (reserve()/release()), Kysely’s Postgres adapter + query compiler. Reqs: Bun ≥ 1.1.31, Kysely ≥ 0.28, TS ≥ 5. Repo: https://github.com/lacion/kysely-bun-sql

Highlights: • Bun-native PostgreSQL via new SQL() or env auto-detection • Pooling, prepared statements, parameter binding via Bun SQL • Full Kysely integration (adapter, query compiler, introspector) • Transactions and savepoints through Kysely • No runtime deps, ESM only

I’ve been running both in real projects; publishing them to get more eyes on edge cases. Would love feedback on correctness, ergonomics, and Bun version quirks. Issues/PRs welcome. Thanks for taking a look.

Making Unicode things fast in Go

https://clipperhouse.com/go-unicode/
1•mwsherman•43s ago•0 comments

Archestra's Dual LLM Pattern: Using "Guess Who?" Logic to Stop Prompt Injections

https://www.archestra.ai/blog/dual-llm
2•ildari•1m ago•1 comments

We open-sourced XAI's Macrohard, an autonomous computer-using agent

https://github.com/LLmHub-dev/open-computer-use
1•PrateekJ17•1m ago•0 comments

Indian-Americans Are Holding Their Home Country at Arm's Length

https://www.bloomberg.com/opinion/newsletters/2025-10-11/indian-americans-are-staying-out-of-us-v...
1•thelastgallon•3m ago•0 comments

Fujitsu pumps £280M into UK arm to keep lights on after Horizon scandal

https://www.theregister.com/2025/10/13/fujitsu_uk_280m_funding/
1•rntn•3m ago•0 comments

Geopolitics and Open Source: KYM (Know Your Maintainers)

https://vulnerability.blog/2025/10/13/geopolitics-and-open-source-kym-know-your-maintainers/
1•wowohwow•3m ago•0 comments

I did a funny launch on Product Hunt, but nobody noticed anyway

1•dahra•4m ago•0 comments

The Eames Lounge Chair was always expensive

https://www.echevarria.io/blog/eames-lounge-chair-price-history/index.html
2•ivanech•8m ago•0 comments

The only benchmark that matters is the one that emulates your real workload

http://www.kroah.com/log/blog/2025/10/01/the-only-benchmark-that-matters-is.../
1•LorenDB•8m ago•0 comments

When Values Eat Their Young: How Ideal-Driven Groups Drift into Their Own Shadow

https://kennethreitz.org/essays/2025-08-25-when-values-eat-their-young
1•PaulHoule•9m ago•0 comments

Sandboxing on macOS

https://bdash.net.nz/posts/sandboxing-on-macos/
1•aviramha•10m ago•0 comments

Multi-booting Windows From 1.01 to 11 on real hardware

https://old.reddit.com/r/pcmasterrace/comments/1o4vilb/multibooting_windows_from_101_to_11_all_17/
1•LorenDB•10m ago•0 comments

Causal Profiling

https://khayyamguliyev.substack.com/p/causal-profiling
1•khguliye•11m ago•0 comments

Instantspaces: Remove/Minimize macOS Space Animations

https://github.com/flawnn/instantspaces
2•flawn•11m ago•2 comments

Tauchgang

https://tauchgang.dev
2•amanciero•12m ago•1 comments

The Problem with “You”: How a Pronoun Complicates Our Relationship with AI

https://opuslabs.substack.com/p/the-problem-with-you
1•opuslabs•13m ago•0 comments

24 Years of NASA Satellite Data Suggest the World Is Getting Darker

https://www.iflscience.com/24-years-of-nasa-satellite-data-suggest-the-world-is-getting-darker-an...
2•geox•22m ago•0 comments

Trio win Nobel economics prize for work on technology-driven growth

https://www.theguardian.com/business/2025/oct/13/nobel-economics-prize-technology-joel-mokyr-phil...
1•andsoitis•23m ago•0 comments

Show HN: CrossRun – An Open Standard to Make Software Run on Any Platform

https://github.com/CrossRun/Manifesto
1•Swarde11•24m ago•0 comments

AI Triples Stroke Recovery Rates

https://thedispatch.com/article/donald-trump-third-term-steve-bannon-jd-vance/
1•mhb•25m ago•0 comments

Show HN: Terminal-First Documentation Service

https://www.dodo-doc.com/
1•mkei29•26m ago•0 comments

Ross Sorkin on similarities between Wall Street today and 1929's markets

https://www.youtube.com/watch?v=26WMF7Xdb0E
2•belter•26m ago•1 comments

Show HN: ch, a terminal tool to highlight specific words in your command output

https://github.com/dtonon/ch
1•dtonon•28m ago•0 comments

Show HN: EMDR Bilateral Stimulation App

https://myemdr.app/bls
1•positive-minds•28m ago•0 comments

Apple ups the reward for finding major exploits to $2M

https://www.wired.com/story/apple-announces-2-million-bug-bounty-reward/
3•Brajeshwar•29m ago•1 comments

The Resurrection of the Two-State Solution

https://www.foreignaffairs.com/israel/martin-indyk-palestine-strange-resurrection-two-state-solution
1•rishabhd•29m ago•0 comments

'Tipping point' threshold reached for coral reefs, report suggests

https://www.abc.net.au/news/science/2025-10-13/tipping-point-reached-for-coral-reefs-globally-stu...
3•Brajeshwar•30m ago•1 comments

More Evidence Emerges That One of Saturn's Moons Could Harbor Life

https://www.wired.com/story/more-evidence-emerges-that-one-of-saturns-moons-could-harbor-life/
3•Brajeshwar•30m ago•0 comments

"Needs to be verified in production"

https://olano.dev/blog/verified-in-production/
1•facundo_olano•32m ago•0 comments

Datacenter water use? California governor says don't ask, don't tell

https://www.theregister.com/2025/10/13/california_datacenter_water_bill/
2•rntn•33m ago•0 comments