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

Ask HN: What file sharing apps do you guys use?

1•samarthv•1m ago•0 comments

Can Frontier AI Labs make money?

https://janosmeny.com/blog/can-frontier-ai-labs-make-money/index.html
1•janos95•2m ago•0 comments

Show HN: Genesys – Causal graph memory for AI agents, not just vectors

https://github.com/rishimeka/genesys
1•rmm2496•3m ago•0 comments

Trump evacuated from White House Correspondents' Dinner after shots fired

https://www.abc.net.au/news/2026-04-26/trump-evacuated-white-house-correspondents-dinner-shots-fi...
5•rport•19m ago•3 comments

Does Internet Advertising Work?

https://freakonomics.com/podcast/does-advertising-actually-work-part-2-digital-ep-441/
2•hackthemack•21m ago•3 comments

The American Kill Line

https://jbrr.dev/the-american-kill-line/
3•jbrr•26m ago•0 comments

Open-Source Inference is growing 10% week over week this year

2•luew•27m ago•0 comments

Culina – an OS for multi-location restaurant operations

https://app.getculina.app/login
1•SendjiLabs•27m ago•1 comments

Mechanical forces from the beating heart may help prevent cancer cell growth

https://medicalxpress.com/news/2026-04-mechanical-heart-cancer-cell-growth.html
1•bookmtn•30m ago•0 comments

Evolution Strategies at the Hyperscale [pdf]

https://eshyperscale.github.io/imgs/paper.pdf
1•Anon84•31m ago•0 comments

Aruana – Detects scams and blocks PII before it reaches AI chatbots (100% local)

https://aruana.maiaware.com/
1•rolsite•35m ago•0 comments

When the cheap one is the cool one

https://arun.is/blog/cheap-cool/
1•ddrmaxgt37•35m ago•0 comments

Why Volcanoes Sometimes Shoot Out Lightning

https://nautil.us/why-volcanoes-sometimes-shoot-out-lightning-1280235
1•Brajeshwar•37m ago•0 comments

Replacing an Apple Time Capsule? Skip the Ubiquiti UNAS-2

https://rachelbythebay.com/w/2026/04/24/unas/
1•drpixie•40m ago•1 comments

Trump Evacuated After Shots Fired at DC Event; Shooter Detained

https://www.bloomberg.com/news/articles/2026-04-26/alleged-shooter-at-white-house-press-event-in-...
8•anjneymidha•48m ago•0 comments

Tired of high costs, some Americans are importing homes straight from China

https://www.cnn.com/2026/04/25/business/china-imports-americans-homebuilding-costs
2•breve•53m ago•1 comments

Trump rushed out of dinner amid reports of shots fired

https://www.nytimes.com/live/2026/04/25/us/trump-whca-shooting
5•koolba•56m ago•1 comments

Multiple AI Models in One Platform

https://www.chatcomparison.ai/
1•chatcomparison•58m ago•0 comments

Zephyr Agent: Add AI chat to any website

https://zephyr-agent.sh/
2•daltonlcarr•59m ago•0 comments

My husband and son dived to see the wreck of the Titanic, and never came back

https://www.theguardian.com/world/2026/apr/25/my-husband-and-son-titan-submersible-christine-dawo...
3•pseudolus•1h ago•1 comments

Show HN: Get – get anything from your computer

https://github.com/Water-Run/get
1•linzhangrun•1h ago•0 comments

With A.I., Anyone Can Be an Influencer

https://www.newyorker.com/culture/the-lede/with-ai-anyone-can-be-an-influencer
1•petethomas•1h ago•0 comments

Tell HN: An app is silently installing itself on my iPhone every day

9•_-x-_•1h ago•5 comments

OpenAI shipped privacy-filter, a 1.5B PII tagger you can run locally

https://redactdesk.app/blog/openai-privacy-filter
3•kamban•1h ago•0 comments

Yalda Hakim on the collapse of 'seeing is believing'

https://www.reuters.com/lifestyle/culture-current/yalda-hakim-collapse-seeing-is-believing-2026-0...
1•petethomas•1h ago•0 comments

Decoupled DiLoCo for Resilient Distributed Pre-Training [pdf]

https://storage.googleapis.com/deepmind-media/DeepMind.com/Blog/decoupled-diloco-a-new-frontier-f...
2•gnabgib•1h ago•0 comments

The Race to Make the Most In-Demand Machine

https://www.wsj.com/business/the-race-to-make-the-worlds-most-in-demand-machine-092e8cea
2•petethomas•1h ago•0 comments

EarTrumpet: Volume Control for Windows

https://eartrumpet.app/
1•thunderbong•1h ago•0 comments

New Model May Explain Why You're Not a Twin

https://nautil.us/this-new-model-may-explain-why-youre-not-a-twin-1280219
1•Brajeshwar•1h ago•0 comments

Why is there so much bad code at big companies?

https://www.natemeyvis.com/why-is-there-so-much-bad-code-at-big-companies/
2•Brajeshwar•1h ago•1 comments