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

Dissecting Spring petclinic (Part 2 – Bending the persistence)

https://hannomalie.github.io/posts/dissecting-spring-petclinic-persistence.html
1•ejboy•4s ago•0 comments

The NBA player who got hooked on sports betting

https://www.newyorker.com/magazine/2026/11/16/the-nba-player-who-got-hooked-on-sports-betting
1•anigbrowl•1m ago•0 comments

Supporting surge pricing in emergencies is a top correlation with IQ in my data

https://twitter.com/Aella_Girl/status/2121523915977789598
1•delichon•1m ago•0 comments

Laver Tables

https://observablehq.com/@mattdiamond/laver-tables
1•md224•3m ago•0 comments

Once considered macabre, the consumption of roadkill is having a culinary moment

https://www.vqronline.org/essays/opportunivores-dilemma
1•bookofjoe•9m ago•1 comments

Show HN: Light Sleep – Relax and Sleep

https://play.google.com/store/apps/details?id=com.yugakhan.lightsleep&hl=en_US
1•cflsdf•13m ago•0 comments

Show HN: Monster Cursor – Cartoon Beast Mouse

https://chromewebstore.google.com/detail/monster-cursor-cartoon-be/fjgmgjefbipdjbcjhbenanmkhmdjokcl
1•cflsdf•14m ago•0 comments

Show HN: WendyOS, Linux for robots with USB-C deployment and rollback updates

https://docs.wendy.dev/latest/getting-started/app/
1•zamderax•15m ago•0 comments

The Trolls Among Us (2008)

https://www.nytimes.com/2008/08/03/magazine/03trolls-t.html
1•convict•16m ago•1 comments

The AI revolution is leaving younger tech workers behind

https://twitter.com/KobeissiLetter/status/2121689817301819425
3•liquid_oil•16m ago•0 comments

Thunder/Lighting Distance Game

https://five-mississippi.com/
1•kiaofz•19m ago•1 comments

Lazarus: Backdooring LLMs by editing ten neurons

https://twitter.com/DimitrisPapail/status/2120245027804705121
1•stavros•25m ago•0 comments

DeepSeek's New LLM Engine Just Made GPUs 3x More Valuable [video]

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

How can I simplify using a helper class to pass multiple parameters to co_await?

https://devblogs.microsoft.com/oldnewthing/20261113-00/?p=112856/
1•ibobev•27m ago•0 comments

Show HN: I made a tiny HN-style forum for small communities

https://github.com/skorokithakis/soliloquy
1•stavros•29m ago•1 comments

Single instruction, multiple threads (SIMT)

https://en.wikipedia.org/wiki/Single_instruction,_multiple_threads
1•teleforce•30m ago•0 comments

Pi-Cam-IR-A

https://studiowetware.com/pi-cam-ir-a/
1•Beachkilla•30m ago•0 comments

Let Me Let You Own Your Data

https://www.willett.io/posts/data/
1•vinhnx•30m ago•0 comments

A petition to reinstate Jensen Huang as Nvidia CEO has over 100k signatures

https://www.businessinsider.com/petition-reinstate-jensen-huang-nvidia-elon-musk-2026-11
3•cdrnsf•31m ago•0 comments

Can you install two hot-patches if Windows Update checks for existing patches?

https://devblogs.microsoft.com/oldnewthing/20261109-00/?p=112841/
1•ibobev•31m ago•0 comments

Flipping Toshiba 110CT Satellites (2023)

https://dankpads.com/uncategorized/flipping-toshiba-110ct-satellites/
2•sammatilda•33m ago•0 comments

DeepSeek releases API for its apps along with open source front end

https://twitter.com/deepseek_ai/status/2121247896918253875
1•rjzzleep•38m ago•0 comments

Ask HN: Is post-training make AI models dumber?

2•CleverLikeAnOx•40m ago•2 comments

Bing is the anti-AI search engine you should be using

https://www.pcworld.com/article/3115405/bing-is-the-anti-ai-search-engine-you-should-be-using.html
1•Topfi•45m ago•1 comments

Serving Kimi K3 – DigitalOcean

https://www.digitalocean.com/blog/serving-kimi-k3-inference-engine
1•birdculture•48m ago•0 comments

Alibaba's Qwen3.8 re-educated with a more Western worldview

https://www.theregister.com/ai-and-ml/2026/11/13/alibabas-qwen38-re-educated-with-a-more-western-...
3•u1hcw9nx•52m ago•1 comments

Phantasialand: Microsoft outage hid pool chlorine fault, 15 guests hurt

https://pollar.news/en/event/phantasialand-pool-15-guests-hurt
4•Eduard•53m ago•0 comments

Save the Gronlid Library – What's Up Choiceland

https://wucland.substack.com/p/gronlid-pushes-to-save-library
2•jgudmuns•55m ago•0 comments

Proof of effort: When LLMs destroyed the time for execution

https://shawnsomething.com/thoughts/proof-of-effort/
2•Shawn_Something•55m ago•0 comments

The end of credential sprawl for agents

https://vercel.com/blog/the-end-of-credential-sprawl-for-agents
1•gmays•56m ago•0 comments