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•10mo ago

Comments

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

Ask ChatGPT to pick a number from 1-10000, it generally selects from 7200-7500

https://old.reddit.com/r/ChatGPT/comments/1rz2ooh/i_am_betting_my_house_that_if_you_ask_gpt_to_pick/
1•mellosouls•1m ago•1 comments

World Cup Trophy Theft: Gangsters, Spies and the Dog That Found It

https://www.bloomberg.com/news/articles/2026-03-20/the-1966-world-cup-trophy-theft-gangsters-spie...
1•helsinkiandrew•2m ago•0 comments

Google adds 24-hour wait and mandatory reboot to Android sideloading flow

https://android-developers.googleblog.com/2025/08/elevating-android-security.html
2•dfordp11•11m ago•0 comments

BATorrent – Torrent client that streams video while downloading

https://github.com/Mateuscruz19/BAT-Torrent
1•Mateuscruz19•13m ago•0 comments

DIY AI-powered robot arm

https://www.youtube.com/watch?v=59JTCvpG_Ec
1•mafm•13m ago•1 comments

Show HN: Elastik – treating LLM as an HTTP client in less than 200 lines of code

https://github.com/rangersui/Elastik
1•rangersui•13m ago•0 comments

Operation Cast Thy Bread

https://en.wikipedia.org/wiki/Operation_Cast_Thy_Bread
2•throw310822•18m ago•0 comments

Oxford Time

https://en.wikipedia.org/wiki/Oxford_time
1•Tomte•19m ago•0 comments

Cursor's "in-house model" Composer 2 is Kimi K2.5 with RL on top

https://twitter.com/ns123abc/status/2035058399067435474
1•helloplanets•20m ago•0 comments

We Scaled Kimi K2.5 [video]

https://www.youtube.com/watch?v=CwePo4847ho
1•vinhnx•21m ago•0 comments

Physics-based validation for sensor data before ML training

https://github.com/timbo4u1/S2S
1•s2sphysical•22m ago•0 comments

CalMirror – Stop copy-pasting events across Google Calendars

https://apps.apple.com/us/app/calendar-auto-sync-calmirror/id6759219374
1•hmktsu•22m ago•0 comments

Double-O, agent's best friend

https://github.com/randomm/oo
1•jannniii•29m ago•1 comments

We Trust Strangers More Than Brands – What Neuroscience Tells Us

https://www.proofgateway.com
1•elufadeju•30m ago•0 comments

Ask HN: Has anyone here lived in a war zone?

2•michaelteter•34m ago•0 comments

KuraiMusik – A 24/7 AI Radio Orchestrated with AI, Python and Liquidsoap

https://music.kuraitachi.com/
1•daviddevgt•34m ago•0 comments

Why are we eating slop? [video]

https://www.youtube.com/watch?v=Tsp2bC0Db8o
1•decimalenough•38m ago•0 comments

Manifestation Machines

https://thefuturistsage.substack.com/p/manifestation-machines
1•Archit_lal_•39m ago•0 comments

Tangled: Tightly Knit Social Coding

https://tangled.org
2•j3s•40m ago•0 comments

Is AI Making Us Stupid? Cal Newport Is Worried

https://www.chronicle.com/article/is-ai-making-us-stupid-cal-newport-is-worried
1•smugma•41m ago•1 comments

I tested every "lifetime" Mac app posted on R/macapps for 7 weeks

https://old.reddit.com/r/macapps/comments/1ryvdei/i_tested_every_lifetime_mac_app_posted_on/
1•saaspirant•42m ago•0 comments

Cal Newport is Worried (put down the ChatGPT)

https://www.chronicle.com/newsletter/the-review/2026-03-16
2•smugma•43m ago•1 comments

Show HN: I created a free LLMs.txt generator

https://kitful.ai/write-tools/llms-txt-generator
1•eashish93•44m ago•0 comments

Trivy Under Attack Again: Widespread GitHub Actions Tag Compromise Exposes

https://socket.dev/blog/trivy-under-attack-again-github-actions-compromise
2•tamnd•49m ago•0 comments

Declaration of Emil Michael: Anthropic poses security risks

https://www.courtlistener.com/docket/72379655/96/3/anthropic-pbc-v-us-department-of-war/
1•1vuio0pswjnm7•51m ago•0 comments

Show HN: Use AI to find customers who have intent to buy your product

https://www.outhop.ai/
1•edgware674•54m ago•1 comments

What's More to Do?

https://fev.al/posts/whats-more-to-do/
2•charles_f•1h ago•0 comments

Susurrus

https://susurrus.vercel.app/
1•memalign•1h ago•0 comments

Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

https://pbxscience.com/ubuntu-26-04-ends-46-years-of-silent-sudo-passwords/
3•akersten•1h ago•0 comments

Israel and Weapons of Mass Destruction

https://en.wikipedia.org/wiki/Israel_and_weapons_of_mass_destruction
12•handfuloflight•1h ago•2 comments