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

Commentary on N Guilty Men

https://medium.com/luminasticity/commentary-on-n-guilty-men-fc47d9dd0674
1•bryanrasmussen•3m ago•0 comments

The Cost of China's Free A.I

https://www.nytimes.com/2026/07/29/opinion/ai-china-us-free-models.html
1•kuboble•4m ago•0 comments

Spacesphere Live

https://spacesphere.sygnito.com/en
1•SYGNITO•5m ago•0 comments

Ran Moonshot's 2.8T-parameter Kimi K3 on a GPU-less mini-PC

https://github.com/ferrumox/rabbit
1•manuelslemos•8m ago•0 comments

AIs Don't Take Showers

https://chipx86.blog/2026/07/26/ais-dont-take-showers/
2•bw86•9m ago•0 comments

Proofchain – verify any database's history without trusting the operator

https://github.com/cipherxsniper/proofchain
2•cipherxsniper•10m ago•0 comments

Mapping CVEs to Mitre ATT&CK Techniques

https://arxiv.org/abs/2607.25572
2•adulau•20m ago•1 comments

Folding Paper Globes

https://foldingglobes.com/globes
2•dango2506•20m ago•0 comments

U of T mathematician Jacob Tsimerman awarded prestigious Fields Medal

https://www.utoronto.ca/news/nobel-prize-mathematics-u-t-mathematician-jacob-tsimerman-awarded-pr...
1•gregsadetsky•22m ago•0 comments

Chemical recycling plants closing in EU and US

https://www.chemistryworld.com/news/chemical-recycling-plants-closing-in-eu-and-us/4023904.article
2•latexr•27m ago•0 comments

Preempting the Prefill

https://inmyhead.is/blog/preempting-the-prefill-part-1/
3•adityau19•27m ago•0 comments

Claude Chat Container

https://claude.ai/share/24074801-092c-4a9c-970f-e533f58e88cd
3•_continuation•30m ago•1 comments

Security Determination on the Threat Posed by Foreign-Produced Power Inverters [pdf]

https://www.fcc.gov/sites/default/files/power-inverter-fcc-determination.pdf
1•Stevvo•37m ago•0 comments

Google rivals line up seeking damages after record $1B EU fine

https://www.reuters.com/legal/litigation/google-rivals-line-up-seeking-damages-after-record-1-bil...
3•1vuio0pswjnm7•39m ago•0 comments

Why Christopher Nolan shot "The Odyssey" on IMAX film [video]

https://www.youtube.com/watch?v=1GEqDZ3hQSo
1•handfuloflight•41m ago•0 comments

eBay pays $46M to journalists it targeted in harassment campaign

https://arstechnica.com/tech-policy/2026/07/ebay-former-execs-pay-56m-to-settle-bloody-pig-mask-h...
4•robin_reala•41m ago•1 comments

Dreams Drain Energy: The REM Sleep Paradox

https://www.tohoku.ac.jp/en/press/dreams_drain_energy_the_rem_sleep_paradox.html
2•giuliomagnifico•42m ago•0 comments

Raw Data, Wrong Answers

https://www.theclimatebrink.com/p/raw-data-wrong-answers
1•adrianN•42m ago•0 comments

Web Rendering in Iced: What Works

https://gofranz.com/blog/web-rendering-in-iced-what-actually-works/
1•chironjit•44m ago•0 comments

Kids who own phones have poorer reading comprehension scores than those who dont

https://newsroom.ucla.edu/releases/owning-a-cell-phone-associated-with-poorer-reading-comprehensi...
2•JeanKage•44m ago•0 comments

Paseo: Open-source desktop and mobile app for TUI coding agents (Codex, CC)

https://paseo.sh/
1•maxloh•45m ago•0 comments

Towards Automating Eval Engineering

https://twitter.com/Vtrivedy10/status/2079976006644072796
1•gmays•45m ago•0 comments

Show HN: FOSS sandbox platform for zero trust remote access without secrets

https://github.com/octelium/cordium
1•geoctl•46m ago•0 comments

Google reported its first negative quarter since going public

https://finance.yahoo.com/technology/ai/articles/google-spent-490-million-day-163000234.html
5•mgh2•51m ago•2 comments

Grammar.lol: open-source Grammarly using existing ChatGPT or Grok Subscription

https://grammar.lol
2•KitN•52m ago•1 comments

WhatsApp Opening:Threema Rejects Integration Not Just Because of Data Protection

https://www.heise.de/en/news/WhatsApp-Opening-Threema-Rejects-Integration-Not-Just-Because-of-Dat...
1•Markoff•54m ago•1 comments

New airliner sets record flying 24 hrs nonstop from Australia to France

https://arstechnica.com/gadgets/2026/07/new-airliner-sets-record-flying-24-hrs-nonstop-from-austr...
8•divbzero•1h ago•2 comments

Show HN: PR review time decreased by N3MO:impact analyzer (15 days free trial)

https://n3mo.vercel.app
2•RajX_dev•1h ago•1 comments

PJM board proposes backstop capacity auction, data center curtailment plans

https://finance.yahoo.com/energy/articles/pjm-board-proposes-backstop-capacity-100932204.html
2•measurablefunc•1h ago•0 comments

China tests largest superconducting fusion magnets ever built

https://theprint.in/india/breakthrough-china-artificial-sun-project-6-5-tesla-magnet/2999321/
6•soniman•1h ago•1 comments