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

Successful Families Are Process Knowledge

https://steader.substack.com/p/successful-families-are-process-knowledge
1•paulpauper•54s ago•0 comments

Air traffic controller saves day when 2 flights with same call number converge

https://avherald.com/h?article=53da5ce0
1•cf100clunk•1m ago•1 comments

TemporalStore: A disruptive open-source engine managing your LLM memory

https://temporalstore.ai/blog-context-management.html
1•matrixarkai•1m ago•0 comments

Every ESP32 has one of 4.3B doodle faces latent in its Mac address

https://evandroguedes.github.io/doodlesoul/
1•evandrog•1m ago•0 comments

Shadowy paper mills let you pay to be a published author of fraudulent research

https://www.theguardian.com/science/2026/aug/16/science-or-fiction-shadowy-paper-mills-let-you-pa...
3•billybuckwheat•3m ago•0 comments

The /Handoff Skill

https://www.aihero.dev/skills-handoff
1•evo_9•7m ago•0 comments

Show HN: Chrome extension that tracks job applications on your machine

https://github.com/RajaBabu15/job-focus-assist
1•rajacodes26•7m ago•0 comments

There's a reason why Israel has done little to rein in settler violence

https://apnews.com/article/israel-palestinians-settler-violence-us-siege-west-bank-bd4ae76cec1773...
1•johnbarron•7m ago•0 comments

How Powerful Is Maya?

https://www.quora.com/How-powerful-is-Maya
1•peter_d_sherman•8m ago•0 comments

Addrbook – A Contact Management Program

https://ratfactor.com/repos/addrbook/
1•smartmic•15m ago•0 comments

The little-known winstart.bat batch file

https://devblogs.microsoft.com/oldnewthing/20260811-00/?p=112605
1•ingve•15m ago•0 comments

Why I've tracked every single piece of clothing I've worn for three years

https://www.reaktor.com/insights-and-events/why-ive-tracked-every-single-piece-of-clothing-ive-wo...
2•geneticdrifts•19m ago•0 comments

Cobras in His Garden by Harry Kursh (1965) [pdf]

https://gwern.net/doc/biology/1965-kursh-cobrasinhisgarden.pdf
1•johntfella•19m ago•0 comments

Twilio Sendgrid: Elevated Microsoft 365 IP Blocks Causing Delivery Failures

https://status.twilio.com/incidents/r2gvsly2y5ty
1•ldidi•19m ago•0 comments

Show HN: An interactive UI for the grill-me skill

https://plannotator.ai/blog/an-interactive-ui-for-the-grill-me-skill/
3•ramoz•21m ago•0 comments

American Airlines 737s with the Same Callsign Flew Straight at Each Other

https://simpleflying.com/american-airlines-boeing-737-same-callsign/
4•croes•22m ago•0 comments

Show HN: Glad-AI-Tor – AI tools ranked by user votes, not by who pays

https://glad-ia-tor.com
2•Enjoyooor•23m ago•0 comments

An act of War or an act of God?

https://coolclimate.substack.com/p/an-act-of-war-or-an-act-of-god
1•myhacks•23m ago•0 comments

Do Pumps Create Pressure or Flow?

https://practical.engineering/blog/2021/4/30/do-pumps-create-pressure-or-flow
2•Akronymus•24m ago•1 comments

Human Speechome Project

https://en.wikipedia.org/wiki/Human_Speechome_Project
1•pr337h4m•27m ago•0 comments

Responsibility Is Taken Before It Is Given

https://lalitm.com/responsibility-is-taken-before-it-is-given/
2•lalitmaganti•28m ago•0 comments

Show HN: Security scanner for your SaaS. Find and fix Vulnerabilities. 35% off

https://sentrint.com/sample
2•Gourabdg•33m ago•0 comments

Cyberlandfillville Social (yet another slop edition of EFWS)

https://paperclip-factory.de/cyberlandfillville/
1•moritzwarhier•33m ago•1 comments

Gum Wrappers World

https://gww.su/map/
1•NaOH•33m ago•0 comments

Humazon

https://hughhowey.com/humazon/
2•herbertl•34m ago•0 comments

Plastic mechanical computer from 1963: The Digi-Comp 1 [video]

https://www.youtube.com/watch?v=-y8bGBE71yw
1•tobr•37m ago•0 comments

The Day of Small Things

https://robinrendle.com/notes/the-day-of-small-things/
1•herbertl•37m ago•0 comments

Paperditor – a free, open-source WYSIWYG Markdown editor

https://github.com/guisaldanha/paperditor/
1•guisaldanha•40m ago•1 comments

Minimally Invasive Education

https://en.wikipedia.org/wiki/Minimally_invasive_education
1•thunderbong•41m ago•0 comments

Lego Space Hubble Telescope

https://ideas.lego.com/product-ideas/cf7b0374-c853-4b6f-98c6-66b8ef7fcdaf
2•tcp_handshaker•42m ago•0 comments