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

StartupStarter – we built a company brain so AI can do your work

https://startupstarter.co/
1•SCJB•3m ago•2 comments

Google Cloud has blocked our account, making some Railway services unavailable

https://twitter.com/i/status/2056883076496789854
1•bundie•5m ago•1 comments

An AI Co-Scientist for Hypothesis Generation from Google DeepMind

https://doi.org/10.1038/s41586-026-10644-y
1•car•6m ago•0 comments

Windows on Nintendo 64

https://www.youtube.com/watch?v=eGS9su_inBY
2•cedel2k1•8m ago•0 comments

Everything You Do Is Being Recorded

https://www.theatlantic.com/technology/2026/05/ai-wearable-surveillance-countermeasures/687203/
1•breve•10m ago•0 comments

Railway Blocked by Google Cloud

https://status.railway.com/?date=20260519
3•aarondf•22m ago•2 comments

Google's First AI Smart Glasses Launching This Fall with iPhone Support

https://www.macrumors.com/2026/05/19/google-ai-smart-glasses-iphone-support/
1•mikhael•24m ago•0 comments

I made an App that uses local LLMs to monitor your screen

1•roy3838•25m ago•0 comments

Show HN: The user agents crawling HN today

https://ai.realhackers.org/user_agents.txt
1•Bender•26m ago•1 comments

Show HN: Export Webflow sites and CMS content

https://www.webflowexport.com/
2•happyyeti•27m ago•1 comments

Generative art collection based on human interpretation

https://www.mixedmessages.fyi/auction
1•knownquantity_•29m ago•2 comments

WhatsApp Web Became Facebook

https://old.reddit.com/r/whatsapp/comments/1ti3qxf/whatsapp_web_became_facebook/
3•Crier1002•35m ago•0 comments

Railway Currently Down

https://twitter.com/Railway/status/2056873075401007338
2•kristianc•37m ago•1 comments

El Niño is coming. The last time ocean temp. looked like this, millions died

https://respublicamgz.substack.com/p/a-super-el-nino-is-coming-the-last
8•ResPublica•39m ago•0 comments

50-year WHO/CDC Ebola outbreak pipeline in a weekend

https://github.com/vrsabha/outbreak-tracker
1•hn_career•42m ago•1 comments

Tell HN: Google banned Railway's account. Everything down

6•sergiotapia•42m ago•4 comments

GitHub is investigating unauthorized access to their internal repositories

https://twitter.com/github/status/2056884788179726685
30•splenditer•44m ago•10 comments

N display of stupid, secret CISA credentials found in public GitHub rep

https://arstechnica.com/information-technology/2026/05/in-stunning-display-of-stupid-secret-cisa-...
2•sbulaev•47m ago•1 comments

Google Cloud suspends Railway account causing major outage

https://twitter.com/Railway/status/2056883076496789854
5•sincinnatusc•47m ago•0 comments

Age Shapes the Adoption of New Technologies

https://insight.kellogg.northwestern.edu/article/swipe-or-tap-how-age-shapes-the-adoption-of-new-...
1•PopAlongKid•48m ago•1 comments

Google's AI Studio now lets anyone build Android apps in minutes

https://techcrunch.com/2026/05/19/googles-ai-studio-now-lets-anyone-build-android-apps-in-minutes/
3•cpncrunch•51m ago•0 comments

Heads, Trump Wins ( Tails, he still wins)

https://www.theatlantic.com/newsletters/2026/05/trump-corruption-irs-fund/687227/
1•KnuthIsGod•56m ago•0 comments

My Arduino spins faster when Claude burns more tokens

https://terminalbytes.com/arduino-claude-code-activity-meter/
1•mtlynch•56m ago•1 comments

HTML-in-Canvas Demos

https://github.com/GoogleChromeLabs/css-web-ui-demos/blob/main/html-in-canvas/awesome-html-in-can...
1•simonpure•57m ago•0 comments

Language Registries Are Unstable by Default

https://nesbitt.io/2026/05/15/language-registries-are-unstable-by-default.html
1•teddyh•57m ago•0 comments

Gemini Omni: where Gemini's ability to reason meets the ability to create

https://www.youtube.com/watch?v=KUyRq7szZsM
1•doener•57m ago•0 comments

CFTC sues to block Minnesota's first-in-nation ban on prediction markets

https://www.reuters.com/world/us-cftc-sues-minnesota-block-law-related-prediction-market-2026-05-19/
5•petethomas•58m ago•0 comments

Show HN: Capframe – capability tokens for AI agent tool calls

https://capframe.ai
1•euan21•59m ago•2 comments

Widening the Conversation on Frontier AI

https://www.anthropic.com/news/widening-conversation-ai
2•surprisetalk•1h ago•0 comments

Show HN: RTFRA - A Humble Proposal [RFC]

1•stgr_codes•1h ago•0 comments