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

Console JavaScript script to show thread level on HN

https://gist.github.com/vishnuharidas/abadbbf1a74c6a32283d7b6dca1f4032
1•vishnuharidas•54s ago•1 comments

I made a cash flow estimator app for small startups

https://moneyroll.net
1•Nikos_•2m ago•0 comments

How Did This Family End Up Back in a Toxic House After the LA Fires?

https://www.nytimes.com/interactive/2025/12/29/us/insurers-smoke-damaged-homes-toxins.html
1•ryan_j_naughton•4m ago•0 comments

How to Vulkan in 2026

https://www.howtovulkan.com/
1•davikr•5m ago•0 comments

You have everything you need

https://sert121.bearblog.dev/you-have-everything-you-need/
1•sert_121•5m ago•0 comments

Show HN: I computed a 109M-digit prime candidate for the EFF prize using Python

https://github.com/Ruqing1963/q59-prime-candidate
1•PrimeHunter_R•8m ago•1 comments

How Will Mamdani Handle His Tough New Job?

https://slate.com/news-and-politics/2026/01/zohran-mamdani-new-york-mayor-first-big-speech.html
2•rdudekul•10m ago•0 comments

Show HN: CoinFountains – Validate demand before you build

https://coinfountains.com/
1•julienreszka•12m ago•0 comments

The Fence About a Spending Decision? Try the 0.01% Rule

https://www.wsj.com/personal-finance/small-spending-money-rule-wealth-ladder-c41a96f2
2•doctaj•12m ago•1 comments

The Android date picker doesn't let you pick dates

https://www.mildlyangry.com/2026/the-android-date-picker-doesnt-let-you-pick-dates/
1•reddalo•16m ago•1 comments

I was scammed but found hope

2•Gerald_Malloy•16m ago•0 comments

Busy Is the New Stupid

https://www.cisotradecraft.com/bitns
2•escargot•17m ago•0 comments

Artists – Send Us Your Sound

https://billboard-bangladesh.odoo.com/blog/edm-news-4/artists-send-us-your-sound-2
1•billboardbd•19m ago•0 comments

TreeTracker Join: Simple, Optimal, Fast

https://dl.acm.org/doi/10.1145/3774325
1•remywang•20m ago•0 comments

Eraser: A Dynamic Data Race Detector for Multithreaded Programs (1997) [pdf]

https://web.stanford.edu/class/archive/cs/cs240/cs240.1054/readings/Tocs97.pdf
2•PaulHoule•20m ago•0 comments

Exploring the French January tradition of 'galette des rois' [video]

https://www.youtube.com/watch?v=-Az-iellcVw
2•bill38•20m ago•0 comments

Show HN: Vibe Coding a static site on a $25 Walmart Phone

https://stetsonblake.com/%2425+Walmart+Phone+for+Hackers
2•stets•20m ago•0 comments

2025 took AI from party tricks to production tools

https://quesma.com/blog/year-of-ai-2025/
1•stared•21m ago•0 comments

Anti-cheat evolution in Windows 11

https://www.andrea-allievi.com/blog/new-year-post-anti-cheat-evolution-in-windows-11/
1•davikr•21m ago•0 comments

Coding agent is a slot machine

https://blog.kvit.app/posts/variance-claude-vibe/
1•skolos•21m ago•0 comments

Tutorial on multiple currency accounting (2021)

https://www.mathstat.dal.ca/~selinger/accounting/tutorial.html
2•tosh•21m ago•0 comments

Groq and Nvidia Enter Non-Exclusive Inference Technology Licensing Agreement

https://groq.com/newsroom/groq-and-nvidia-enter-non-exclusive-inference-technology-licensing-agre...
1•jaynate•23m ago•0 comments

Gemini 3.0 Pro helps solve longstanding mystery in the Nuremberg Chronicle

https://siliconangle.com/2026/01/01/googles-gemini-3-0-pro-helps-solve-long-standing-mystery-nure...
1•jhalstead•23m ago•0 comments

Maybe Russia and China Should Sit This One Out

https://www.theatlantic.com/international/2026/01/maybe-russia-and-china-should-sit-one-out/685490/
2•JumpCrisscross•24m ago•1 comments

Xsight Labs E1 DPU a 64-Core Arm Neoverse N2 800G DPU

https://www.servethehome.com/this-is-the-xsight-labs-e1-dpu-a-64-core-arm-neoverse-n2-800g-dpu/
1•ksec•25m ago•1 comments

Show HN: A calm baby-name decision tool (not a generator)

https://loveatfirstname.com
2•arunprasath_s•27m ago•1 comments

Show HN: ZELF – A modular ELF64 packer with 22 vintage and modern codecs

https://github.com/seb3773/zelf
1•seb3773•30m ago•0 comments

Toward a Theory of Control Architecture [video]

https://www.youtube.com/watch?v=Equ3sChCuqI
2•surprisetalk•34m ago•0 comments

The Unreasonable Effectiveness of the Behavioral Sciences [video]

https://www.youtube.com/watch?v=fQEBYQB8_og
2•surprisetalk•34m ago•0 comments

What to Do If There's a Rat in Your Toilet

https://secretseattle.co/rat-toilet-western-washington-flooding/
1•surprisetalk•34m ago•0 comments