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

Comments

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

'Living off the land' allowed Russia-linked group to breach Ukrainian entities

https://therecord.media/russia-linked-breaches-ukraine-living-off-the-land
1•PaulHoule•54s ago•0 comments

Reinforcement Learning Control of Quantum Error Correction

https://arxiv.org/abs/2511.08493
1•SweetSoftPillow•3m ago•0 comments

Trump admin attempts to open pristine Alaska wildlife refuge to gas/oil drilling

https://www.npr.org/2025/10/24/nx-s1-5584883/trump-alaska-wildlife-refuge-oil-gas-drilling
1•stopbulying•4m ago•0 comments

Show HN: RAG-chunk – A tool to choose optimal chunk sizes for RAG

https://medium.com/@skanders/stop-guessing-the-scientific-way-to-choose-your-rag-chunk-size-b0c18...
1•messkan•6m ago•0 comments

Trump administration eliminates protections for endangered species

https://www.cbsnews.com/news/trump-administration-endangered-species-act-rollback/
4•stopbulying•9m ago•0 comments

A new bill could sink India's drones from the sky

https://thedailybrief.zerodha.com/p/a-new-bill-could-sink-indias-drones
1•bulla•9m ago•0 comments

Show HN: GuardiAgent – Sandboxing / permission model for MCP servers

https://www.guardiagent.com/developers
2•phear_•12m ago•0 comments

Abuse of the nullish coalescing operator in JS/TS

https://fredrikmalmo.com/blog/js-ts-nullish-empty-string-coalescing
1•fred_•12m ago•0 comments

Brexit Hit to UK Economy Double Official Estimate, Study Finds

https://www.bloomberg.com/news/articles/2025-11-21/brexit-hit-to-uk-economy-double-official-estim...
4•donohoe•14m ago•0 comments

AI Eats the World [pdf]

https://static1.squarespace.com/static/50363cf324ac8e905e7df861/t/691f5a79a0df314757b754de/176366...
2•cebert•16m ago•0 comments

Nation-state actors bridging cyber and kinetic warfare

https://aws.amazon.com/blogs/security/new-amazon-threat-intelligence-findings-nation-state-actors...
2•breppp•18m ago•0 comments

Show HN: Get Fat Slowly

https://www.kcoleman.me/get-fat-slowly/
2•itake•22m ago•0 comments

A $5 Domain Purchase Exposed Critical AI Agent Security Flaws – Deep Dive

https://www.pylar.ai/blog/forcedleak-salesforce-agentforce-vulnerability-deep-dive
1•Hoshang07•23m ago•0 comments

Show HN: Understand Mortgage Cash Flows

https://linemo.horaceg.xyz
1•rogue7•24m ago•0 comments

How a French judge was digitally cut off by the USA

https://www.heise.de/en/news/How-a-French-judge-was-digitally-cut-off-by-the-USA-11087561.html
4•i-con•28m ago•1 comments

The Violent Aerodynamics of a Pastry

https://sightlessscribbles.com/posts/20250805/
1•8organicbits•31m ago•0 comments

What does your hiring process look like in a post-ChatGPT world?

1•akshaykokane•32m ago•0 comments

X11 Record and Replay

https://world-playground-deceit.net/blog/2025/07/x11-record-and-replay.html
1•BoingBoomTschak•33m ago•0 comments

NASA Mars Relay Network visualization tool

https://eyes.nasa.gov/apps/mrn/#/mars
1•giuliomagnifico•33m ago•0 comments

I Quit Algorithmic Trading to Do Web Startups (2010)

https://www.codusoperandi.com/posts/why-i-quit-algorithmic-trading-to-do-web-startups
1•wonger_•37m ago•0 comments

UK minister ducks cost questions on nationwide digital ID scheme

https://www.theregister.com/2025/11/21/uk_digital_id_costs_uncertain/
2•jjgreen•37m ago•0 comments

Walrus: A Cross-Domain Foundation Model for Continuum Dynamics

https://polymathic-ai.org/blog/walrus/
2•lnyan•38m ago•0 comments

Flowers for Algernon

https://en.wikipedia.org/wiki/Flowers_for_Algernon
3•chistev•42m ago•0 comments

Google's Gemini 3 Is Here: A Special Early Look

https://www.nytimes.com/2025/11/18/podcasts/hardfork-gemini-3.html
2•aktuel•44m ago•0 comments

YouTube suddenly played at 1am (found the culprit)

https://blog.terrydjony.com/youtube-suddenly-playing-at-1am/
1•terryds•46m ago•0 comments

Show HN: Optimize webpages for SEO and LLM search inside ChatGPT

https://chatgpt.com/g/g-6913204b53ac819199c2e14413fd14d5-superlines-ai-search-site-auditor
1•ihmissuti•47m ago•0 comments

'Bull riding is a drug': rodeo embraces its sports science era

https://www.theguardian.com/artanddesign/2025/nov/21/bull-riding-is-a-drug-rodeo-embraces-its-spo...
1•n1b0m•47m ago•0 comments

Show HN: FreeWave – Decentralized music control over Nostr

https://github.com/Codepocketdev/Freewave
3•Hodlcurator•48m ago•0 comments

Nearby peer discovery without GPS using environmental fingerprints

https://www.svendewaerhert.com/blog/nearby-peer-discovery/
2•waerhert•53m ago•0 comments

Swiss Tech Gender Share Remains Below 1990s Peak

https://staehlli.medium.com/why-women-in-tech-are-no-longer-gaining-ground-in-switzerland-21f25c7...
1•pppone•55m ago•0 comments