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

Show HN: AI-factory – a spec-driven pipeline that stops AI agents rotting code

https://github.com/highflame-ai/ai-factory
1•sharathr•3m ago•0 comments

Deleting Systems You Don't Understand

https://idiallo.com/blog/deleting-systems-you-dont-understand
1•firefoxd•4m ago•0 comments

AMD EPYC 9006 Venice Announced and Looks Poised to Be a Grand Slam

https://www.phoronix.com/review/amd-epyc-9006-venice
2•rbanffy•6m ago•0 comments

Looking for Feedback on Website

https://www.what2do.me/
1•gnrlnoob•7m ago•0 comments

How Tether Benefited as Trump Insiders Shaped First Crypto Law

https://www.bloomberg.com/features/2026-howard-lutnick-bo-hines-trump-tether-crypto-law/
1•petethomas•7m ago•0 comments

The Gospel of Gains: How Fitness Culture Went Mainstream

https://greyenlightenment.com/2026/06/30/the-all-the-gospel-of-gains-how-fitness-culture-went-mai...
1•paulpauper•8m ago•0 comments

Microsoft deleted Nokia's archive of unreleased ringtones in 2016 HMD sale

https://bsky.app/profile/techprodbangers.bsky.social/post/3mr4askb6tk2i
1•scblzn•9m ago•0 comments

Kalytera – tells you why your AI agent failed, not just that it did

https://kalytera.dev/
1•mathurpriya19•11m ago•0 comments

Locked in An Escape Room with Jacob Tsimerman

https://www.begiant.ca/stories/people/jacob-tsimerman-math
1•tibbar•11m ago•0 comments

DOE Fires the $5B Starter Gun for Its AI-Targeted Genesis Mission

https://www.nextplatform.com/hpc/2026/07/23/doe-fires-the-5-billion-starter-gun-for-its-ai-target...
1•rbanffy•12m ago•0 comments

The AI Productivity Paradox

https://www.svpg.com/the-ai-productivity-paradox/
1•andrii•14m ago•0 comments

Show HN: How far do I have to go to run into 100k people?

https://imjasonh.github.io/playground/population-rays/
1•ImJasonH•14m ago•0 comments

Sometimes Being First Means Seeing the End Before Anyone Else

https://www.quantamagazine.org/jacob-tsimerman-wins-2026-fields-medal-for-andre-oort-conjecture-p...
3•energy123•16m ago•0 comments

AI Agents Don't Respect Font Licenses

https://www.mixfont.com/blog/ai-agents-dont-respect-font-licenses
2•jenthoven•18m ago•0 comments

Show HN: Advanced Coffee Search Covering Over 17,000 coffees

https://beangenie.coffee/coffee
2•epicwynn•18m ago•0 comments

Show HN: Connecting my dumb garage and car's homelink buttons to Home Assistant

https://dsauerbrun.com/writing/dumb-garage
1•dsauerbrun•19m ago•0 comments

US announces double-digit tariffs on most of globe to replace expiring duties

https://finance.yahoo.com/economy/policy/article/trump-administration-announces-the-next-phase-of...
4•ck2•19m ago•2 comments

Tesla shares tumble 11% after discounts hit profits

https://www.ft.com/content/dc5e629b-562c-41e3-8b89-350af6960adc
2•doener•21m ago•0 comments

What Happened When Flock Came to My Town

https://www.404media.co/what-happened-when-flock-came-to-my-town/
1•Jimmc414•22m ago•0 comments

Lazarus Group Using Git Hooks to Hide Malware – Open-Source Malware Blog

https://opensourcemalware.com/blog/lazarus-group-uses-git-hooks-to-hide-malware
3•vinnyglennon•22m ago•0 comments

California legislature removes REAL-ID compliance from Governor's budget

https://papersplease.org/wp/2026/06/15/california-legislature-removes-real-id-compliance-from-gov...
2•Jimmc414•22m ago•0 comments

Blacklight, our privacy inspector tool, now tracks X and TikTok pixels

https://themarkup.org/blacklight/2026/02/09/blacklight-update-tiktok-x-twitter
1•Jimmc414•23m ago•0 comments

FDA reports new outbreak of explosive diarrhea with 72 cases identified

https://arstechnica.com/health/2026/07/fda-reports-new-outbreak-of-explosive-diarrhea-with-72-cas...
5•nianderwallace•24m ago•0 comments

Oracle signs 10-year software contract with Pentagon worth up to $7B

https://www.cnbc.com/2026/07/23/oracle-wins-10-year-pentagon-software-contract-worth-up-to-7-bill...
4•srameshc•25m ago•0 comments

Pinjour – An App for the Outdoors

https://jfornear.com/2026/07/24/pinjour-photo-maps/
2•flowmerchant•29m ago•0 comments

Ask HN: What's a great opening line you know?

2•chistev•30m ago•3 comments

Mark Zuckerberg launches AI optimism campaign

https://www.axios.com/2026/07/23/mark-zuckerberg-ai-optimism
6•andsoitis•30m ago•1 comments

Pip install Postgres – no Docker/Brew/apt

https://github.com/leontrolski/postgresql-testing
1•leontrolski•30m ago•1 comments

The first racket sport smart wearable

https://aurevo-rose.vercel.app/
1•elilourens•32m ago•1 comments

Dog Photographer Loses Copyright Case over AI-Generated Version of Her Image

https://petapixel.com/2026/07/22/dog-photographer-loses-copyright-case-over-ai-generated-comic-ve...
3•ColinEberhardt•32m ago•1 comments