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

Comments

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

Software Bear Market

https://www.bespokepremium.com/interactive/posts/think-big-blog/software-bear-market
1•RickJWagner•35s ago•0 comments

Best of Moltbook

https://www.astralcodexten.com/p/best-of-moltbook
1•czue•2m ago•0 comments

Bazzite Post-Mortem

https://ba.antheas.dev/bazzite-postmortem.html
1•rdmuser•2m ago•0 comments

RTE – Return to Emacs

https://michal.sapka.pl/weblog/2026/rte-return-to-emacs/
1•trelane•2m ago•0 comments

25 Years of Wikipedia

https://wikipedia25.org/en/the-first-day
1•cyberlurker•4m ago•0 comments

AI is the New Compiler

https://abolinsky.io/blog/ai-compiler/
1•fercircularbuf•5m ago•0 comments

Apple container 0.8.0

https://github.com/apple/container/releases/tag/0.8.0
1•tosh•5m ago•0 comments

Show HN: I Built a Tool That Creates Printable City Map Posters

https://map.1k.network
1•lifeencoder•5m ago•0 comments

The Hidden Costs of Additions to a System

https://leomax.fyi/blog/the-hidden-costs-of-additions-to-a-system/
1•MaxMussio•7m ago•0 comments

FOSDEM 2026

https://fosdem.org/2026/schedule/
1•torvald•8m ago•0 comments

PicoDAV – Single-file WebDAV server with file manager/text editor

https://github.com/kd2org/picodav
2•indigodaddy•12m ago•0 comments

China's Q-Ship Containerized Weapon System

https://www.hisutton.com/Chinese-Q-Ship.html
1•u1hcw9nx•13m ago•0 comments

Board Games in Ancient Fiction: Egypt, Iran, Greece

https://reference-global.com/article/10.2478/bgs-2022-0016
2•bryanrasmussen•13m ago•0 comments

The Charge of the Rohirrim Is the Most Epic Scene Ever Filmed

https://www.extended-cut.com/p/the-charge-of-the-rohirrim-is-the
1•ewpierce•14m ago•0 comments

The Advantage2 is approaching end-of-life

https://t.e2ma.net/webview/dv1nen/5d9af704c152d22050f438e1a95703e2
1•ndrake•15m ago•0 comments

Pussh: A simple parallel SSH tool for batch command execution by Bearstech

https://github.com/bearstech/pussh
1•kadrek•16m ago•0 comments

How "95%" escaped into the world – and why so many believed it

https://www.exponentialview.co/p/how-95-escaped-into-the-world
1•Jimmc414•18m ago•0 comments

Wisconsin communities signed secrecy deals for billion-dollar data centers

https://www.wpr.org/news/4-wisconsin-communities-signed-secrecy-deals-billion-dollar-data-centers
14•sseagull•19m ago•3 comments

Daily-Driving an IBM Mainframe () [video]

https://www.youtube.com/watch?v=Dn1E2On_sok
1•rbanffy•22m ago•0 comments

Adversarial Wordle

https://www.savageevan.com/adversarial-wordle/
1•candu•23m ago•1 comments

Trump Nominates Kevin Warsh for Federal Reserve Chair to Succeed Jerome Powell

https://www.cnbc.com/2026/01/30/trump-nominates-kevin-warsh-for-federal-reserve-chair-to-succeed-...
1•throw0101c•23m ago•2 comments

Show HN: A tiny React lib for avatar fallbacks

https://www.facehash.dev/
2•frenchriera•23m ago•0 comments

Zo-Topia: My Computer in the Cloud

https://www.jplhomer.org/posts/zo-topia-my-zo-computer-experience/
1•erhuve•28m ago•1 comments

Norway EV Push Nears 100 Percent: What's Next?

https://spectrum.ieee.org/norway-ev-policy-electric-vehicles
9•rbanffy•29m ago•1 comments

How to avoid common AI pitfalls in the workplace

https://www.economist.com/briefing/2026/01/29/how-to-avoid-common-ai-pitfalls-in-the-workplace
1•Anon84•30m ago•0 comments

Apple-1 Computer Prototype Board #0 Sells for $2.7M

https://www.rrauction.com/auctions/lot-detail/350902407346003-apple-1-computer-prototype-board-0-...
2•oldnetguy•30m ago•0 comments

Nvidia's 10-year effort to make the Shield TV the most updated Android

https://arstechnica.com/gadgets/2026/01/inside-nvidias-10-year-effort-to-make-the-shield-tv-the-m...
2•vanburen•32m ago•0 comments

From bad omen to national treasure:rare bone-swallower stork saved byfemale army

https://www.bbc.com/future/article/20260128-the-protectors-of-indias-greater-adjutant-storks
1•koolhead17•32m ago•0 comments

I've been compiling my Sass wrong, for years

https://www.alwaystwisted.com/articles/ive-been-compiling-my-sass-wrong-for-years
1•speckx•33m ago•0 comments

Nailz: Input device using touch-enabled nails (2021)

https://www.youtube.com/watch?v=O_uiL49IA2I
1•downboots•34m ago•0 comments