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

Comments

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

Hours of Darkness: The Ongoing Regime-Imposed Internet Blackout

https://twitter.com/netblocks/status/2028913162255282264
1•us321•25s ago•0 comments

Norway explains formula behind sustained success at Winter Olympics

https://www.japantimes.co.jp/olympics/2026/02/17/norway-keys-winter-success/
1•PaulHoule•56s ago•0 comments

Show HN: SQL-pipe – Query CSV streams with SQLite syntax (written in Zig)

https://github.com/vmvarela/sql-pipe
1•vmvarela•1m ago•1 comments

Self-Hosted Software List

https://hostedsoftware.org/
1•selfhostedsoft•2m ago•1 comments

Supported browser for Apple devices, derived from Atari TOS 1999

https://en.wikipedia.org/wiki/ICab
1•muzzy19•2m ago•1 comments

Show HN: Spanish Words, spaced repetition vocabulary app for frequent words

https://www.1000spanishwords.app/
1•bbmaxwell•5m ago•0 comments

Ask Your AI to Fill This

https://potomushto.com/2026/tell-your-ai/
1•speckx•7m ago•0 comments

A better way to manage environment variables

https://github.com/humblepenguinn/envio
1•doomlazer•7m ago•1 comments

Show HN: SEO That Fixes Itself

https://www.howtoseo.ai/
1•santiviquez•8m ago•0 comments

OpenAI: 5.4 sooner than you Think.

https://twitter.com/OpenAI/status/2028909019977703752
2•modeless•9m ago•1 comments

RLC Pro is an enterprise Linux for the AI era

https://thenewstack.io/ciq-launches-rlc-pro-for-enterprise-linux-for-the-ai-era/
1•CrankyBear•9m ago•0 comments

An Interactive Intro to CRDTs

https://jakelazaroff.com/words/an-interactive-intro-to-crdts/
2•evakhoury•10m ago•0 comments

The Shady World of IP Leasing

https://acid.vegas/blog/the-shady-world-of-ip-leasing/
1•slome•11m ago•0 comments

Delays in grant awards and funding calls worry NIH researchers

https://www.science.org/content/article/delays-grant-awards-and-funding-calls-worry-nih-researchers
2•epistasis•11m ago•0 comments

Show HN: Stackhaus – A marketplace for AI-built apps (1,204 verified at launch)

https://stackhaus.ai/
1•TheRealDaveO•11m ago•0 comments

Doing math is lonely [video]

https://www.youtube.com/watch?v=LEsI4kPEkgw
1•astroanax•13m ago•0 comments

GitHub Top Code Dataset: 1.3M+ code files from GitHub's top ranked developers

https://huggingface.co/datasets/ronantakizawa/github-top-code
1•ronantech•14m ago•0 comments

Show HN: Dbcli – A Lightweight Database CLI Designed for AI Agents

1•justvugg•14m ago•2 comments

Show HN: VeilDB – Open-source database anonymization platform

https://github.com/veildb-tech/service
1•ihorklymchuk•14m ago•1 comments

Show HN: Focused input cuts LLM output tokens by 63% bench on CC with FastAPI

1•nicola_alessi•15m ago•0 comments

Coruna: The Mysterious Journey of a Powerful iOS Exploit Kit

https://cloud.google.com/blog/topics/threat-intelligence/coruna-powerful-ios-exploit-kit
1•ledoge•15m ago•0 comments

Credential Protection for AI Agents: The Phantom Token Pattern

https://nono.sh/blog/blog-credential-injection
1•decodebytes•16m ago•1 comments

I taught my OpenClaw to call me on the phone [video]

https://www.youtube.com/shorts/WMNdEK28zo4
1•thisismyswamp•16m ago•0 comments

Beta Player – unofficial Bandcamp desktop and mobile player with remote control

https://github.com/eremef/bandcamp-player
1•eremef•17m ago•1 comments

PyTorch MPS Ops

https://github.com/users/kulinseth/projects/1/views/1
1•tosh•18m ago•0 comments

How Well Does Reinforcement Learning Scale?

https://www.tobyord.com/writing/how-well-does-rl-scale
1•AntiDyatlov•18m ago•0 comments

Linux perf Examples

https://www.brendangregg.com/perf.html
1•medbar•20m ago•0 comments

Building Things in Crowded Spaces

https://www.generative.inc/the-weight-of-how-things-are
1•altonwells•21m ago•0 comments

Iran Is Deploying Bubble Jammers Against the US Government [video]

https://www.youtube.com/watch?v=7E69ir4WhpQ
2•tartoran•22m ago•1 comments

M5 Pro and M5 Max are surprisingly big departures from older Apple Silicon

https://arstechnica.com/gadgets/2026/03/m5-pro-and-m5-max-are-surprisingly-big-departures-from-ol...
3•strongpigeon•22m ago•0 comments