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

The need for at least a third option

https://blog.ovalerio.net/archives/3359
1•rowbin•53s ago•0 comments

Show HN: JA4 Fingerprinting: Why One Digest Can Cover User-Agents

https://zlu.me/2026/11/16/ja4-same-fingerprint-many-user-agents.html
1•zlu•1m ago•0 comments

Petrichor and Geosmin – The Smell of Rain

https://sciencenotes.org/petrichor-and-geosmin-the-smell-of-rain/
1•thunderbong•1m ago•0 comments

Vulcan rocket fails, destroying 40 Amazon Leo satellites

https://www.theverge.com/science/1034006/vulcan-rocket-fails-destroying-40-amazon-leo-satellites
1•madihaa•2m ago•0 comments

SafeScript 2.0: safe subset of JavaScript, now supports debugging in the browser

https://github.com/SafeScript/safescript/releases/tag/v2.0.0
1•EGreg•2m ago•0 comments

I Sustained 500K Words of Human–AI Dialogue Through Continuous Correction

https://uka-135-map.pplx.app
1•pinuslongaeva•2m ago•0 comments

Coles hit by a cybersecurity incident

https://www.colesgroup.com.au/updates/
1•sagunsh•5m ago•0 comments

California adds a constitutional ban on wealth taxes

https://calmatters.org/politics/2026/11/billionaire-tax-prop-42-result/
1•delichon•6m ago•0 comments

Show HN: MIB Viewer Desktop – SNMP MIB Browser with 20k MIBs

https://mib-viewer.com/products/mib-viewer-desktop/
1•beefstew123•11m ago•0 comments

DroidPath – Stream Android UI Trees at 60Hz over TCP (Bypassing ADB)

https://github.com/V0val0x/DroidPath
1•Ak4shik•11m ago•0 comments

Nimony: A New Compiler for Nim

https://nimony.org/
1•Fervicus•15m ago•0 comments

Bringing fast wireless connectivity to the world

https://www.csiro.au/en/research/technology-space/it/Wireless-LAN
1•thamiltonsmith•20m ago•0 comments

Keytrace – One identity, many proofs

https://keytrace.dev/
1•figmert•20m ago•0 comments

Show HN: Small service for moving invoices from Cliniko to QuickBooks

https://invoice-funnel.com
1•dre85•21m ago•0 comments

The Legion of PCAST

https://daringfireball.net/linked/2026/11/15/legion-of-pcast
1•chmaynard•21m ago•0 comments

Show HN: Gavel, an open source local code review tool

https://photostructure.com/coding/gavel/
1•mceachen•28m ago•0 comments

'It's like the Wild West': how AI has rocked the literary world

https://www.theguardian.com/books/ng-interactive/2026/nov/14/its-like-the-wild-west-how-ai-has-ro...
5•Archelaos•28m ago•1 comments

Librsvg 2.62.3: a C library that renders SVG to Cairo

https://github.com/randy-/librsvg
1•oss-fbs•29m ago•0 comments

Amazon MadPot: Honeypot for AI Agents

https://aws.amazon.com/blogs/security/amazon-threat-intelligence-observes-threat-actors-running-c...
2•dnw•29m ago•0 comments

Evolution Design a Chess Army [video]

https://www.youtube.com/watch?v=KA6cHlighO0
1•K0IN•30m ago•1 comments

Book review of the DSM-5 (2013)

https://thenewinquiry.com/book-of-lamentations/
1•aDyslecticCrow•35m ago•0 comments

The SaaSpocalypse was more like a RenaiSaaS

https://www.stripeeconomics.com/p/the-saaspocalypse-was-more-like-a
2•nreece•36m ago•0 comments

Vulcan rocket fails during launch, dealing major blow to SpaceX competitors

https://arstechnica.com/space/2026/11/vulcan-rocket-fails-during-launch-dealing-major-blow-to-spa...
2•bookmtn•37m ago•1 comments

Flaming Hydra's new Kickstarter rethinks e-book ownership and digital lending

https://techcrunch.com/2026/11/15/flaming-hydras-new-kickstarter-campaign-rethinks-e-book-ownersh...
3•raybb•38m ago•0 comments

The Fossils That Haunted Lovecraft

https://paleonerdish.wordpress.com/2026/10/30/halloween-special-xiv-the-fossils-that-haunted-love...
5•BigTTYGothGF•42m ago•0 comments

Tracing the news coverage against Jensen

https://jensencoverage.vercel.app/
1•yegle•43m ago•0 comments

1st place in the OpenAI × Citadel Securities × Sequoia Castle Challenge

https://kinshu.co/castle-challenge/
1•kinpirate•44m ago•0 comments

10-tonne-class electric aircraft completed first manned flight

https://twitter.com/XHNews/status/2121596133936091612
2•zekrioca•45m ago•0 comments

The Fundamental Flaw in the Race to AGI

https://project507.substack.com/p/the-fundamental-flaw-in-the-race
1•FiliNews•45m ago•1 comments

Dawn of the Super Agent

https://www.agno.com/blog/dawn-of-the-super-agent
1•ashpreet-bedi•58m ago•0 comments