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

Comments

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

Palisades Fire victims told they had to pay for new hydrant in order to rebuild

https://abc7.com/post/palisades-fire-victims-told-had-pay-new-hydrant-order-rebuild/18488114/
1•donsupreme•38s ago•0 comments

Why It Took Linus Tech Tips 4 Years to Make a USB Cable [video]

https://www.youtube.com/watch?v=OT_iyvOy0Tk
1•tristanj•46s ago•0 comments

Chainalysis: Impersonation, AI crypto scams stole $17B last year

https://www.coindesk.com/business/2026/01/14/chainalysis-report-reveals-impersonation-and-ai-cryp...
1•PaulHoule•3m ago•0 comments

Show HN: Arenas suck, here's why we just added one to Windsurf

https://windsurf.com/blog/windsurf-wave-14
2•agtestdvn•3m ago•2 comments

DHS ramps up surveillance in in immigration raids, sweeping in citizens

https://apnews.com/article/digital-crackdown-immigration-minneapolis-trump-52662450a15a7be8d9df69...
1•rawgabbit•4m ago•0 comments

The Dallas Morning News Is Hiring a Faith Reporter

https://eevd.fa.us6.oraclecloud.com/hcmUI/CandidateExperience/en/sites/CX_1/job/2025878/
1•DoctorOW•6m ago•3 comments

F1 2026 – 3D Map: All the Tracks and Teams. Tons of Stats

https://elemap.com/f1map/
1•jkillick•7m ago•1 comments

Show HN: BlinkFund – Crowdfunding w Solana Blinks (donate directly from Twitter)

https://blinkfund.vercel.app/
1•aayushcb•10m ago•0 comments

I Test Drove a Chinese EV. Now I Don't Want to Buy American Cars Anymore

https://www.wsj.com/tech/personal-tech/chinese-ev-test-drive-xiaomi-su7-c3e59282
2•bookofjoe•10m ago•2 comments

Wyoming Introduces First-Ever Foreign Censorship Shield Bill

https://reclaimthenet.org/wyoming-introduces-first-ever-foreign-censorship-shield-bill-granite-act
1•mikece•10m ago•0 comments

Deer antler size best predicted by mother's health

https://www.youtube.com/watch?v=BORv-p7npls
1•scottndecker•13m ago•0 comments

I made a website that shows you random cultural moments with zero context

https://infinijest.com
2•hnmouse•14m ago•0 comments

Ask HN: Should a software engineer have research exposure?

2•c_daeda•15m ago•0 comments

Don Lemon interviews Elon Musk (2024) [video]

https://www.youtube.com/watch?v=hhsfjBpKiTw
3•irthomasthomas•17m ago•0 comments

AI Doubling Time Horizon v1.1

https://metr.org/blog/2026-1-29-time-horizon-1-1/
1•chriskanan•18m ago•0 comments

Major Epstein files are now publicly viewable across multiple official archives

https://twitter.com/polydao/status/2002143534800044520
3•websku•18m ago•3 comments

Chat Is Going to Eat the World

https://deadneurons.substack.com/p/chat-is-going-to-eat-the-world
1•nr378•22m ago•1 comments

A free MCU watch tracker with achievements for Avengers: Doomsday

https://doomsdayrdy.vercel.app/
1•AlonsoGP•25m ago•1 comments

Ask HN: Blocked by YouTube? (Sign in to confirm you're not a bot)

3•dv35z•26m ago•2 comments

The AI bubble has nothing to do with AI

5•AIFairy•29m ago•0 comments

Dual citizenship could be on the chopping block in America

https://qz.com/dual-citizenship-us-legislation
7•ceejayoz•30m ago•4 comments

Ollama Hosts Form Anonymous AI Network Beyond Platform Guardrails

https://www.sentinelone.com/labs/silent-brothers-ollama-hosts-form-anonymous-ai-network-beyond-pl...
2•toomuchtodo•30m ago•1 comments

Peerweb: Decentralized website hosting via WebTorrent

https://peerweb.lol/
20•dtj1123•30m ago•13 comments

OpenClaw: The Rapid Rise

https://comuniq.xyz/post?t=774
2•01-_-•32m ago•0 comments

Silver plunges 30% in worst day since 1980, gold tumbles

https://www.cnbc.com/2026/01/30/silver-gold-fall-price-usd-dollar-fed-warsh-chair-trump-metals.html
7•pera•32m ago•0 comments

Riding a C90 through India [video]

https://www.youtube.com/watch?v=mPne-q4ynts
1•opengrass•33m ago•0 comments

What GLP-1s Are Accidentally Teaching Us About Our Brains

https://thenextbigthink.substack.com/p/what-happens-when-the-want-gets-quiet
1•krustyburger•34m ago•0 comments

The Hitchhiker's Guide to Measuring Engineering ROI

https://www.ctologic.pro/p/how-to-measure-engineering-roi
1•nadis•39m ago•0 comments

Three thoughts on AI inspired by Clawdbot

https://aistudycamp.com/three-thoughts-on-ai/
5•flreln•39m ago•0 comments

The Cost of AI Art

https://www.brandonsanderson.com/blogs/blog/ai-art-brandon-sanderson-keynote
1•jplusequalt•41m ago•0 comments