frontpage.
newsnewestaskshowjobs

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

Rustext: A native GUI/TUI text editor in pure Rust with zero dependencies

https://github.com/boleklolek/rustext
1•boleklolek•30s ago•0 comments

Region: A Lesson in Data Integrity

https://mydbanotebook.org/posts/region-a-lesson-in-data-integrity/
1•hosteur•1m ago•0 comments

Musk accuses Ukraine of violating Starlink terms with deadly drone strikes

https://arstechnica.com/tech-policy/2026/10/musk-accuses-ukraine-of-violating-starlink-terms-with...
1•rbanffy•1m ago•0 comments

C# and NATS.io for agentic AI orchestration

https://nats.io/blog/nats-native-protocol-for-ai-agents/
1•northlondoner•2m ago•1 comments

The Evolving Landscape of Venture Capital Mindsets

https://twitter.com/martin_casado/status/2115474230511030475
1•porridgeraisin•2m ago•0 comments

What a 50-year-old tractor taught me about UX

https://evergreendesign.io/essays/just-in-time-help/
1•violinar•4m ago•0 comments

Homebrew Git updated away from macOS's system cURL

https://github.com/Homebrew/homebrew-core/pull/321878
1•ungawatkt•5m ago•1 comments

GPT-6.1 Sol Beats Final Fantasy VII

https://www.twitch.tv/videos/2912639349
1•transportgo•5m ago•1 comments

Ask HN: What happened to our collective ethos?

1•nativeit•6m ago•0 comments

Powerful Dem trio demands faster AI incident disclosures

https://www.politico.com/live-updates/2026/10/28/congress/powerful-dem-trio-demands-faster-ai-inc...
1•node_runner•9m ago•1 comments

EU dropping associate membership title for its closer alliance with Canada

https://www.cbc.ca/news/politics/european-union-canada-associate-member-9.7399578
2•wmchen•9m ago•0 comments

Em Dashes and Armbands

https://medium.com/@pheverdotexe/em-dashes-and-armbands-eefd2f2c1a48
2•Pheverdotexe•10m ago•0 comments

Show HN: Gitby

https://gitby.dev
2•gitby•10m ago•0 comments

Scaling Hierarchical Networks

https://www.cartesia.ai/blog/from-tokens-to-bytes-part-1
1•guybedo•11m ago•0 comments

Writing GPU kernels in Rust: how I made speakrs 60× faster than pyannote

https://avencera.com/blog/writing-gpu-kernels-in-rust-speakrs-60x-faster-than-pyannote
2•praveenperera•11m ago•0 comments

Apple MacBook Pro with touch screen

https://www.apple.com/ca/macbook-pro/proled-xdr-display/
2•yohannparis•11m ago•2 comments

Amazon engineering leadership on the role of the developer in the age of AI

https://www.aboutamazon.com/news/company-news/amazon-software-engineer-role-guideline-ai
1•luispa•12m ago•0 comments

What Women Want from AI

https://www.elenaverna.com/p/dear-new-york-times-thats-not-what
1•flail•12m ago•0 comments

Enterprise Add-On Policies

https://blog.mozilla.org/addons/2026/10/28/introducing-enterprise-add-on-policies/
1•rdmuser•13m ago•0 comments

The Boring Future of AI Coding

https://metamagic.substack.com/p/the-boring-future-of-ai-coding
1•r0ze-at-hn•13m ago•0 comments

Gemini Robotics Embodied Reasoning 2 is now available on Google Cloud

https://cloud.google.com/blog/products/ai-machine-learning/gemini-robotics-embodied-reasoning-2-i...
1•gmays•14m ago•0 comments

Hermes Paper Harness: Native SwiftUI iPhone Client for Hermes Agent

https://apps.apple.com/ro/app/hermes-paper-harness/id6820495872
1•yourfavdev•14m ago•0 comments

Apple announces touchscreen MacBook Pro with OLED display

https://arstechnica.com/apple/2026/10/apple-announces-touchscreen-macbook-pro-with-oled-display/
2•arunbahl•14m ago•1 comments

We rebuilt the OpenAI x Hugging Face incident and stopped it before it happened

https://runlatent.ai/blog/agent-shortcut-hold
1•vedantgr•14m ago•0 comments

Microsoft makes its Copilot agent harness available through Foundry

https://blogs.microsoft.com/blog/2026/10/28/introducing-the-microsoft-copilot-harness-unlocking-t...
1•acossta•14m ago•0 comments

BeKaffe: Java on Haiku

https://duncanmcqueen.github.io/bekaffe/
1•grodriguez100•16m ago•0 comments

When the Job Description Says AI, but the Data Doesn't

https://seeglassbox.com/market/entry-level-software/when-the-job-description-says-ai
1•muturii•16m ago•0 comments

Rethinking Search as Code Generation

https://www.perplexity.ai/hub/blog/rethinking-search-as-code-generation
1•imankulov•18m ago•0 comments

Claude Code found 14,219 photos of my face on my Android that I never took

https://twitter.com/coolerwave/status/2115393243458207755
4•bpierre•18m ago•0 comments

How to make (good) pixel art effects with Claude

https://www.spritefusion.com/blog/how-to-make-good-pixel-art-effects-with-claude
2•kinduff•19m ago•0 comments