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•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

Kinetic typography: the what, why, and how

https://www.linearity.io/blog/kinetic-typography/
1•argee•7m ago•0 comments

Symposia AI

https://www.trysymposiaai.com/landing
1•CarlosEdu•8m ago•1 comments

Solving CartPole in 8 Weights

https://cartpole.neocities.org/
1•georgehotz•9m ago•0 comments

Magical Realism: "Northern Exposure" 25 Years Later (2015)

https://www.rogerebert.com/streaming/magical-realism-nothern-exposure-25-years-later
1•walterbell•9m ago•0 comments

Show HN: Wyndup – share a live countdown with your podcast guest

https://wyndup.net
1•ardwino•13m ago•0 comments

Elastic Cloud on Kubernetes, simplified: zone awareness, restarts, and mTLS

https://www.elastic.co/search-labs/blog/elasticsearch-kubernetes-zone-awareness-restarts-mtls
1•eigenBasis•14m ago•0 comments

Jane Street's approach to AI adoption throughout their SDLC [video]

https://www.youtube.com/watch?v=rUYP4C29yCw
2•devdoshi•16m ago•1 comments

Brovan: Binary user-mode emulator for x86_64

https://github.com/AdvDebug/Brovan
1•AdvDebugy•17m ago•0 comments

WikiProject Editor Retention

https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Editor_Retention
1•sshh12•18m ago•1 comments

A Compression Tool for LLM Reads. Est. 60-95% Fewer Tokens

https://github.com/chopratejas/headroom
1•botacode•18m ago•0 comments

North America's largest commuter rail system faces a potential shutdown

https://apnews.com/article/lirr-new-york-commuter-rail-strike-union-eefab0d1f91470934fb89bd1809d0a94
2•petethomas•21m ago•1 comments

Random.website

https://random.website
2•npilk•21m ago•0 comments

Humanoid robots won't surprise us when they arrive

https://philipotoole.com/humanoid-robots-wont-surprise-us-when-they-appear/
2•otoolep•25m ago•0 comments

Thorchain halts trading after $10M cross-chain exploitRUNE token drops 12%

https://www.coindesk.com/tech/2026/05/15/thorchain-halts-trading-after-usd10-million-cross-chain-...
1•LUZUVYY•30m ago•0 comments

Engineer creates starwars inspired air bike

https://volonaut.com
1•nirkalimi•31m ago•0 comments

How to bypass Anti-Bots in 2026

https://roundproxies.com/blog/how-to-bypass-anti-bots/
2•majorchord•32m ago•0 comments

Python by Example Using Cloudflare Dynamic Workers

https://www.pythonbyexample.dev/
2•adewale•32m ago•1 comments

Lost in Translation: Text Message Spoofing via Email [pdf]

https://sumanthvrao.github.io/papers/rao-oakland-2026.pdf
3•yechs•33m ago•1 comments

New quantum algorithm solves "impossible" materials problem in seconds

https://www.sciencedaily.com/releases/2026/05/260512202355.htm
2•maxloh•33m ago•0 comments

What Is Rails-Way?

https://paweldabrowski.com/farewell-to-rails-way/what-is-rails-way
2•thunderbong•36m ago•0 comments

SpaceX targets June 11 IPO pricing, picks Nasdaq for historic market debut

https://www.coindesk.com/markets/2026/05/15/spacex-targets-june-11-ipo-pricing-picks-nasdaq-for-h...
1•LUZUVYY•36m ago•0 comments

Auto Rebaser v2 – browser-side GitHub PR housekeeping, now multi-account

https://github.com/bradygrapentine/auto-rebaser
1•bgrapentine•40m ago•0 comments

Legacy Update for Windows 8.1 for x64-based Systems

https://legacyupdate.net/download-center/download/51025/update-for-windows-8.1-x64-kb3132080
1•kristianp•41m ago•0 comments

NextEra and Dominion in talks over tie-up to create $400B US utility giant

https://giftarticle.ft.com/giftarticle/actions/redeem/7f0f2008-4160-45f9-8c93-80f8b4318669
3•alephnerd•45m ago•0 comments

Is China using fentanyl as a weapon against the United States?

https://en.unav.edu/web/global-affairs/esta-china-usando-el-fentanilo-como-arma-contra-estados-un...
6•Stevvo•50m ago•6 comments

China's unfinished buildings have created stranded assets with substantial costs

https://www.cell.com/one-earth/fulltext/S2590-3322(26)00050-3
2•littlexsparkee•50m ago•0 comments

Gaps in AI Development Closing 2.1B in Pain

https://news.novonavis.com/builders
1•capagg•55m ago•1 comments

Volkswagen Detects CI Server Tests and Ensures They Pass (2015)

https://github.com/auchenberg/volkswagen
3•birdculture•55m ago•0 comments

'No Way to Prevent This,' Says Only Package Manager Where This Regularly Happens

https://kevinpatel.xyz/posts/no-way-to-prevent-this/
23•alligatorplum•58m ago•2 comments

Picollo: Modern HDR histogram and PMU counters for .NET

https://hotforknowledge.com/2026/05/15/introducing-picollo/
1•buybackoff•59m ago•1 comments