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

How Oncolytic Virus Therapy Is Changing Cancer Treatment

https://www.cancerresearch.org/immunotherapy-by-treatment-types/oncolytic-virus-therapy
1•gradus_ad•41s ago•0 comments

Let's Make Video Games Like It's 1994

https://www.ciroduran.com/2026/10/game-maker-1994-i/
1•speckx•1m ago•0 comments

AI Safety Is Not a Corporate Plot

https://www.astralcodexten.com/p/ai-safety-is-not-a-corporate-plot
2•Analemma_•1m ago•0 comments

Fluxcut shows your product in professional demo video format

1•loveTech•4m ago•0 comments

Show HN: Shazbot – A sandboxed SSH tunnel manager for the Mac menu bar

https://zardecki.dev/blog/why-i-built-shazbot.html
1•AngryDad67•7m ago•1 comments

Build Classic Mac Apps with MacMAKE

https://macmake.dev/
1•mplsllc•10m ago•0 comments

Expedia Rigs Travel Markets and Raises Your Hotel Price

https://www.thebignewsletter.com/p/how-expedia-rigs-travel-markets-and
2•pseudolus•12m ago•0 comments

Ricursive Intelligence bets on AI-designed chips to solve the compute crisis

https://techcrunch.com/2026/10/14/ricursive-intelligence-is-betting-on-ai-designed-chips-to-help-...
2•mikelgan•15m ago•1 comments

Overdose Offsets: Why Every Bag of Fentanyl I Sell Is Net Life-Positive

https://morewrong.lol/?post=overdose-offsets-why-every-bag-of-fentanyl-i-sell-is-net-life-positive
2•bookofjoe•16m ago•1 comments

Why not we build one tap payment system

1•ghostidea•19m ago•0 comments

Why are chip companies allergic to open source?

https://www.zeroasic.com/blog/hardware-github-stars
1•adapteva•20m ago•0 comments

The Engineering That Allows Articulated Buses to Bend

https://www.theautopian.com/you-wont-believe-the-incredible-engineering-that-allows-articulated-b...
1•CharlesW•21m ago•0 comments

No, We Need a Neural Network

https://thedailywtf.com/articles/No,_We_Need_a_Neural_Network
1•goriv•22m ago•0 comments

Oregon Trail II Decomp

https://github.com/ot-ii/OregonTrailII/
1•DaSkippy•22m ago•0 comments

Capsem – a Rust hypervisor sandboxing AI agents in air-gapped Linux VMs

https://capsem.org/
2•madars•25m ago•0 comments

The reverts will continue until morale improves

http://peter.eisentraut.org/blog/2026/10/09/the-reverts-will-continue-until-morale-improves
1•birdculture•27m ago•0 comments

Making all divisions slower to fix a bug in 0.000000000000000000542% of cases

https://futhark-lang.org/blog/2026-10-14-defining-division.html
1•marvinborner•27m ago•0 comments

OpenAI Sued over Children's Data Used to Train ChatGPT

https://www.cnet.com/tech/services-and-software/chatgpt-accused-using-childrens-data/
3•pier25•28m ago•0 comments

The first new sunscreen type in 25 years has arrived on US store shelves

https://apnews.com/article/bemotrizinol-bemt-new-sunscreen-ingredient-fda-7892cc598c0b553b8c9c671...
3•harporoeder•29m ago•0 comments

AIVAcare

https://www.aivacare.ai
2•billbecorest•41m ago•1 comments

Maxxing treats life as a problem when it's a mystery

https://psyche.co/ideas/maxxing-treats-life-as-a-problem-when-its-a-mystery
4•momentmaker•42m ago•1 comments

What have you been wondering about the economy?

https://ask.kylascanlon.com/
1•measurablefunc•42m ago•0 comments

The Human Capacity for Wonder

https://drfrahim.substack.com/p/the-human-capacity-for-wonder
1•momentmaker•42m ago•0 comments

The Book of Debugging

https://nostarch.com/book-of-debugging
1•0x54MUR41•46m ago•0 comments

Open-source LLM trading bots vs. the government bond, on paper money

https://blueprintau.com/knives/
1•aldoh•50m ago•0 comments

Show HN: GitVolt, open source fast Git GUI (Tauri/CEF)

https://gitvolt.com/
1•francislavoie•58m ago•0 comments

Git-Like MS Word Version Control System

https://github.com/SCCS-HQ/legal-contract-version-control
1•slveer•58m ago•1 comments

The AI boom is threatened by an epidemic of unreliable numbers

https://www.economist.com/business/2026/10/14/the-ai-boom-is-threatened-by-an-epidemic-of-unrelia...
1•andsoitis•1h ago•0 comments

Tech overload – Reject modernity, return to monke (2023)

https://www.dedoimedo.com/life/modern-monke.html
1•dxs•1h ago•0 comments

GPT-4-0613 returns zero bytes to "Be the null." GPT-3.5-turbo-1106 returns text

https://getswiftapi.com/gpt35-gpt4
1•rayanpal_•1h ago•0 comments