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

Quantum Computers Are Poised to Crack Encryption. AI Could Beat Them to It

https://www.wsj.com/tech/ai/ai-math-online-encryption-quantum-computers-57926bb2
1•fortran77•10m ago•0 comments

Exploring Janet and the HTTPF web framework

https://nick.gs/blog/2026-11/exploring-janet-and-the-httpf-web-framework/
1•veqq•11m ago•0 comments

F2FS: A New File System for Flash Storage (2015) [pdf]

https://www.usenix.org/system/files/conference/fast15/fast15-paper-lee.pdf
1•vismit2000•14m ago•0 comments

Show HN: We tested our prompt injection filter in public

https://hodor.gatebolt.com/blog/secret-leak-test
1•junayedmizan5•17m ago•0 comments

MCP-server-AutoCAD-Lisp-helper

https://github.com/radwanalmsora/mcp-server-autocad-lisp-helper
1•radwanAlmsora•18m ago•0 comments

The AI Business Model Just Collapsed

https://www.honest-broker.com/p/the-ai-business-model-just-collapsed
3•paulpauper•19m ago•1 comments

Why do people see colours differently? Sometimes, it's the display's fault

https://physicsworld.com/a/why-do-people-see-colours-differently-sometimes-its-the-displays-fault/
1•EA-3167•20m ago•1 comments

GLP-1 Prescriptions for People with No Medical Need Are Climbing

https://www.nytimes.com/2026/09/22/well/ozempic-glp1-medical-reason.html
2•paulpauper•23m ago•1 comments

The Pangram Backlash Unfolding on College Campuses

https://www.theatlantic.com/technology/2026/09/college-professors-ai-detectors-pangram/688727/
1•paulpauper•25m ago•0 comments

US believes Nvidia's Huang had romantic relationship with alleged Chinese spy

https://www.ft.com/content/a55a2a22-4479-4f93-a445-6147a5c6d790
4•robbiet480•26m ago•0 comments

Adding proper security to your vibecoded Linux GUI apps

https://akitaonrails.com/en/2026/11/06/adding-proper-security-to-your-vibecoded-linux-gui-apps/
1•ayanb9440•27m ago•0 comments

HomeMinerProxy: home dashboard and Stratum proxy for Bitcoin lottery mining

https://github.com/Modanez/HomeMinerProxy
1•modanez•35m ago•0 comments

What do workers want in a leader? New study challenges stereotypes

https://newsroom.haas.berkeley.edu/research/what-do-workers-really-want-in-a-leader-new-study-cha...
3•rohanm93•35m ago•0 comments

SpaceX's $2T Bet Has a Physics Problem [video]

https://www.youtube.com/watch?v=S1umCJfbJ0w
1•mkesper•36m ago•0 comments

Show HN: S3mail – Serverless personal email on AWS with JMAP

https://github.com/zero11-0203/s3mail
1•zero11-0203•38m ago•0 comments

Killer App, the thrilling story about the rise of Telegram

https://www.faber.co.uk/journal/faber-set-to-publish-killer-app-the-thrilling-story-about-the-ris...
1•elies•38m ago•0 comments

Geometry, Kinematics, Statics, and DYNAMICS(2018) [pdf]

http://ruina.tam.cornell.edu/Courses/ME4730%20Fall%202018/books/Dynamics_Book_Bernstein__Goel__An...
1•pillars•39m ago•0 comments

Show HN: Promptcheckup – pass/fail check for prompt changes, with 95% intervals

https://github.com/gael55x/promptcheckup
1•gael55x•57m ago•0 comments

Show HN: Did prediction markets do any predicting this midterms?

https://app.artifactbin.dev/@vivek/AQTt2H-did-prediction-markets-predict-the-midterms
2•nuwandavek•59m ago•0 comments

Vapes, pouches and now tablets: The tobacco industry's newest nicotine product

https://www.theexamination.org/articles/zyn-melts-nicotine-tablets-kids
1•paimapi•1h ago•0 comments

Lighting the Skies

https://computer.rip/2026-10-25-searchlights.html
8•dverlaeckt80•1h ago•1 comments

Show HN: Backwords – Let AI teach you how to speak in reverse

https://backwords.greg.technology/
9•gregsadetsky•1h ago•2 comments

YC Backed Bron AI Accused of Using LeBron's Name and Likeness

https://frontofficesports.com/article/lebron-james-demands-ai-betting-app-stop-using-his-likeness/
5•sicgods•1h ago•1 comments

Meta introduces Spaces: custom app views built by your Muse agent

https://about.fb.com/news/2026/11/introducing-spaces-customize-muse-app/
1•willmarch•1h ago•1 comments

Show HN: Roomzine – turn a photo of your room into a redesign magazine

https://roomzine.com/
1•ayarmots•1h ago•0 comments

Magnets and Rare Earths

https://robodienst.com/learning-paths/magnets-and-rare-earths
1•Bluestein•1h ago•0 comments

No Big Deal (TV Series)

https://en.wikipedia.org/wiki/No_Big_Deal_(TV_series)
1•kakadu•1h ago•0 comments

Robodienst

https://robodienst.com/supply-chain/unitree-g1
1•Bluestein•1h ago•1 comments

Amagi-clipper, long recordings to captioned 9:16 clips, locally

https://github.com/amagilabs/amagi-clipper
1•amagilabs•1h ago•0 comments

What happens when a fake coding test reaches a security company?

https://www.sophos.com/en-us/blog/fake-coding-test-reaches-security-company
2•ram_rattle•1h ago•0 comments