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

Comments

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

Show HN: Digital Marblng Art: Ebru

https://tryebru.com/
1•chtslk•12s ago•0 comments

Caterpillars Vibrate to Complex Rhythms to Communicate with Ants

https://www.smithsonianmag.com/smart-news/needy-caterpillars-vibrate-to-complex-rhythms-to-commun...
1•m-hodges•13s ago•0 comments

Statistics of the World – Free API for 490 global economic indicators

https://statisticsoftheworld.com
1•sotwdata•31s ago•0 comments

App that shows real-time lightning on Earth is showing bombings in Middle East

https://maps.blitzortung.org/
1•0ut0flin3•49s ago•0 comments

Invisible Bottleneck: Helium Shortage Threatens the Chip Industry

https://www.nytimes.com/2026/03/27/business/helium-chips-iran-war.html
1•bookofjoe•3m ago•1 comments

YOLO Linux is a corporate nightmare

https://alexandmanu.com/blog/yolo-linux-is-a-corporate-nightmare/
3•leksje•6m ago•0 comments

No Kings protests fill streets at over 3,300 rallies in all 50 states

https://www.washingtonpost.com/nation/2026/03/28/no-kings-protests-marches-record-turnout/
3•tempodox•6m ago•0 comments

Openrouter Going Rogue?

https://old.reddit.com/r/openrouter/comments/1s6d2cw/openrouter_is_holding_funds_hostage_no_support/
1•pixel_popping•6m ago•1 comments

Fyrox Game Engine 1.0.0

https://fyrox.rs/blog/post/fyrox-game-engine-1-0-0/
2•TAINCER•10m ago•0 comments

The Ghost in the Machine

https://en.wikipedia.org/wiki/The_Ghost_in_the_Machine
1•simonpure•10m ago•0 comments

Don't Blame the Model

https://asimovaddendum.substack.com/p/dont-blame-the-model
1•srulyrosenblat•12m ago•0 comments

USPS seeks a 8% charge on Priority Mail to offset transportation costs

https://abc7.com/post/usps-seeks-temporary-8-charge-priority-mail-other-products-offset-transport...
2•lxm•14m ago•0 comments

Apple Pivots Its AI Strategy to App Store, Search-Like Platform Approach

https://www.bloomberg.com/news/newsletters/2026-03-29/apple-doubles-down-on-hardware-services-wit...
1•brandonb•15m ago•0 comments

101 Ads – Silicon Valley's most insane billboards, mapped

https://101ads.org/
2•ChrisArchitect•17m ago•0 comments

Catch common usability problems before user testing

https://www.userium.com/
1•userium•24m ago•0 comments

I Saw Something New in San Francisco

https://www.nytimes.com/2026/03/29/opinion/ai-claude-chatgpt-gemini-mcluhan.html
1•droidjj•25m ago•0 comments

FIDE Candidates 2026 Open: Round 1

https://lichess.org/broadcast/fide-candidates-2026-open/round-1/uLCZwqAK/iGcbKclc
1•FartyMcFarter•26m ago•0 comments

Humans welcome (bots must wear name tags)

https://old.reddit.com/user/spez/comments/1s3ezrc/humans_welcome_bots_must_wear_name_tags/
2•ChrisArchitect•26m ago•0 comments

Say No to Palantir in Europe

https://action.wemove.eu/sign/2026-03-palantir-petition-EN
2•Betelbuddy•31m ago•0 comments

16% of my Chrome extension's users are Chinese-speaking found it organically

https://wushu75.github.io/readr/
2•Ogbon•31m ago•0 comments

Lasers used to seal paper – no adhesives or plastics required

https://newatlas.com/manufacturing/laser-paper-sealing/
3•thunderbong•32m ago•1 comments

Show HN: Spend weekend Claude tokens making your code bulletproof with Lean

https://github.com/savarin/lean-forge
1•kurinikku•32m ago•1 comments

Jupiter's weather forecast: cloudy with a chance of nukes

https://www.science.org/content/article/jupiter-s-weather-forecast-cloudy-chance-nukes
2•benkan•36m ago•1 comments

Local speech-to-text daemon for Linux with Nvidia Parakeet (0.6B params)

https://github.com/EdouardDem/live-speech-to-text
1•Underwire167•37m ago•1 comments

Molecular 'anchors' could be key to weather-resistant perovskite solar cells

https://techxplore.com/news/2026-03-molecular-anchors-key-weather-resistant.html
1•Brajeshwar•37m ago•0 comments

OpenAI drops AI video tool Sora, startling Disney, sources say

https://www.reuters.com/technology/openai-set-discontinue-sora-video-platform-app-wsj-reports-202...
2•benkan•37m ago•1 comments

My Mediocrity Has Been Automated

https://overengineer.it.com/posts/robbed-of-mediocrity/
3•adsellor•37m ago•0 comments

Fraudulent church data revealed AI's threat to polling

https://www.theguardian.com/technology/2026/mar/28/how-fraudulent-church-data-revealed-ais-threat...
2•cdrnsf•38m ago•0 comments

Ask HN: What Changed Your Life?

4•chistev•39m ago•1 comments

Show HN: Aurea v0.4, image codec where every constants derive from pi and phi

https://github.com/5ymph0en1x/Aurea
1•Symphoenix•39m ago•0 comments