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

"Dagon" by H. P. Lovecraft

https://www.hplovecraft.com/writings/texts/fiction/d.aspx
1•thunderbong•55s ago•0 comments

Sony brings free TV to the PS5

https://www.theverge.com/games/987000/sony-brings-free-tv-to-the-ps5
1•ramn7•2m ago•0 comments

Hotline Telegram Support and Sales Hub (hotline.tg)

1•hotline•5m ago•0 comments

The RSS Feed Got a Robot Assistant

https://www.pleasehustleresponsibly.com/p/the-rss-feed-got-a-robot-assistant
1•angelahollowell•8m ago•0 comments

Wendell Berry has died, age 92

https://www.nytimes.com/2026/08/31/us/wendell-berry-dead.html
1•Curiositry•9m ago•0 comments

Kale: A Transformation-Safe Spreadsheet System

https://arxiv.org/abs/2608.26345
1•zdw•16m ago•0 comments

Weird Little Guys of FOSS

https://drewdevault.com/weird-guys/
1•airhangerf15•17m ago•0 comments

Dan Driscoll's Parting Shot

https://www.theatlantic.com/national-security/2026/08/driscoll-hegseth-military-resignation/688479/
1•Jtsummers•18m ago•0 comments

Florida revokes permits for license plate readers on state highways

https://www.wusf.org/transportation/2026-08-31/fdot-revokes-permits-for-flock-cameras-installed-o...
3•ilamont•21m ago•0 comments

Backsliding: On the Paradox of Willpower

https://harpers.org/archive/2026/07/backsliding-meghan-ogieblyn-willpower/
1•Anon84•22m ago•0 comments

Miles v0.1: Production-level Post-training

https://www.lmsys.org/blog/2026-08-18-miles-v0-1/
1•gmays•23m ago•0 comments

Claude Red Bar (visual and audible notifier of task completion)

https://github.com/gregsramblings/claude-red-bar
1•gw5815•24m ago•2 comments

DoltLite: A SQLite fork with Git-style version control, built with 2k agent PRs

https://www.dolthub.com/blog/2026-08-31-doltlite-beta/
4•lbw1215•33m ago•0 comments

Icelandic voters reject a resumption of EU membership negotiations

https://www.euronews.com/my-europe/2026/08/31/icelands-no-vote-deals-a-blow-to-brussels-security-...
2•delichon•36m ago•2 comments

Show HN: I rebuilt tank game with new style

https://www.battle-tank.com/
1•dutay05•37m ago•0 comments

Show HN: Chaosword – A Crossword?

https://chaosword.com
1•ghosts_•42m ago•0 comments

Breaking down Amazon's mega dropdown (2013)

https://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown
1•TheAceOfHearts•51m ago•0 comments

Kubernetes v1.37: Pod Certificates and Cluster Trust Bundles

https://kubernetes.io/blog/2026/08/28/kubernetes-v1-37-pod-certificates-and-cluster-trust-bundles/
1•ahmedtd•56m ago•0 comments

Retatrutide – people risk the gray market for the newest weight-loss drug

https://www.theguardian.com/science/2026/aug/31/retatrutide-weight-loss-drug-gray-market
2•andsoitis•58m ago•0 comments

The Big Leak (1987)

https://www.americanheritage.com/big-leak
1•jhide•58m ago•0 comments

2004 RuneScape fit a multiplayer RPG into 56k dial-up

https://jkm.dev/posts/how-2004-runescape-fit-a-multiplayer-rpg-into-56k-dialup/
6•fagnerbrack•58m ago•2 comments

AWS Activate Credits

1•m4sk1994•58m ago•0 comments

Deadpan Photography: Enjoying the Pretence

https://photoni.st/index.php/2026/07/12/deadpan-photography-enjoying-the-pretence/
1•NaOH•59m ago•0 comments

Papercut SMTP – The Simple Desktop Email Server

https://github.com/ChangemakerStudios/Papercut-SMTP
1•l8rlump•59m ago•0 comments

Why 1M context windows won't solve agent memory (and a protocol that does)

https://github.com/zackemannen81/docs-first_continuity-protocol
2•mrwhite81•1h ago•0 comments

Release Release v26.8.1.2041-LTS · ClickHouse/ClickHouse

https://github.com/ClickHouse/ClickHouse/releases/tag/v26.8.1.2041-lts
1•kyisaiah47•1h ago•0 comments

The extraordinary rise of Miami's economy

https://www.economist.com/finance-and-economics/2026/08/31/the-extraordinary-rise-of-miamis-economy
1•andsoitis•1h ago•0 comments

OpenAI to Cut Off AI Models for SpaceX-Owned Cursor

https://www.reuters.com/business/media-telecom/openai-end-partnership-with-spacexs-cursor-2026-08...
4•m463•1h ago•1 comments

Young Builder Society Microgrant

https://www.youngbuildersociety.com
1•audreyfei•1h ago•0 comments

Linus Torvalds' uEmacs – the editor he has used since the 1980s

https://github.com/torvalds/uemacs
24•oumua_don17•1h ago•0 comments