frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: routr - a fast local replacement for DuckDuckGo bangs

https://t128n.github.io/routr/
2•trbndev•11mo ago

Comments

trbndev•11mo 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•11mo ago
That link is broken. Correct link: https://t128n.github.io/writings/2025-05-02_optimizing_searc...
trbndev•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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

Mark Carney secures majority government in Canada after special election win

https://www.theguardian.com/world/2026/apr/14/canada-special-election-results-pm-mark-carney-majo...
2•petermcneeley•7m ago•0 comments

Best 2000W Electric Bikes for Adults (2026): 40MPH+ Picks

https://www.dttzh.com/post/2000w-electric-bikes
1•dttzhebike•11m ago•0 comments

Mac Neo should be the follow up to the success of the MacBook Neo

https://appleinsider.com/articles/26/04/13/mac-neo-should-be-the-follow-up-to-the-huge-success-of...
1•Lwrless•11m ago•0 comments

Comprehension Debt: The Hidden Cost of AI-Generated Code

https://www.oreilly.com/radar/comprehension-debt-the-hidden-cost-of-ai-generated-code/
2•gpi•12m ago•0 comments

Dumbsmarten

https://kevinkelly.substack.com/p/dumbsmarten
1•swolpers•20m ago•0 comments

I created a YAML-based API Testing framework in Rust

https://github.com/cd-4/yapitest
1•cd-4•22m ago•1 comments

Alibaba's Qwen family captures over 50% of global open-source model downloads

https://www.scmp.com/tech/big-tech/article/3349552/alibabas-qwen-family-captures-over-50-global-o...
2•angst•22m ago•2 comments

Canary – tiny filesystem honeypot for macOS

https://github.com/dweinstein/canary
1•TheTaytay•24m ago•0 comments

Ask HN: Are most agent skills just fancy system prompts with a name?

2•skillcompass•25m ago•0 comments

Hacker compromises A16Z-backed phone farm, calling them the 'antichrist'

https://www.404media.co/hacker-compromises-a16z-backed-phone-farm-tries-to-post-memes-calling-a16...
3•wibbily•25m ago•1 comments

Rep. Tony Gonzales quits Congress after affair, lewd texting scandal with

https://nypost.com/2026/04/13/us-news/rep-tony-gonzales-announcing-retirement-from-congress-after...
1•mananbasim•26m ago•1 comments

Google Faces Billions in Mass Arbitration over Illegal Monopoly Rulings

https://www.bloomberg.com/news/articles/2026-04-13/google-faces-mass-arbitration-by-advertisers-s...
3•1vuio0pswjnm7•31m ago•1 comments

All in One for AI Chatbot

https://nottoai.com/
2•jeyzolo•33m ago•1 comments

Opus 4.6 is getting BAD [video]

https://www.youtube.com/watch?v=j7oHwvEcrC8
1•zadkey•34m ago•1 comments

Free Blur Image Online – Easily Blur Your Photos

https://www.youtube.com/redirect?q=https://www.blurimageonline.com
2•teroquyiqwu•37m ago•0 comments

Save tokens and save money with this self-evolving beast

https://github.com/juyterman1000/entroly
1•ashuabhi•41m ago•0 comments

A watch made for space

https://www.cnn.com/2026/04/13/style/iwc-schaffhausen-space-watch
2•1659447091•43m ago•0 comments

DECT (Digital Enhanced Cordless Telecommunications)

https://en.wikipedia.org/wiki/DECT
3•gregsadetsky•44m ago•1 comments

MCP server for personal finance so AI assistants can manage money

https://era.app/articles/how-to-connect-claude-to-your-bank-account/
1•era_context•45m ago•1 comments

Municipal water fluoridation, adolescent IQ and cognition across the life course

https://www.pnas.org/doi/full/10.1073/pnas.2536005123
3•cpncrunch•48m ago•0 comments

A portable social graph on Base – own your friends and currency on-chain

https://moondala.one
1•HamoodBahzar•49m ago•0 comments

A new spam policy for "back button hijacking"

https://developers.google.com/search/blog/2026/04/back-button-hijacking
17•zdw•51m ago•3 comments

Open Agents. Spawn coding agents that run infinitely in the cloud

https://open-agents.dev/
1•iBelieve•51m ago•0 comments

Sometimes powerful people just do dumb shit

https://www.joanwestenberg.com/sometimes-powerful-people-just-do-dumb-shit/
3•zdw•53m ago•0 comments

Social media platforms need to stop never-ending scrolling, UK's Starmer says

https://www.reuters.com/business/media-telecom/social-media-platforms-need-stop-never-ending-scro...
1•1vuio0pswjnm7•58m ago•2 comments

Attorneys Face Disciplinary Charges, License Suspension for AI Misuse

https://www.law.com/therecorder/2026/04/13/two-attorneys-face-disciplinary-charges-third-agrees-t...
1•1vuio0pswjnm7•1h ago•1 comments

Hybrid Constructions: The Post-Quantum Safety Blanket

https://soatok.blog/2026/04/13/hybrid-constructions-the-post-quantum-safety-blanket/
1•zdw•1h ago•0 comments

Show HN: Prmana – OIDC SSH Login for Linux with DPoP (Rust, Apache 2.0)

https://github.com/prodnull/prmana
2•cbchhaya•1h ago•0 comments

HR 8197 – A Bill to Terminate the All-Domain Anomaly Resolution Office

https://www.congress.gov/bill/119th-congress/house-bill/8197/text?s=1&r=1
3•OhMeadhbh•1h ago•1 comments

Reddit content moderation is broken

https://old.reddit.com/
1•pavas•1h ago•1 comments