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

Don't Bring Jensen Back

https://www.wired.com/story/dont-bring-jensen-back/
1•cdrnsf•1m ago•0 comments

Paid subscriptions should come with a "dead man's switch", obviously

https://mattbee.mataroa.blog/p/dead-mans-switch/
2•speckx•2m ago•0 comments

The riemann hypothesis, from first principles

https://karanganesan.com/riemann-hypothesis/
1•karanganesan•2m ago•0 comments

Hockeysticky – For solo founders and small teams who can ship with AI

https://hockeysticky.com
1•manos-saratsis•3m ago•0 comments

Keeping AI Coding Agent Memory Relevant as Code Changes

https://enola.tech/blog/agent-memory-needs-a-code-reference
1•GertLH•5m ago•0 comments

The checklist I wish I had when registering a company in Germany

https://stack-crate.com/
1•cjhisey•5m ago•1 comments

Show HN: NetSieve is Mac DNS filter that blocks ad trackers, names who runs them

https://netsieve.app/
1•melvingeorge_•5m ago•0 comments

We promoted developers into architects without informing them

https://manidoraisamy.com/developer-to-architect.html
3•QueensGambit•5m ago•0 comments

Vibecoding an Inference Chip

https://ankitg.me/blog/vibecoding-inference-chip/
3•ankitvgupta•7m ago•0 comments

Pyrefly v1.5: 100% Conformance and 40% Faster

https://pyrefly.org/blog/v1.5/
1•kinto•8m ago•1 comments

DigiCert: Unauthorized Access to Business System

https://bugzilla.mozilla.org/show_bug.cgi?id=2084460
2•petethomas•9m ago•0 comments

FAA Ground Stop Blamed on Elon Musk – Here's Why That's Ridiculous

https://viewfromthewing.com/faa-ground-stop-blamed-on-elon-musk-heres-why-thats-ridiculous/
1•crescit_eundo•10m ago•0 comments

Alice v0.6.0

https://www.alicecaml.org/blog/alice-v0-6-0/
1•todsacerdoti•11m ago•0 comments

Lisp Game Jam Devlog: Polydraw

https://spritely.institute/news/lisp-game-jam-devlog-polydraw.html
1•todsacerdoti•11m ago•0 comments

European rights court bars Romanian lawyer for 2 years over AI citations

https://www.echr.coe.int/w/romanian-lawyer-barred-for-two-years-from-representing-applicants-befo...
1•giuliomagnifico•12m ago•0 comments

Anthropic Team Now Worth More Than Bottom Third of All US Households

https://www.commondreams.org/news/anthropic-wealth-inequality
1•cdrnsf•12m ago•0 comments

One minute of stair stepping may cut blood sugar spikes by 40 percent

https://www.washingtonpost.com/wellness/2026/11/20/just-one-minute-this-activity-may-cut-blood-su...
1•brandonb•13m ago•0 comments

Anthropic's post-debut stumble delivers reality check for AI trade

https://www.reuters.com/business/anthropics-post-debut-stumble-delivers-reality-check-ai-trade-20...
1•onemoresoop•15m ago•0 comments

Trump Threatens Tax on US Companies Building Data Centers Overseas

https://www.newsweek.com/trump-tax-us-data-centers-overseas-12748825
2•sorenjan•15m ago•0 comments

Internet Archive Staffers Are Unionizing

https://www.wired.com/story/internet-archive-staffers-are-unionizing/
2•raybb•15m ago•0 comments

Wired Says 'Please Let the Internet Die.' Some of Us Are Building a Better One

https://www.techdirt.com/2026/11/20/wired-says-please-let-the-internet-die-some-of-us-are-busy-bu...
1•hn_acker•18m ago•1 comments

Anthropic Founder Will Donate to Trump Accounts, Bessent Says

https://www.bloomberg.com/news/articles/2026-11-20/bessent-says-an-anthropic-founder-to-donate-wi...
4•pretext•18m ago•0 comments

OS Vault: Windows Repository (Win 1.0 to 11)

https://osvault.weebly.com/windows-repository.html
1•o_-_o•19m ago•1 comments

In 1977, a 12-year-old invented record scratching and changed hip-hop forever

https://www.npr.org/2023/12/09/1218415793/in-1977-a-12-year-old-invented-record-scratching-and-ch...
1•speckx•20m ago•0 comments

Firefox add-on developer hub redesign

https://blog.mozilla.org/addons/2026/11/20/unveiling-the-all-new-firefox-add-on-developer-hub/
3•pentagrama•23m ago•0 comments

New PhD Enrollment in the Sciences Dropped 10 Percent Under Trump

https://www.nytimes.com/2026/11/20/us/phd-enrollment-sciences-declines.html
6•trauco•25m ago•2 comments

Files.dog Archive

https://files.dog/
1•o_-_o•28m ago•0 comments

75 years, 1,300 employees, zero layoffs: How The Gund Company does it

https://www.wsj.com/podcasts/the-journal/how-one-company-avoids-layoffs-completely/f8e0f15c-bb42-...
1•datascientist•30m ago•0 comments

Wearable wireless patch continuously tracks the heart's rhythm for up to 14 days

https://www.rmit.edu.au/news/all-news/2026/nov/lubdub-trial
1•giuliomagnifico•31m ago•0 comments

Show HN: Holy Chip – organize home poker nights (RSVP, blinds timer, settle up)

https://holychip.app/
1•holychip•32m ago•0 comments