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

Vikranthguptha bookmarks: – page: 1 – yabs.io

https://www.yabs.io/a/view.php?user=vikranthguptha
1•wealthmunshibl•19s ago•0 comments

Quite an apropos quote for these times

https://blog.randomstring.org/2026/09/22/quite-an-apropos-quote-for-these-times/
1•marjancek•3m ago•0 comments

UT Austin Math Chair says OpenAI preparing to release 400 AI-generated proofs

https://twitter.com/Frances01896069/status/2107171555973185577
1•optimalsolver•3m ago•0 comments

Next.js Website Examples: Top Popular Companies Who Use Next.js

https://focusreactive.com/blog/next-js-websites/
1•katyadrozd•3m ago•0 comments

Full native Roblox Studio from your phone

https://twitter.com/xeno_mouse/status/2107521858526384257
1•hotshotqq•4m ago•0 comments

CSSV · Comma-Separated Styled Values

https://cssv.dev/
2•thunderbong•5m ago•0 comments

What Ever Happened to Television Channel 1?

https://www.rfcafe.com/references/radio-electronics/channel-1-what-happened-radio-electronics-mar...
1•wetwater•6m ago•1 comments

Modding an Early Intel Mac Mini

https://theonlyblogever.com/blog/2026/oldminimods.html
1•speckx•7m ago•0 comments

Show HN: Talk to Sam (AI) and send a real letter by post

https://www.sendwithsam.com
1•Neddes•8m ago•0 comments

Finland orders halt to work on two Google data centres

https://www.bbc.com/news/articles/cvj6jkx6g1r0o
3•tosh•8m ago•0 comments

A Visit to a Gun Store Shouldn't Put You on a Government List

https://reason.com/2026/10/05/a-visit-to-a-gun-store-shouldnt-put-you-on-a-government-list/
1•delschlangen•8m ago•0 comments

Conceptual Blockbusting [pdf]

https://muqithfiles.wordpress.com/wp-content/uploads/2020/07/conceptual-blockbusting-a-guide-to-b...
1•joebig•9m ago•0 comments

Why the fifth postulate resisted proof for two thousand years

https://write.as/rkpf6yude094v
1•olivia_blakes•10m ago•0 comments

Reading the code of State of the Art: a demo, thirty years later

https://medium.com/@cyrilgeorgespereira/reading-the-code-of-state-of-the-art-a-demo-thirty-years-...
1•futurecat•11m ago•0 comments

Show HN: Prevo – AI voice interviewer for visa, citizenship, job and pitch prep

https://www.prevoapp.com/
1•SamuelRecio•14m ago•0 comments

Who owns 'brain rot'?: inside the international legal drama over a beloved meme

https://www.theguardian.com/technology/2026/oct/06/brain-rot-tung-tung-tung-sahur-noxa-openai-video
3•jethronethro•14m ago•0 comments

Robotsimulator.ai

https://www.babacad.com/robotics/web/
1•comirza•15m ago•0 comments

Bending Spoons Made Billions Buying Up Forgotten Tech [video]

https://www.youtube.com/watch?v=ZdmnHQmG8vc
1•mooreds•15m ago•0 comments

AKS Primality Test

https://en.wikipedia.org/wiki/Agrawal%E2%80%93Kayal%E2%80%93Saxena_primality_test
1•harporoeder•16m ago•0 comments

Red Hat Is Phased Out of Existence This Month Onwards

https://techrights.org/n/2026/10/05/Red_Hat_is_Phased_Out_of_Existence_This_Month_Onwards.shtml
2•amcclure•16m ago•1 comments

Last rites for Gentoo's Chromium package

https://lwn.net/SubscriberLink/1097760/2be4d9e3eeb59039/
1•ibobev•21m ago•0 comments

We Should Inject Dependencies

https://gist.github.com/alassek/1a185a8cdae20ddd991a8cd3cd90d347
1•ibobev•22m ago•0 comments

Perseus: A Fail-Slow Detection Framework for Cloud Storage Systems [pdf]

https://www.usenix.org/system/files/fast23-lu.pdf
1•ibobev•22m ago•0 comments

An OMR model 6x more accurate at 1/30 the size

https://kobi.music/research/copista
1•hidude562•24m ago•1 comments

Show HN: Pixel-exact HTML-to-PDF in the browser, no Puppeteer or server

https://github.com/zztaeha/daepdf
3•silly-tae•24m ago•0 comments

Show HN: Gitwal – know when people talk about your code

https://gitwal.com/alerts
2•gajus•28m ago•0 comments

Show HN: Open-bridge, how our four-person team works with coding agents

https://github.com/bks-lab/open-bridge
3•Mboiman•29m ago•0 comments

Exploring the Polar Bear Capital of the World

https://artfulliving.com/polar-bear-capital-of-the-world-churchill-manitoba/
1•speckx•30m ago•0 comments

How many GPUs is 1M/B/T tokens?

https://cedana.com/resources/tokens-to-gpus/
3•kmavm•32m ago•0 comments

Show HN: Texpile – An open-source, Typora-style editor for LaTeX and Typst

https://texpile.com/
1•asyncfun•32m ago•1 comments