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

Comments

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

Michigan state wants to ban pornography [pdf]

https://www.legislature.mi.gov/documents/2025-2026/billintroduced/House/pdf/2025-HIB-4938.pdf
1•motbus3•1m ago•1 comments

Multifunctional Magnetic Muscles for Soft Robotics

https://www.nature.com/articles/s41467-024-52347-w
1•harperlee•5m ago•0 comments

Show HN: Conversation Rank – Free tool to measure brand mentions on Reddit

https://octolens.com/conversation-rank
1•jonathan_re•7m ago•0 comments

Google patches sixth Chrome zero-day exploited in attacks this year

https://www.bleepingcomputer.com/news/security/google-patches-sixth-chrome-zero-day-exploited-in-...
1•akyuu•8m ago•0 comments

Concept-Based Generic Programming – Bjarne Stroustrup – CppCon 2025 [video]

https://www.youtube.com/watch?v=VMGB75hsDQo
1•pjmlp•8m ago•0 comments

Why do some gamers invert their controls?

https://www.theguardian.com/games/2025/sep/18/why-do-some-gamers-invert-their-controls-scientists...
1•n1b0m•9m ago•0 comments

Show HN: Labli.st Where you find medical labs, tests, prices and deals

https://labli.st/ua/
1•sharas-•9m ago•0 comments

Go channels to solve interface impedance mismatch

https://www.dolthub.com/blog/2025-09-12-go-channels-for-period-mismatch/
2•Bogdanp•12m ago•0 comments

Reactive Haptics

https://jenson.org/haptics/
1•SoKamil•15m ago•0 comments

How to Raise a Reader in an Age of Digital Distraction

https://lithub.com/how-to-raise-a-reader-in-an-age-of-digital-distraction/
2•f_allwein•15m ago•0 comments

AI Is Just Digital Plastic

https://hassanshaikley.com/digital-plastic/index.html
1•hmmokidk•21m ago•0 comments

Developer

https://www.temerarii.com/
1•domdavis•23m ago•0 comments

John Grisham Still Wonders: Will Texas Kill Robert Roberson?

https://www.dmagazine.com/frontburner/2025/09/author-john-grisham-still-wonders-will-texas-kill-r...
2•rossant•25m ago•0 comments

Jimmy Kimmel Live suspended indefinitely

https://www.theguardian.com/tv-and-radio/2025/sep/18/jimmy-kimmel-live-suspended-indefinitely-aft...
3•ctack•25m ago•1 comments

AI Propaganda factories with language models

https://arxiv.org/abs/2508.20186
2•lknik•29m ago•0 comments

Myrtle Corbin

https://en.wikipedia.org/wiki/Myrtle_Corbin
1•thunderbong•31m ago•0 comments

Steering Committee Retrospective

https://www.haskellforall.com/2025/09/steering-committee-retrospective.html
1•Athas•37m ago•0 comments

What you should do if you suddenly can't pee

https://www.cnn.com/2025/09/15/health/cant-pee-what-it-means-wellness
2•wjb3•38m ago•0 comments

Ask HN: macOS+AWS Workspace+Bluetooth sucks: dongle headphone recommendations?

1•nico_h•40m ago•0 comments

SlamDunk for 3D Visualizations in Python

https://github.com/Robertleoj/slam_dunk
1•robertleoj•41m ago•1 comments

Council to introduce facial recognition CCTV

https://www.bbc.co.uk/news/articles/crl5030lwkwo
2•jonatron•41m ago•0 comments

Music training can help the brain focus

https://news.ki.se/music-training-can-help-the-brain-focus
1•XzetaU8•44m ago•0 comments

Supporting our AI overlords: Redesigning data systems to be Agent-first

http://muratbuffalo.blogspot.com/2025/09/supporting-our-ai-overlords-redesigning.html
1•furkansahin•46m ago•0 comments

Scandal rocks international stone skipping contest

https://www.popsci.com/science/stone-skipping-scandal/
1•domofutu•46m ago•0 comments

Repatriation games: the mid-market reevaluates its public cloud consumption

https://www.techradar.com/pro/repatriation-games-the-mid-market-reevaluates-its-public-cloud-cons...
1•PaulKeeble•47m ago•0 comments

Works in Progress is now in print

https://worksinprogress.co/print/
2•bensouthwood•50m ago•0 comments

The Art of Japanese Stationery: Why It's More Than Just Office Supplies

https://shibuya-stationery.com/blogs/news/the-art-of-japanese-stationery-why-it-s-more-than-just-...
3•causalitycone•50m ago•0 comments

Slack Client for Your Terminal

https://github.com/jpbruinsslot/slack-term
1•gz09•51m ago•0 comments

Digging deeper into YouTube's view count discrepancy

https://www.jeffgeerling.com/blog/2025/digging-deeper-youtubes-view-count-discrepancy
2•Bogdanp•1h ago•0 comments

Kim Dotcom Extradition Decision Was Lawful, Judicial Review Denied

https://torrentfreak.com/kim-dotcom-extradition-decision-lawful-judicial-review-denied-250916/
4•gslin•1h ago•0 comments