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

Comments

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

The Rise of Computer Games, Part II: Digitizing Nerddom

https://technicshistory.com/2026/01/02/the-rise-of-computer-games-part-ii-digitizing-nerddom/
1•cfmcdonald•11s ago•0 comments

India issues stern notice to X, flags Grok targeting women with obscene content

https://www.indiablooms.com/news/india-issues-stern-notice-to-x-flags-groks-role-in-targeting-wom...
1•binning•4m ago•0 comments

Residues: Time, Change and Uncertainty in Software Architecture [video]

https://www.youtube.com/watch?v=D8qQUHrksrE
1•zdw•5m ago•0 comments

Lenovo ThinkBook Plus Gen 6 Rollable Display Laptop Review [video]

https://www.youtube.com/watch?v=1GsJi1KvHhA
1•xqcgrek2•6m ago•0 comments

Steadfast Self-Hosting, Auf Deutsch

https://selfhostbook.com/news/2026/01/deutsch/
1•meonkeys•9m ago•0 comments

How to open the Maclock retro Macintosh clock without breaking it [video]

https://www.youtube.com/watch?v=WEVMEvV_sOM
2•cleverbit•9m ago•0 comments

Certified Shovelware

https://justin.searls.co/shovelware/
2•8organicbits•20m ago•0 comments

Show HN: Runtm- open-source runtime and control plane for agent-built software

https://github.com/runtm-ai/runtm-coding-agent-runtime-control-plane
2•gustrigos•25m ago•1 comments

Why AI Agents Won't Just "Do Stuff" – Permissions Are the Ultimate Barrier

https://davefriedman.substack.com/p/why-ai-agents-wont-just-do-stuff
2•walterbell•26m ago•0 comments

When AI recreates the female voice, it also rewrites who gets heard

https://theconversation.com/when-ai-recreates-the-female-voice-it-also-rewrites-who-gets-heard-26...
2•binning•27m ago•0 comments

HTML Changes in ePub

https://www.htmhell.dev/adventcalendar/2025/11/
3•raybb•30m ago•0 comments

Non-consensual Grok deepfakes endanger women

https://unherd.com/newsroom/non-consensual-grok-deepfakes-endanger-women/
5•binning•31m ago•2 comments

Show HN: StretchBreak, a simple web app to solve planning time off

https://stretchbreak.netlify.app/
2•tha_infra_guy•36m ago•0 comments

California lawmaker wants to ban AI from children's toys

https://www.fastcompany.com/91468728/california-lawmaker-ban-ai-toys
5•geox•39m ago•0 comments

NY Fed cash transfers to banks increase dramatically in Q4 2025

https://www.dcreport.org/2025/12/29/ny-fed-unlimited-cash-infusions-bank-crisis/
4•scythe•40m ago•0 comments

Brand as Code

https://www.braingrid.ai/blog/brand-as-code
1•acossta•44m ago•2 comments

He Was a Supreme Court Lawyer. Then His Double Life Caught Up with Him

https://www.nytimes.com/2025/12/28/magazine/thomas-goldstein-supreme-court-gambling.html
2•ryan_j_naughton•46m ago•0 comments

LeCun calls Alex Wang inexperienced, predicts more Meta AI employee departure

https://www.businessinsider.com/yann-lecun-alexandr-wang-criticism-inexperienced-meta-ai-future-2...
13•_____k•47m ago•3 comments

The Lottery Ticket Hypothesis: finding sparse trainable NNs with 90% less params

https://arxiv.org/abs/1803.03635
1•felineflock•47m ago•0 comments

Economic inequality does not equate to poor well-being or mental health

https://www.nature.com/articles/d41586-025-03833-8
1•gmays•49m ago•0 comments

Glasses-free 3D display with ultrawide viewing range using deep learning

https://www.nature.com/articles/s41586-025-09752-y
2•PaulHoule•49m ago•0 comments

Show HN: Jot - Offline, source available notetaking/assistant app

https://jot-ai.app/blog/welcome-to-jot
5•robust-cactus•49m ago•1 comments

An unsolved question in sleep science

https://www.autodidacts.io/long-sleep-duration-and-mortality/
1•Curiositry•52m ago•0 comments

Mastodon Server Covenant

https://joinmastodon.org/covenant
3•doener•53m ago•0 comments

Ask HN: Is the window for local-first AI closing?

2•zerocool86•54m ago•1 comments

Capital in the 22nd Century

https://philiptrammell.substack.com/p/capital-in-the-22nd-century
2•thundergolfer•54m ago•0 comments

Foldy Bird

https://lyra.horse/fun/foldy-bird/
2•Groxx•56m ago•1 comments

Displaying Interactive Maps over SSH

https://terminal-maps.henryn.ca
1•ng-henry•57m ago•1 comments

KdK part 2: a medical mystery from postwar Germany

https://nealstephenson.substack.com/p/kdk-part-2-a-medical-mystery-from
3•cl42•58m ago•0 comments

Chaos Chess Online

https://www.chaoschess.online/game?mode=classic
1•indigodaddy•58m ago•0 comments