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

Comments

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

Israeli forces raid Global Sumud Flotilla boats in international waters

https://www.aljazeera.com/news/2026/4/29/israeli-military-speedboats-block-gaza-bound-aid-ship
1•0x54MUR41•9m ago•0 comments

Spite Apps: The Latte Larry's of Apps

https://sxp.studio/blog/spite-apps-the-latte-larrys-of-apps
1•tasoeur•9m ago•0 comments

Show HN: KeeWebX – KeePass that runs from a double-clicked HTML file

https://keewebx.app/app?demo=1
1•edxtz•15m ago•0 comments

AI Skills as loader spec, not prompts – why the architecture changes everything

https://internals.laxmena.com/p/what-youre-actually-writing-when
1•laxmena•15m ago•0 comments

Anomaly detection of private jet flights

https://ews.kylemcdonald.net
1•kcimc•16m ago•0 comments

AI Status (Mac App)| FOSS

https://github.com/Jaecobd1/ai-status
1•jaecob•19m ago•0 comments

On the Future of Apple’s Vision Platform

https://daringfireball.net/2026/04/on_the_future_of_apples_vision_platform
5•ffin•20m ago•1 comments

US falls below Ukraine in press freedom as global autocracy takes hold

https://arstechnica.com/tech-policy/2026/04/us-falls-below-ukraine-in-press-freedom-as-global-aut...
6•canucker2016•21m ago•1 comments

What We're Missing About Generative AI

https://onlinelibrary.wiley.com/doi/10.1155/hbe2/2320511
1•yousufsaif•21m ago•0 comments

Show HN: LLM-Powered News –> Event Map, Timeline, and Analysis

https://conflictintelligence.ai/
1•nclin_•28m ago•0 comments

Ask HN: How are people testing while using agent orchestrators?

1•spmartin823•36m ago•0 comments

Post-quantum encryption for Cloudflare IPsec is generally available

https://blog.cloudflare.com/post-quantum-ipsec/
1•linolevan•39m ago•0 comments

Intercom-client NPM package and lightning PyPI packages compromised

https://opensourcemalware.com/blog/mini-shai-hulud
1•6mile•41m ago•1 comments

ClawIRC – IRC Chat for Agents

https://clawirc.com/
6•randomfrom•47m ago•0 comments

Tell HN: Fossil SCM Server Overloaded

3•thunderbong•51m ago•0 comments

$500M for Virtual Biology Initiative, Funded by Zuckerbergs

https://biohub.org/news/virtual-biology-initiative/
15•warbaker•56m ago•1 comments

What Is Authorship When Machines Can Write?

https://thereader.mitpress.mit.edu/what-is-authorship-when-machines-can-write/
2•pseudolus•1h ago•0 comments

Louisiana congressional primaries suspended after Supreme Court ruling

https://www.pbs.org/newshour/politics/louisiana-congressional-primaries-suspended-after-supreme-c...
5•Bender•1h ago•1 comments

Autonomous payments between Agents using L402? [video]

https://www.youtube.com/watch?v=33KZQJS1-Vw
1•gabrielpmares•1h ago•1 comments

Is a Sovereign Single‑File Node OS (Uni‑B) a Viable Architecture?

https://planned-tan-ktnij0otlq.edgeone.app/
1•UnrealizedTech•1h ago•0 comments

Beijing bans drone sales even as rest of world buys Chinese drones

https://arstechnica.com/gadgets/2026/04/beijing-bans-drone-sales-even-as-rest-of-world-buys-chine...
4•Mindless2112•1h ago•0 comments

German energy tech startup becomes Europe's latest unicorn following €50M raise

https://impactloop.com/article/cmblu-becomes-europe-s-latest-energy-tech-unicorn-following-50m-ra...
1•doener•1h ago•0 comments

Mini Shai-Hulud in Intercom Package Spreads to Packagist Using Composer Plugin

https://semgrep.dev/blog/2026/malicious-intercom-php-package-spreads-mini-shai-hulud-attack-to-pa...
1•j12y•1h ago•0 comments

Ask HN: Any dashboards give realtime average AI chatbot response time?

1•MrCoffee7•1h ago•0 comments

Utah's New Law Targeting VPNs Goes into Effect Next Week

https://www.eff.org/deeplinks/2026/04/utahs-new-law-regulating-vpns-goes-effect-next-week
14•iamnothere•1h ago•1 comments

Simple and Correct Snapshot Isolation

https://remy.wang/blog/si.html
2•remywang•1h ago•0 comments

LLM Quantization

https://huggingface.co/docs/transformers/main_classes/quantization
1•Anon84•1h ago•0 comments

Finding Zero Days with any model?

https://www.provos.org/p/finding-zero-days-with-any-model/
1•dnw•1h ago•0 comments

Show HN: Gemini free tier is all you need

https://juanpabloaj.com/2026/04/30/gemini-free-tier-is-all-you-need/
1•juanpabloaj•1h ago•0 comments

We scanned 100 Smithery MCP servers, 22 flagged, here's what we found

3•chaksaray•1h ago•2 comments