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

CBS Radio signs off after nearly 100 years of broadcasting

https://www.cbsnews.com/news/cbs-news-radio-last-day/
1•gscott•54s ago•0 comments

Venmo Takes Privacy Seriously

https://www.theverge.com/tech/927503/venmo-app-redesign-privacy-posts
1•TMWNN•1m ago•0 comments

Designing Firefox for the Future

https://blog.mozilla.org/en/firefox/new-firefox-design/
1•ohtz•1m ago•0 comments

Yt-dlp – [Announcement] Bun support is now limited and deprecated

https://github.com/yt-dlp/yt-dlp/issues/16766
1•tamnd•3m ago•0 comments

A Technical Deep Dive into the New Raycast

https://www.raycast.com/blog/a-technical-deep-dive-into-the-new-raycast
1•CharlesW•3m ago•0 comments

I used to own a tiny niche

https://newsletter.masilotti.com/p/i-used-to-own-a-tiny-niche
1•joemasilotti•3m ago•0 comments

Trump administration issues directive green card applicants to apply outside US

https://abcnews.com/US/trump-administration-issues-directive-requiring-green-card-applicants/stor...
2•LordAtlas•4m ago•0 comments

Reach Out and Say Thanks

https://www.kevinpowell.co/article/tell-someone-you-appreciate-them/
1•mooreds•6m ago•0 comments

Test Like You Fly

https://www.spacex.com/content/starship/test-like-you-fly
1•lawrenceyan•7m ago•0 comments

Politico agrees to shut down both AI tools at center of landmark arbitration

https://wbng.org/2026/05/22/politico-ai-arbitration-victory/
1•thm•7m ago•0 comments

Show HN: Agenda Intelligence MD – evidence-discipline MCP layer for agents

https://github.com/vassiliylakhonin/agenda-intelligence-md
1•vassilbek•8m ago•0 comments

I Bypassed Adobe and Microsoft to Build a Git-Tracked Book Production Pipeline

https://www.djspeckhals.com/posts/2026-05-22-how-i-bypassed-adobe-and-microsoft-to-build-a-git-tr...
1•dustin1114•9m ago•0 comments

Grant Lee (Gamma): Why founder conviction matters more

https://twitter.com/thisisgrantlee/status/2057098820371280210
1•nadis•12m ago•0 comments

Slopcop

https://slopcop.brokk.ai
1•indigodaddy•14m ago•0 comments

AI's Plummeting Prices Are a Software Story, Not a Hardware One

https://weightythoughts.com/p/ais-plummeting-prices-are-a-software
1•gmays•15m ago•1 comments

Snuffleupagus, a newly described species, is an adorable little predator

https://www.cbc.ca/radio/asithappens/snuffleupagus-fish-9.7207623
1•Brajeshwar•15m ago•0 comments

The Invisible Cliff: AI Development and Architectural Debt

https://mynock.substack.com/p/the-invisible-cliff-ai-development
3•mynock•18m ago•0 comments

Show HN: AI-Mirror - Self-optimising ranking engine for modern web applications.

https://aimirror.dev/
1•michaelcuneo•19m ago•0 comments

Annotations in Xeno-Canto

https://xeno-canto.org/article/318
2•kiproping•19m ago•0 comments

1940 Air Terminal Museum Begins Liquidation

https://www.1940airterminal.org/news/liquidation-of-simulators
2•weaponeer•21m ago•0 comments

RL Doesn't Work on Slurm

https://blog.skypilot.co/rl-doesnt-work-on-slurm/
2•covi•22m ago•0 comments

Show HN: Mechs.lol – a free, web-based autoshooter game

https://mechs.lol
2•spaceships•23m ago•0 comments

Liberating the public art on L.A.'s light rail lines (2021)

https://palewi.re/posts/2021/05/09/public-art-on-la-light-rail-line/
1•c-shubh•24m ago•0 comments

Curly braces: An evolution of Unix and C

https://thalia.dev/blog/unix-braces/
2•adunk•25m ago•1 comments

Show HN: SnapMeasureAI – Accurate 3D body measurements from photos, no hardware

https://snapmeasureai.com/
1•yuridoug•28m ago•0 comments

Is Machine Learning still worth learning in 2026?

https://www.dataschool.io/is-machine-learning-worth-learning/
2•dataschool•29m ago•0 comments

University Endowments Reap Windfalls from SpaceX, OpenAI, LinkedIn IPOs

https://www.bloomberg.com/news/articles/2026-05-21/spacex-fuels-more-than-3-000-return-for-washin...
1•gmays•29m ago•0 comments

Chain Reactions: How Nonce Collisions in Ecdsa Compromise Polygon MEV Searchers

https://arxiv.org/abs/2605.21498
1•Brajeshwar•29m ago•0 comments

Ask HN: What's New in Crypto?

2•kaycebasques•31m ago•0 comments

Lawmakers Demand Answers as CISA Tries to Contain Data Leak

https://krebsonsecurity.com/2026/05/lawmakers-demand-answers-as-cisa-tries-to-contain-data-leak/
3•speckx•32m ago•1 comments