frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: routr - a fast local replacement for DuckDuckGo bangs

https://t128n.github.io/routr/
2•trbndev•11mo ago

Comments

trbndev•11mo ago
routr is a lightweight, offline search router inspired by DuckDuckGo's bangs. It's fully browser-based (no server requests needed other than the initial one) and routes queries like `!gh tokio` to GitHub, `!yt` to YouTube, `!hn` to Hacker News, etc.

What sets it apart:

- Runs entirely locally (no network, no tracking)

- Lets you define your own bangs and destinations

- Optionally rewrites queries for better precision (with AI)

Example:

Typing `article about german war in the stone age !!g` becomes: `site:en.wikipedia.org "german" AND "war" AND "stone age"`

More on query rewriting and performance:

https://tl128n.github.io/writings/2025-05-02_optimizing_sear...

Leftium•11mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•11mo ago
Ah damn what a bummer that I can‘t edit the original comment anymore. Thank you for pointing it out… didn‘t even see that extra `l` there in the url
Leftium•11mo ago
> Typing `article about german war in the stone age !!g` becomes: `site:en.wikipedia.org "german" AND "war" AND "stone age"`

I wonder how much of that could be done without AI, just (locally) using https://www.npmjs.com/package/compromise

---

Also I couldn't find your source for bang data; Kagi maintains an updated list: https://github.com/kagisearch/bangs

I'm working on an enhanced version of bangs. Since there are so many "dead" bangs, I'm thinking of using a bang whitelist and suggestions from the full list if not found in the whitelist.

trbndev•11mo ago
What an interesting library. Thanks for mentioning it here… will definitely look into it!

—-

The bangs are at

https://github.com/t128n/routr/blob/main/src/sw/routes.ts

Mostly ripped from duckduckgo.com/bang.js and then pretty-formatted with Prettier… with some sane-defaults added like a bang for ChatGPT or T3 Chat

Leftium•11mo ago
Related project (also works locally):

- https://unduck.link/

- https://github.com/t3dotgg/unduck

- https://youtu.be/_DnNzRaBWUU

---

Note unduck works without service workers: https://github.com/t3dotgg/unduck/blob/91a66c25de8b0e7ac5ba5...

Is there any advantage to using service workers?

edit: Ah... unduck doesn't work from the browser search bar.

trbndev•11mo ago
Unduck actually also uses service workers to cache the app locally

https://github.com/t3dotgg/unduck/blob/91a66c25de8b0e7ac5ba5...

—-

> Is there any advantage to using service workers?

With service workers we can intercept the `fetch` request, before the index.html gets rendered/loaded. One should (in theory) be redirected some micro-seconds faster than doing the redirect in the index.html js

AI agent designs complete RISC-V CPU from a 219-word spec, startup claims

https://www.tomshardware.com/tech-industry/artificial-intelligence/ai-agent-designs-a-complete-ri...
1•Thorondor•28s ago•0 comments

Tim Cook Calls Apple Maps Launch His 'First Big Mistake' as CEO

https://www.macrumors.com/2026/04/23/tim-cook-apple-maps-launch-his-really-big-mistake/
1•tosh•40s ago•0 comments

Medications can now lower LDL cholesterol by 80%

https://www.empirical.health/blog/apob-lowering-medications/
1•brandonb•49s ago•0 comments

Scalar Interpolation: A Better Balance Between Vector and Scalar Execution

https://danglingpointers.substack.com/p/scalar-interpolation-a-better-balance
1•blakepelton•1m ago•0 comments

98% of meat and dairy sustainability pledges are greenwashing

https://www.newscientist.com/article/2523798-98-per-cent-of-meat-and-dairy-sustainability-pledges...
1•Brajeshwar•1m ago•0 comments

Show HN: Open-source database CLI that doubles as an MCP server for agents

https://github.com/clidey/whodb/tree/main/cli
1•modelorona•2m ago•0 comments

GE/GaAs/InGaP Triple-Junction Solar Cells for Space Exploration [pdf]

https://443.ece.illinois.edu/files/2019/05/SolarCellReportPandeyWaterMarked.pdf
1•walrus01•2m ago•0 comments

Bombardier, Colab (YC S19) sign multimillion-dollar deal to design jets using AI

https://www.theglobeandmail.com/business/article-bombardier-signs-contract-colab-ai-software/
1•nickspacek•2m ago•0 comments

Stop briefing AI about your own site

https://thatseoagent.com/en
1•angelcruzdev•3m ago•0 comments

MoltX Skills – a skill pack to let agents post/accept onchain tasks (gasless)

https://github.com/thegreatfortune/moltx-skills
1•moltx•5m ago•0 comments

Firefox 150 release notes for developers (Stable)

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/150
1•speckx•6m ago•0 comments

Realmz – Reviving a Classic Macintosh Game

https://danapplegate.com/projects/2025/11/24/reviving-realmz.html
1•danapplegate•8m ago•0 comments

"It Would Be Tragic to See Humanity End" – The Disturbing Encounter in Sweden [video]

https://www.youtube.com/watch?v=2d1bwAFcMng
1•keepamovin•8m ago•0 comments

Why Steve Jobs words are magical?

1•redaantar•8m ago•1 comments

All your course are belong to me

https://hollisrobbinsanecdotal.substack.com/p/why-sameness-not-teaching-is-the
1•HR01•9m ago•0 comments

Dust converging on sandboxes and general-purpose agents

https://dust.tt/blog/getting-out-of-the-way
1•ashumz•9m ago•0 comments

The End of Responsive Images

https://piccalil.li/blog/the-end-of-responsive-images/
2•OuterVale•11m ago•1 comments

"Use links, don't talk about them."

https://unsung.aresluna.org/use-links-dont-talk-about-them/
1•speckx•11m ago•0 comments

'Perfect Japan' posts spark Gen Z social media backlash

https://www.japantimes.co.jp/news/2026/03/26/japan/society/gen-z-perfect-japan-social-media-posts/
2•PaulHoule•15m ago•0 comments

Show HN: Scrolless- Safari extension to block social algorithms, not sites

https://festudio.net/scrolless/
1•jrflo•15m ago•0 comments

Xata – open-source, cloud native, Postgres platform

https://github.com/xataio/xata
3•tee-es-gee•15m ago•0 comments

Why RCF > other code protections

1•rcf-protocol•15m ago•0 comments

Show HN: Winclipshot – Ctrl+V a Win+Shift+S screenshot into your terminal

https://github.com/Higangssh/winclipshot
1•swq115•15m ago•0 comments

Google: CLI and skills for building agents on Gemini Enterprise Agent Platform

https://github.com/google/agents-cli
2•fittingopposite•16m ago•0 comments

How long it would take to read the greatest books of all time

https://www.economist.com/interactive/graphic-detail/2024/07/26/how-long-would-it-take-to-read-th...
1•andsoitis•18m ago•0 comments

Two-step electrochemical approach for an efficient destruction of PFAS in water

https://www.sciencedirect.com/science/article/pii/S138589472600313X
2•doener•19m ago•0 comments

A quick look at Mythos run on Firefox: too much hype?

https://xark.es/b/mythos-firefox-150
2•pabs3•19m ago•0 comments

Dan Moore on Technical Blogging

https://writethatblog.substack.com/p/dan-moore-on-technical-blogging
2•mooreds•19m ago•0 comments

TeamPCP Campaign Spreads to NPM via a Hijacked Bitwarden CLI

https://research.jfrog.com/post/bitwarden-cli-hijack/
1•thefreeman•20m ago•0 comments

The open future and its enemies: protecting free society from AI dictatorship

https://feps-europe.eu/publication/the-open-future-and-its-enemies/
3•the-mitr•20m ago•0 comments