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

Sculpt OS Version 25.10

https://genode.org/download/sculpt
1•doener•58s ago•0 comments

Show HN: GLinksWWW – A student-built retro browser with a 9-slot multi-clipboard

https://github.com/rio719/gLinksWWW-browser
1•RioBurhan•1m ago•0 comments

Blessed.rs – An unofficial guide to the Rust ecosystem

https://blessed.rs/crates
1•Brysonbw•2m ago•0 comments

Show HN: A website that summarises all adopted texts of EU parliament

https://euforya.eu
1•krzysiek•3m ago•0 comments

Show HN: LLMGeoKit – Free scanner for AI/LLM visibility (the new SEO)

https://llmgeokit.com/
1•borxtrk•6m ago•1 comments

TikTok users flock to UpScrolled in response to new U.S. owners

https://mashable.com/article/tiktok-alternative-upscrolled-palestine-censorship
1•bhouston•6m ago•0 comments

The powerful tools in ICE's arsenal to track suspects – and protesters

https://www.washingtonpost.com/technology/interactive/2026/ice-surveillance-immigrants-protesters/
3•diogenes_atx•8m ago•1 comments

Trump says US decertifying Bombardier until Canada certifies Gulfstream

https://ca.finance.yahoo.com/news/trump-says-us-decertifying-bombardier-011312008.html
1•cosmicgadget•11m ago•0 comments

Show HN: Real-time generative MIDI "instrument"

https://soundipity.com/guide
1•nukenuke•12m ago•0 comments

Show HN: Record your screen and microphone 24/7 and sync to clawdbot instance

https://github.com/mediar-ai/screenpipe
1•louis030195•12m ago•0 comments

Terry Pratchett's novels may have held clues to dementia decade before diagnosis

https://theconversation.com/terry-pratchetts-novels-may-have-held-clues-to-his-dementia-a-decade-...
2•pseudolus•12m ago•0 comments

In the Beginning Is the End

https://gilpignol.substack.com/p/in-the-beginning-is-the-end
1•light_triad•14m ago•0 comments

Pogacar and Ku Coin

https://inrng.com/2026/01/ku-coin-pogacar-deal/
1•pietroppeter•15m ago•1 comments

Church of Molt · Crustafarianism

https://molt.church/
1•ianrahman•17m ago•0 comments

Foods That Could Kill You (If You Eat Enough of Them)(2013)

https://www.bonappetit.com/test-kitchen/ingredients/slideshow/foods-that-can-kill-you
1•rolph•21m ago•0 comments

How are you handling tiny website change requests?

https://getpushpilot.com/
1•ryan_rudd•21m ago•1 comments

How much do your EC2 nodes cost?

https://github.com/Nextdoor/lumina
1•diranged•22m ago•1 comments

Why I Always End Up Going Back to C

https://deplet.ing/why-i-always-end-up-using-c/
2•indy•23m ago•0 comments

Request Radar – Classify LinkedIn invitations as recruiters or spam

https://chromewebstore.google.com/detail/request-radar/pmpkcbnkoojpenphcempidfgkjkemife
1•kvntrnz•23m ago•1 comments

New Pyramid Theory Explains the Missing Evidence [video]

https://www.youtube.com/watch?v=h5kWDOuY2Uo
1•evolve2k•27m ago•0 comments

Darren Aronofsky's New AI Series About the Revolutionary War Looks Like Dogshit

https://gizmodo.com/darren-aronofskys-new-ai-series-about-the-revolutionary-war-looks-like-dogshi...
5•voxadam•27m 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•petethomas•29m ago•1 comments

Trump sues IRS, Treasury Department for $10B over tax return leak

https://www.reuters.com/world/us/trump-sues-irs-treasury-department-10-billion-over-tax-return-le...
12•rguiscard•32m ago•0 comments

The Cost of PostgreSQL Arrays

https://boringsql.com/posts/good-bad-arrays/
2•PaulHoule•32m ago•0 comments

Disrupting the Largest Residential Proxy Network

https://cloud.google.com/blog/topics/threat-intelligence/disrupting-largest-residential-proxy-net...
2•pabs3•33m ago•0 comments

President Trump says he wants to drive housing prices up, not down

https://www.usatoday.com/story/news/politics/2026/01/29/trump-housing-prices-increase-affordabili...
9•hypeatei•34m ago•0 comments

MedEvalArena: Peer-judged LLM medical reasoning benchmark

https://danbernardo.substack.com/p/medevalarena
1•docere•34m ago•0 comments

Show HN: TalosPro – AI that executes (not just suggests)

https://www.talospro.ai/
1•ravensingh•35m ago•0 comments

Evin Agasi – Talga [video]

https://www.youtube.com/watch?v=m2OvQEtLU90&list=RDm2OvQEtLU90
1•marysminefnuf•35m ago•0 comments

Ask HN: How are devtool founders getting their paying users in 2026?

3•yasu_c•40m ago•0 comments