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

AB 1856: CA Exempts Open Source, Still Expands Age-Gating

https://www.eff.org/deeplinks/2026/05/one-step-forward-two-steps-back-cas-ab-1856-exempts-open-so...
1•mashally•3m ago•0 comments

Read Please

https://github.com/studioetc/read-please-app
1•incogvito•4m ago•0 comments

Show HN: Forge – A JavaScript runtime built on Mozilla SpiderMonkey

https://github.com/varadTheDeveloper/forge-runtime
1•opentestudox•4m ago•0 comments

Show HN: WhosBuilt terminal lookup for who built a website

https://whosbuilt.com/lookup/example.com.markdown
2•hboon•12m ago•1 comments

But Nothing Has Changed on Our Side

https://cacm.acm.org/blogcacm/but-nothing-has-changed-on-our-side/
1•adunk•13m ago•0 comments

Show HN: I built LibreYOLO, an MIT-licensed YOLO library

https://github.com/LibreYOLO/libreyolo
1•Xuban•21m ago•0 comments

Squeezes – A private, local-first bulk image compressor running in-browser

https://squeezes.vercel.app
1•marpe•25m ago•0 comments

Remote work didn't kill collaboration. Invisible teammates did

https://www.indiehackers.com/post/remote-work-didnt-kill-collaboration-invisible-teammates-did-JU...
2•ironsteel•33m ago•0 comments

DeepSeek drops another breakthrough [video]

https://www.youtube.com/watch?v=J0D7qV3nl7w
3•mgh2•42m ago•0 comments

Cvcheck.app scores your CV and tells you what's wrong

https://cvcheck.app
1•stefandulgh•43m ago•0 comments

A Last Gasp of 2D: The Cave CV1000 (2022)

https://nicole.express/2022/games-made-in-a-cave.html
2•tropicalfruit•43m ago•0 comments

Incompetent Content Moderation and Sexy Stuff

https://medium.com/luminasticity/incompetent-content-moderation-and-sexy-stuff-29e7e4d5caf7
1•bryanrasmussen•48m ago•1 comments

Suffix BWT vs. cyclic shift BWT, and fast computation

https://purplesyringa.moe/blog/suffix-bwt-vs-cyclic-shift-bwt-and-fast-computation/
1•g0xA52A2A•48m ago•0 comments

Before YouTube, Teenagers Were Coding Mind-Blowing Digital Art in Assembly

https://comuniq.xyz/post?t=1356
1•01-_-•50m ago•0 comments

Snake Venom Peptide Serum, Benefits, and Real Skin Insights

https://gamma.app/embed/Synevra-UltraLift-Review-2026-Snake-Venom-Peptide-Truth-Inside-jcmns0kstf...
1•prepostseo•52m ago•0 comments

Private space pilots are flying orbital missions for the US Space Force

https://techcrunch.com/2026/07/02/private-space-pilots-are-flying-orbital-missions-for-the-us-spa...
2•01-_-•56m ago•0 comments

LiteOne V3 – A 12KB Zero-Build framework aiming for strict CSP security

https://github.com/reflexmanofficial/LiteOne-v3
1•RelfexMan•58m ago•0 comments

Do teams proactively validate Kubernetes resilience against SLOs?

https://www.resilopshq.com/
1•swaroopbhatk•59m ago•1 comments

Building is free now. Being wanted isn't

https://starts.live
2•sgraphics8•1h ago•0 comments

Egypt Won

https://xcancel.com/waterloo_intern/status/2073171123542573231
3•razodactyl•1h ago•0 comments

Ask HN: Which AI model do you use for what?

1•akashwadhwani35•1h ago•0 comments

Yep, we're using OpenClaw to date now

https://techcrunch.com/2026/07/02/yep-were-using-openclaw-to-date-now/
3•TMWNN•1h ago•0 comments

Unearthing the Reality of "Zombie Energy Systems" in Africa's Energy Transition

https://www.catf.us/resource/unearthing-reality-zombie-energy-systems-africas-energy-transition/
2•bryanrasmussen•1h ago•0 comments

Another day, another illegal billion-dollar bribe to raise your electricity pric

https://electrek.co/2026/06/30/another-day-another-illegal-billion-dollar-bribe-to-raise-your-ele...
3•xbmcuser•1h ago•1 comments

The Factorio Effect

https://dangrafham.com/the-factorio-effect
1•freediver•1h ago•0 comments

Financial Nonsense

https://2ndbreakfast.audreywatters.com/financial-nonsense/
2•dmacedo•1h ago•0 comments

Most House Mice Tested Now Carry Mutations That Beat Common Rodent Poison

https://studyfinds.com/most-house-mice-tested-carry-mutations-that-beat-common-rodent-poison-stud...
2•mdp2021•1h ago•0 comments

Linguistic Relativity: Programming Languages

https://en.wikipedia.org/wiki/Linguistic_relativity
1•tosh•1h ago•1 comments

Show HN: Impasto – baker's percentages, poolish timing, DDT math for pizza nerds

https://impastopizza.app/
1•Floppyrom•1h ago•0 comments

The Screwdriver or the Swiss Army Knife

https://gregraiz.com/blog/screwdriver-or-swiss-army-knife/
1•freediver•1h ago•0 comments