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

Grok 4.3

https://docs.x.ai/developers/models/grok-4.3
1•simianwords•1m ago•0 comments

Breaking ten years of API compatibility

https://futhark-lang.org/blog/2026-04-29-breaking-api-compatibility.html
1•Fudgel•10m ago•0 comments

Lost in translation: The linguistic challenges facing N. Korean defectors (2025)

https://www.dailynk.com/english/lost-in-translation-the-linguistic-challenges-facing-n-korean-def...
2•spzb•10m ago•0 comments

Our agent found a bug with WireGuard in Google Kubernetes Engine

https://lovable.dev/blog/hunting-networking-bugs-in-kubernetes
5•vikeri•16m ago•0 comments

Medicare portal database exposed health providers' Social Security numbers

https://www.washingtonpost.com/health/2026/04/30/medicare-portal-social-security-numbers-exposed/
1•chirau•17m ago•0 comments

Portabase: Database Backup and Restore Tool

https://github.com/Portabase/portabase
1•thunderbong•17m ago•0 comments

Turning the gears of an early modern search engine (2019)

https://www.rochester.edu/newscenter/book-wheel-modern-search-engine-364122/
1•Eridanus2•23m ago•0 comments

SED Diode

http://www.catb.org/jargon/html/S/SED.html
2•drmacak•25m ago•0 comments

git-sync

https://github.com/entireio/git-sync
3•tosh•28m ago•0 comments

Top Storyblok CMS Migration Companies to Choose From

https://focusreactive.com/blog/storyblok-cms-migration-companies/
1•katarinadrozd•29m ago•0 comments

Claude Code Source Code Breakdown

https://kuber.studio/blog/AI/Claude-Code%27s-Entire-Source-Code-Got-Leaked-via-a-Sourcemap-in-npm...
1•sea-gold•37m ago•0 comments

Vibe Maintainer

https://steve-yegge.medium.com/vibe-maintainer-a2273a841040
2•duggan•40m ago•0 comments

Oscar goes missing after Academy Award winner is blocked from taking on flight

https://www.bbc.com/news/articles/cz72j59znw3o
1•saikatsg•45m ago•0 comments

When Vibe Coding Fails: When to Buy versus When to Build

https://www.forbes.com/councils/forbesbusinesscouncil/2026/04/30/when-vibe-coding-fails-when-to-b...
2•sminchev•45m ago•0 comments

Canonical/Ubuntu have been under DDoS for more than 15h

https://status.canonical.com/#/incident/KNms6QK9ewuzz-7xUsPsNylV20jEt5kyKsd8A-3ptQEHpOd8VQ40ZQs-K...
12•jtlebigot•46m ago•0 comments

What Happened with Mars Sample Return?

https://mceglowski.substack.com/p/what-happened-with-mars-sample-return
2•calcifer•46m ago•0 comments

Nvidia's Jim Fan on the End Game for Robotics [video]

https://www.youtube.com/watch?v=3Y8aq_ofEVs
3•pbd•49m ago•1 comments

Show HN: WeSearch – Anonymous news aggregator with no algorithm, 700 sources

https://wesearch.press/
3•EGCstudy•49m ago•0 comments

SoftBank, Intel to develop ZAM memory – new memory designed as lower-power HBM

https://www.tomshardware.com/tech-industry/artificial-intelligence/softbank-subsidiary-working-wi...
4•rbanffy•49m ago•0 comments

Music with Lyrics Interferes with Cognitive Tasks (2023)

https://journalofcognition.org/articles/10.5334/joc.273
2•XzetaU8•55m ago•0 comments

Show HN: Git Shield – local hooks for secrets and PII

2•veke87•56m ago•0 comments

US lawmakers vote to reduce NSF funding by 20%

https://www.nature.com/articles/d41586-026-01427-6
5•warbaker•58m ago•0 comments

A more efficient implementation of Shor's algorithm

https://lwn.net/Articles/1066156/
2•signa11•1h ago•0 comments

Show HN: Global DNS record propagation visualization

https://www.tidelock.dev/dns/propagation
3•vojtechrichter•1h ago•1 comments

Special-Use Domain 'home.arpa.' (2018)

https://www.rfc-editor.org/rfc/rfc8375.html
1•rdpintqogeogsaa•1h ago•0 comments

OpenClaw Got Safer in Public

https://openclaw.ai/blog/openclaw-security-in-public
1•jacobtomlinson•1h ago•0 comments

Forget Ambition: A Case for Hopeless Creativity

https://www.youtube.com/watch?v=JdlagZ2iDgU
2•stuaxo•1h ago•0 comments

China Planted 78B New Trees Affecting Its Water Cycle

https://www.popularmechanics.com/science/environment/a71126116/china-reforesting-changes-hydrology/
5•kaptain•1h ago•0 comments

My local agentic dev setup today

https://willemvandenende.com/blog/engineering/my-local-agentic-dev-setup-today
3•ColinEberhardt•1h ago•0 comments

Exclusive eBook: Inside the stealthy startup that pitched brainless human clones

https://www.technologyreview.com/2026/04/30/1136684/exclusive-ebook-inside-the-stealthy-startup-t...
2•joozio•1h ago•0 comments