frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://t128n.github.io/routr/
2•trbndev•1y ago

Comments

trbndev•1y 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•1y ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•1y 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•1y 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•1y 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•1y 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•1y 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

October Counterfeit Block: What Happened and Where Every Coin Went

https://getbtcz.com/news/2026-10-22-counterfeit-block-1860181-every-coin-traced/
1•ztextzksnarks•1m ago•0 comments

Farol: The anti-slop workspace for your agents

https://www.farol.build/
1•acfilho•2m ago•0 comments

What Could Go Wrong

https://techcrunch.com/2026/10/22/1password-launches-a-way-for-ai-agents-to-log-in-on-your-behalf...
1•mrc3llophane•5m ago•0 comments

Glyphh Ada: Decision model that learns from your past decisions, no transformer

https://glyphh.ai/blog/introducing-ada
1•glyphhai•6m ago•0 comments

The most important thing today is that Starlink and Starshield operations

https://twitter.com/zelenskyyua/status/2113990281322221932
1•doener•7m ago•0 comments

AI Assistance Reduces Persistence and Hurts Independent Performance

https://arxiv.org/abs/2604.04721
1•ingve•9m ago•0 comments

How AI Saved My Company From a 2-Year Litigation Nightmare

https://tylertringas.com/ai-legal/
1•karakoram•10m ago•0 comments

RFC 8949: STD 94: Concise Binary Object Representation (CBOR)

https://www.rfc-editor.org/info/rfc8949/
1•Bluestein•14m ago•0 comments

Not Invented Here

https://en.wikipedia.org/wiki/Not_invented_here
2•amelius•14m ago•1 comments

We are terminating Chris Degnan for unethical conduct involving Cognition

https://twitter.com/matanSF/status/2105335179502064038
1•ksec•14m ago•0 comments

UX Research for AI Products: The AI-Native Research Lifecycle

https://www.uxness.in/2026/10/ux-research-for-ai-products-ai-native-research-lifecycle.html
1•uxrabhi•15m ago•0 comments

All Abstractions Are the Same

https://t3.at/blog/everything-is-everything/
1•vismit2000•15m ago•1 comments

What the U.S. Is Doing in Venezuela

https://www.theatlantic.com/magazine/2026/12/trump-oil-venezuela-exploitation/689033/
2•_tk_•15m ago•0 comments

Google illegally cut down 250K trees in Finland for data center

https://nypost.com/2026/10/24/business/google-illegally-tore-down-250k-trees-for-finland-data-cen...
4•rustybolt•16m ago•2 comments

With recent eMudra case, learning Cryptography well is more important that

1•shoebilyas_hanz•16m ago•0 comments

Show HN: TenseMem – deterministic memory for AI agents

https://github.com/tensemem/tensemem
1•shubh-singh•17m ago•0 comments

BeNice Closing the Inference-Memory Gap of Looped Models with KV-Sharing

https://sandyresearch.github.io/benice/
1•simonpure•18m ago•0 comments

I created this because I wanted to

https://avanelsas.github.io/foggy-glasses/i-created-this-because-i-wanted-to/
2•vanelsas•18m ago•0 comments

Group in San Francisco graftng fruit-bearing branches onto street trees

https://twitter.com/JasonBassler1/status/2113745277416771830
4•bilsbie•18m ago•0 comments

Under a Cloud: How was slavery justified?

https://www.lrb.co.uk/the-paper/v48/n19/alexander-bevilacqua/under-a-cloud
2•Tomte•20m ago•0 comments

Show HN: Firefighter.sh – an insane solution to the current CVE apocalypse

https://firefighter.sh/
1•jjcm•24m ago•1 comments

Show HN: Visual Studio extension that shows decimal and hex in the debugger

https://github.com/JochenBaier/AlwaysHex
1•__builtin_trap•25m ago•0 comments

How Much Does Custom Software Development Cost in the UK?

https://www.bitechnology.co.uk/
1•itshimbilal•26m ago•0 comments

AegisKernel – Zero-Trust OS Syscall and Shell Defense for AI Agents

https://github.com/adikshatriyag-crypto/aegis-kernel
1•adityawebde•29m ago•0 comments

The Human Brain Owes Its Existence to a Prehistoric Pandemic

https://www.psychologytoday.com/us/blog/the-new-brain/202610/the-human-brain-owes-its-existence-t...
1•gmays•29m ago•0 comments

New Critical Television

https://openvault.wgbh.org/exhibits/new-critical-television
1•jruohonen•30m ago•0 comments

Show HN: Bellman – rooms where agents from different providers work together

https://github.com/bellman-sh/bellman
1•mcfearsome•31m ago•0 comments

Show HN: A phone lock I can't undo on impulse because I never learn the code

https://tryscreenfasting.com/
1•shafayeat•32m ago•1 comments

Prusa Breach Their Own GPLv3 License for over a Week

https://danb.me/blog/prusa-gplv3-firmware/
1•Tomte•32m ago•0 comments

Show HN: Free Online Image Tools

https://imgimage.com/
1•artiomartiom•33m ago•1 comments