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

Can Shawn Levy Resuscitate "Star Wars?"

https://www.nytimes.com/2026/01/08/movies/shawn-levy-star-wars-stranger-things.html
2•bookofjoe•6m ago•1 comments

Silent Rebuilds: Keeping Container CVE Counts Near-Zero

https://www.bretfisher.com/silent-rebuilds/
1•ropable•26m ago•0 comments

Anthropic bans xAI from using Claude in Cursor

https://xcancel.com/kyliebytes/status/2009686466746822731
4•Palmik•28m ago•1 comments

Federal prosecutors open criminal investigation into the Fed and Jerome Powell

https://www.cnn.com/2026/01/11/business/federal-prosecutors-criminal-investigation-federal-reserv...
10•washedup•46m ago•1 comments

Critical Analysis of Air Up's Scientific Marketing Claims

https://zenodo.org/records/18197315
2•OrthoBottle•46m ago•1 comments

Uncrossy

https://uncrossy.com/
6•dgacmu•1h ago•2 comments

Show HN: Constela – Build web pages using JSON instead of JavaScript

https://github.com/yuuichieguchi/constela
1•yuu1ch13•1h ago•0 comments

Which programming languages are most token-efficient?

https://martinalderson.com/posts/which-programming-languages-are-most-token-efficient/
14•tehnub•1h ago•4 comments

Fed Chair Powell says he's under criminal investigation

https://www.cnbc.com/2026/01/12/fed-jerome-powell-criminal-probe-nyt.html
8•victor106•1h ago•1 comments

Men Who Are Super Competitive About Sleep

https://www.wsj.com/style/fashion/competitive-about-sleep-gear-sleepwear-76761041
3•lxm•1h ago•1 comments

Karmic Tail Calculator – a free, explainable Matrix of Destiny tool

https://destiny-matrix.cc/en/tool/karmic-tail-calculator/
1•yxchen1994•1h ago•1 comments

AI models were given four weeks of therapy: the results worried researchers

https://www.nature.com/articles/d41586-025-04112-2
3•andromaton•1h ago•4 comments

I made a simple agent for PR reviews. Don't use it

https://xeiaso.net/blog/2026/reviewbot/
3•xena•1h ago•1 comments

Show HN: Fetch – A minimalistic and super fast macOS app launcher

https://github.com/hackerbirds/fetch
2•hackerbirds•1h ago•0 comments

Show HN: Tmp.tf – Cross-device text transfer with just a channel name, no signup

https://tmp.tf
1•iamlin•1h ago•1 comments

BowMac Sign

https://en.wikipedia.org/wiki/BowMac_sign
1•kerim-ca•1h ago•0 comments

Show HN: Web CLI v0.2.4 – Added YAML/JSON validators with auto-fix

https://github.com/pozgo/web-cli
1•polinux•1h ago•0 comments

Show HN: Neurop Forge – AI executes verified blocks instead of writing code

https://github.com/Louw115/neurop-forge
1•LBWasserman•1h ago•1 comments

Chasing mythical creatures: a critique of entrepreneurship's unicorns obsession

https://www.sciencedirect.com/science/article/pii/S2352673422000634
2•wslh•1h ago•0 comments

Statement by Federal Reserve Chair Jerome F. Powell [video]

https://www.youtube.com/watch?v=KckGHaBLSn4
310•sprawl_•1h ago•181 comments

Maybe the database got it right

https://fhur.me/posts/2026/maybe-the-database-got-it-right
1•fernandohur•1h ago•0 comments

Jerome Powell Responds

https://www.federalreserve.gov/newsevents/speech/powell20260111a.htm
227•0xedb•1h ago•73 comments

The Living Internet

https://www.livinginternet.com
3•hkhn•1h ago•0 comments

Internet History – One Page Summary

https://www.livinginternet.com/i/ii_summary.htm
2•hkhn•1h ago•1 comments

Additively Manufactured Dragonfly-Inspired Wings for Flapping Vehicles

https://www.mdpi.com/2313-7673/10/12/849
1•PaulHoule•1h ago•0 comments

Profession by Isaac Asimov (1957)

https://web.archive.org/web/20201109034130/https://www.abelard.org/asimov.php
2•AndyKelley•1h ago•0 comments

Defense Secretary tours SpaceX missile startup

https://www.latimes.com/business/story/2026-01-10/secretary-of-defense-pete-hegseth-tours-long-be...
1•spacedoors•1h ago•1 comments

Criminal charges against Fed Chairman for defying POTUS wishes

https://www.nytimes.com/2026/01/11/us/politics/jerome-powell-fed-inquiry-trump.html
22•Spooky23•1h ago•2 comments

The U.S. Government Just Followed Through on Its Ban of DJI Drones

https://www.popularmechanics.com/technology/robots/a69937082/us-bans-new-foreign-made-drones/
3•RyanShook•1h ago•1 comments

Tintcd: Directory-aware terminal theming for PowerShell. CD, but colorful

https://github.com/ymyke/tintcd
1•thunderbong•1h ago•2 comments