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

2026 Europhysics Prize honors discovery of third fundamental class of magnetism

https://www.eurekalert.org/news-releases/1137502
1•bookofjoe•4m ago•0 comments

Why Casper forked Rust's rand crate

https://casualhacks.net/blog/2026-07-27-why-i-forked-rand.html
1•fanf2•4m ago•0 comments

Show HN: Free AI Prompt Gen – A local-first, open-source prompt engineering tool

https://freeaipromptgen.com/
1•linuxterminal•6m ago•0 comments

Visa to Cut 7% of Workforce

https://www.bloomberg.com/news/articles/2026-07-28/visa-to-cut-7-of-workforce-as-ceo-seeks-to-rev...
2•tosh•8m ago•0 comments

An Odd Kind of Sympathy

https://willthefirst.github.io/synchronizing-metronomes/
1•willthefirst•8m ago•0 comments

Nimdai: Renowned British Gurkha climber and Netflix star confirmed dead

https://news.sky.com/story/nirmal-purja-former-british-special-forces-soldier-dead-after-avalanch...
1•frogfish•8m ago•0 comments

HTML Day 2026 Shanghai

https://rect.repair/html-2026/
1•adrianhon•10m ago•0 comments

Show HN: AllMCPs – Directory of MCP Servers

https://allmcps.com
1•ghosts_•17m ago•0 comments

U.S. lawmakers request information from DoorDash on use of Chinese AI models

https://www.cnbc.com/2026/07/31/us-lawmakers-doordash-chinese-ai-models.html
1•tito•17m ago•0 comments

Scott Jenson – How the Desktop UX needs to evolve [video]

https://www.youtube.com/watch?v=-IOLRcFC6OY
1•JeremyTheo•18m ago•0 comments

AI Has Passed Every Exam. It Has Never Had an Idea

https://manasbihani.substack.com/p/ai-has-passed-every-exam-it-has-never
4•manasb25•19m ago•0 comments

My Personal Software Journey: Self-Hosting Agent-Built Apps on a Mac Mini

https://metedata.substack.com/p/016-my-personal-software-journey
2•young_mete•21m ago•0 comments

A Country Within Myself

https://www.metanoia-research.com/dispatch-005-a-country-within-myself/
2•metanoia_•22m ago•0 comments

Ask HN: When did we go from agentic loops to graphs?

1•grandimam•22m ago•0 comments

Explosive donated to museum brings bomb squad to Eudunda Family Heritage Gallery

https://www.abc.net.au/news/2026-07-31/historian-discovers-explosive-in-museum-donations-sa/10696...
1•Tomte•23m ago•0 comments

The Screen Act Threatens Privacy Far Beyond Adult Websites

https://www.eff.org/deeplinks/2026/07/screen-act-threatens-privacy-far-beyond-adult-websites
2•Brajeshwar•23m ago•0 comments

Show HN: Agentmetry – local-first flight recorder for AI coding agents

https://agentmetry.ai/
1•blitzcrieg1•27m ago•0 comments

Did you know about Dulus? The AI harness that is giving free agentic AI?

1•devdulus•27m ago•0 comments

Dates That Don't Exist (2015)

https://blog.yossarian.net/2015/06/09/Dates-That-Dont-Exist
2•EndXA•28m ago•0 comments

The Future of Technosignature Searches: Constraining the Fermi Paradox

https://arxiv.org/abs/2606.00463
1•root-parent•31m ago•0 comments

Ruby on Rails RCE

https://github.com/rails/rails/security/advisories/GHSA-xr9x-r78c-5hrm
1•campuscodi•32m ago•0 comments

In Turkey, your coffee comes with a side of destiny

https://www.cnn.com/2025/08/26/travel/turkey-coffee-istanbul-ottoman-empire
2•koolhead17•33m ago•0 comments

Earth Overshoot Day

https://en.wikipedia.org/wiki/Earth_Overshoot_Day
2•soupspaces•33m ago•0 comments

Datacenters in Space

https://cacm.acm.org/news/datacenters-in-space/
2•visha1v•34m ago•0 comments

Old Concrete Was Better

https://blog.jimgrey.net/2026/07/31/old-concrete-was-better/
3•speckx•35m ago•0 comments

Watobot: Free WhatsApp API – multi tenancy, unique encryption and ban mitigation

https://github.com/pocha/mudbot
1•pocha•37m ago•0 comments

Western men are going abroad to find traditional wives

https://www.economist.com/culture/2026/04/16/western-men-are-going-abroad-to-find-traditional-wives
3•bryanrasmussen•37m ago•1 comments

Assessment of open AI math results

https://twitter.com/stalkermustang/status/2083485500250198453
6•paulpauper•38m ago•3 comments

Type designers have created a free font that "poisons" AI

https://www.creativebloq.com/design/fonts-typography/type-designers-have-created-a-free-font-that...
4•rafaepta•39m ago•2 comments

How can plain Wi-Fi see you move through a wall?

https://freipaul.com/posts/how-can-wifi-see-you-move-through-a-wall
2•PHr15•39m ago•0 comments