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

I'm not ready to let AI control my computer

https://ldstephens.net/posts/im-not-ready-to-let-ai-control-my-computer/
1•speckx•1m ago•0 comments

Designing Enzymes with AlphaProtein Novo

https://www.biorxiv.org/content/10.64898/2026.10.01.756017v1
1•simonpure•1m ago•0 comments

Texas city charges $2M for Flock records as agencies obscure their camera use

https://www.texastribune.org/2026/10/05/texas-flock-cameras-two-million-public-records-information/
1•hn_acker•1m ago•1 comments

Finally, a bookmark manager I actually use

https://chromewebstore.google.com/detail/kosh-bookmark-manager/meldjdfnfgefeoegccphimkmgmeamcce
1•havu12•2m ago•0 comments

Once intelligence is too cheap to meter, the world will be unrecognizable

https://defensesindepth.bio/once-intelligence-is-too-cheap-to-meter-the-world-will-be-unrecogniza...
1•speckx•4m ago•0 comments

Recovering Legacy S3QL from AWS S3

https://mashio.net/blog/2026-10-02-recovering-legacy-s3ql-filesystems-from-aws-s3
1•cosinetau•6m ago•0 comments

AI Just Crossed the Terrifying Line – Now What? [video]

https://www.youtube.com/watch?v=ujkD4SxPKOI
1•tosh•6m ago•0 comments

Connecting AI agents to enterprise knowledge

https://www.technologyreview.com/2026/10/05/1145580/connecting-ai-agents-to-enterprise-knowledge/
1•joozio•6m ago•0 comments

Four Databricks Genie Controls That Don't Stop Malicious Skills

https://www.promptarmor.com/resources/four-databricks-genie-controls-that-dont-stop-malicious-skills
1•aleira•7m ago•0 comments

One GPU, One Small Room, One NSFW Microdrama: H3's New Challenge for Regulators

https://zrainbow.substack.com/p/one-gpu-one-small-room-one-nsfw-microdrama
1•ZRainbow•8m ago•0 comments

Expat 2.9.0 released, fixes two vulnerabilities

https://blog.hartwork.org/posts/expat-2-9-0-released/
1•spyc•8m ago•0 comments

Teaching your spaghetti machine to aim

https://oscar.bz/p/teaching-your-spaghetti-machine-to
1•arnon•8m ago•0 comments

Stop Efforts to Greenlight AI Robocalls Ahead of the Midterms

https://www.nclc.org/stop-efforts-to-greenlight-ai-robocalls-ahead-of-the-midterms/
1•hn_acker•10m ago•0 comments

Turbobasic-0: a clone of Turbo BASIC in Pascal

https://github.com/gladir/TURBOBASIC-0
1•JdeBP•10m ago•1 comments

httpSMS: Send and receive SMS messages using your Android phone programmatically

https://github.com/NdoleStudio/httpsms
1•theanonymousone•11m ago•0 comments

Three exchanges died this year. The mess lands on accountants

https://gil-neto.com/blog/three-exchanges-died-this-year/
1•gilneto8•11m ago•0 comments

The Human-Machine Friendship Society

https://hmfs.ai/
1•gwbrooks•13m ago•1 comments

Chinese women turn to surrogates to avoid motherhood 'penalty'

https://www.ft.com/content/6fa1cea0-7353-4b58-8d2d-1cf884b3f01d
1•paulpauper•14m ago•0 comments

Questions for Sam Kriss

https://12questions.substack.com/p/12-questions-for-sam-kriss
1•paulpauper•14m ago•0 comments

The Greg Clark Symposium

https://marginalrevolution.com/marginalrevolution/2026/10/the-greg-clark-symposium.html
1•paulpauper•14m ago•0 comments

DigitalOcean Ends Open Source Credits Program

https://itsfoss.com/news/digitalocean-open-source-credits-end/
2•JamesCoyne•15m ago•0 comments

YC partner ports Myth to WebAssembly

https://twitter.com/koomen/status/2106879738640023929
3•astlouis44•15m ago•1 comments

ReviewBench: An open benchmark for AI code review

https://github.blog/ai-and-ml/github-copilot/reviewbench-an-open-benchmark-for-ai-code-review/
1•azhenley•15m ago•0 comments

War on Peace: The Push Notification Strikes Back

https://godobject.dev/blog/war-on-peace-the-push-notification-strikes-back/
2•BurnerBurner•15m ago•0 comments

Buying an Antminer Z15 Pro miner – 860K vs. 840K

https://github.com/equihash-lab/antminer-z15-pro-860k-notes
1•RyanZPRO•16m ago•0 comments

Horror Technologies

1•imheretolearn•16m ago•0 comments

Schneider Electric to buy US software firm PTC in $22.6B deal

https://www.reuters.com/business/frances-schneider-electric-nears-20-billion-deal-buy-us-software...
3•HappyRobot•17m ago•0 comments

Show HN: Invofox – Turn any document into structured, validated JSON

https://www.invofox.com/en/
5•albertogimeno•17m ago•0 comments

AI biohazard hype must not divert attention from the real risks we face now

https://www.nature.com/articles/d41586-026-03135-7
3•sbulaev•20m ago•0 comments

Why Schools Need a Phonics-Style Reckoning for Math

https://www.the74million.org/article/why-schools-need-a-phonics-style-reckoning-for-math/
1•theanonymousone•20m ago•0 comments