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

Who needs sex? Kelp reproduce asexually when no mate is nearby

https://www.nature.com/articles/d41586-026-03665-0
1•titusblair•2m ago•0 comments

FaceStealer Cryptocurrency Theft Scheme

https://www.fbi.gov/investigate/cyber/facestealer-cryptocurrency-theft-scheme
1•nomilk•4m ago•0 comments

Terminal borders that don't cost a cell

https://www.joshka.net/cell-borders/
4•vinhnx•7m ago•0 comments

The anti-marketing aspect of the Gemini network

https://ploum.net/2026-11-12-anti-marketing-gemini.html
1•birdculture•8m ago•0 comments

How Not to Build a Music Player

https://alichraghi.github.io/blog/how-not-to-build-a-music-player/
2•vinhnx•9m ago•0 comments

Complex Systems Won't Survive the Competence Crisis

https://twitter.com/palladiummag/status/2015572679064170828
2•barry-cotter•9m ago•0 comments

FAA tees up $875M AI tool to help manage air traffic congestion

https://arstechnica.com/ai/2026/09/faa-tees-up-875m-ai-tool-to-help-manage-air-traffic-congestion/
3•brandonb•11m ago•2 comments

Meta Testing New Prediction-Market App with Employees

https://www.wsj.com/tech/meta-testing-new-prediction-market-app-with-employees-bf7bacb2
1•JumpCrisscross•13m ago•0 comments

Using Claude Opus 5.5 as your daily driver for knowledge work

https://claude.com/resources/articles/using-claude-opus-5-5-as-your-daily-driver-for-knowledge-work
1•geoffbp•15m ago•0 comments

Drones over UK skies: US Air Force launches urgent response

https://www.express.co.uk/news/uk/2266117/drones-uk-skies-us
2•irthomasthomas•15m ago•0 comments

Mountain growth spurts may have sparked complex life on Earth

https://science.ubc.ca/news/2026-11/mountain-growth-spurts-may-have-sparked-complex-life-earth
1•geox•17m ago•0 comments

Opus 5.5 is probably still nerfed

https://micjm.com/blog/opus-5.5-after-fable/
1•seizethecheese•19m ago•0 comments

Lying to Zed to get its remote server running on FreeBSD

https://hayzam.com/blog/03-lying-to-zeds-remote-editor/
1•arch1e•19m ago•0 comments

Tell HN: Cloudflare's abuse report form is a blank page

1•basilikum•20m ago•5 comments

QuAIA: An open-source team of AI agents that handles the whole test process

https://quaia.dev/
1•partarstu•21m ago•0 comments

Ground stop ordered for all airports nationwide for 'reasons of safety'

https://www.nbcnews.com/news/us-news/faa-orders-nationwide-ground-stop-departing-flights-reasons-...
4•goryramsy•25m ago•1 comments

US National Weather Service reports nationwide internet, communications issues

https://www.reuters.com/technology/us-national-weather-service-reports-nationwide-internet-commun...
3•ck2•27m ago•1 comments

Nvidia's Huang turns to Paul Weiss, law firm that inked deal with Trump

https://www.reuters.com/legal/transactional/nvidias-huang-turns-paul-weiss-law-firm-that-inked-de...
2•tartoran•27m ago•0 comments

Claude Meetings

https://claude.com/resources/articles/claude-meetings
32•hmokiguess•35m ago•16 comments

Which Targets Are Overheated?

https://insights.convoke.bio/articles/target-heat-index
3•ray__•35m ago•0 comments

Adapting to AI penetration testing orchestrators: The Modern Security Model

https://blog.cloudflare.com/adapting-to-ai-penetration-testing-orchestrators/
1•waximabbax•36m ago•0 comments

FAA expands AI advice to manage air traffic congestion across US airspace

https://arstechnica.com/features/2026/11/faa-expands-ai-advice-to-manage-air-traffic-congestion-a...
6•samizdis•36m ago•2 comments

Show HN: FrontierBioML – Can coding agents do ML for computational biology?

https://www.frontierbioml.com/
1•dominik-space•38m ago•2 comments

Show HN: NETWAR – hacker MMO with 15-second card duels on a shared hex map

https://play-netwar.com/?from=hn
1•Fivekoto•40m ago•0 comments

Calibre-Zen Now Runs Your Calibre Library Like Plex or Jellyfin

https://calibrezen.com/blog/calibre-web-app/
1•powerpurple•43m ago•0 comments

Home Assistant: the password is not the key – token secrets in cleartext

https://seclists.org/fulldisclosure/2026/Nov/34
6•atriix•44m ago•1 comments

Inside the Hidden World of China's Underground Synth Culture [video]

https://www.youtube.com/watch?v=DS9Zt1nQJpU
2•zeristor•46m ago•0 comments

Top Paying Remote Jobs

https://nokku.payanai.com/jobs/remote-jobs-with-salary
1•payanai•46m ago•1 comments

Ideorama – a reference board for images 3D, video and sound

https://ideorama.xyz
1•kvnlst•49m ago•0 comments

Flights halted at airports across US due to air traffic control comms problems

https://apnews.com/article/flights-halted-airports-faa-f81b0904331dafad6133f291e5f531a8
4•kelnos•51m ago•1 comments