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

AMD Ryzen 7 7700X3D Review: 3D V-Cache Gaming Performance for Less – HotHardware

https://hothardware.com/reviews/amd-ryzen-7-7700x3d-gaming-cpu-review
1•rbanffy•1m ago•0 comments

I Made My Blog Solar-Powered – An Update

https://louwrentius.com/i-made-my-blog-solar-powered-a-huge-update.html
1•louwrentius•1m ago•0 comments

GPT-5.6 Sol Ultra built a full Chrome V8 exploit chain from patch commits

https://www.hacktron.ai/blog/watching-gpt-55-sol-ultra-write-a-chrome-exploit-exploit-development...
1•nyku•2m ago•0 comments

When Rust Gets Ugly

https://corrode.dev/blog/ugly/
2•ethanplant•4m ago•0 comments

What Makes Humans Stupid

https://nautil.us/what-makes-humans-stupid-1282459
2•rbanffy•5m ago•0 comments

LANA Project Interim Report 2026: Computer-Assisted Verification of IUT Theory [video]

https://www.youtube.com/watch?v=KADN5NHmIfw
1•amichail•8m ago•0 comments

Open Book Touch: open-source e-reader

https://www.crowdsupply.com/oddly-specific-objects/open-book-touch
3•surprisetalk•9m ago•0 comments

128Gb Eight Channel Workstation Madness: Threadripper 3995WX in Windows 8.1

https://trackerninja.codeberg.page/post/128gb-eight-channel-workstation-madness-paired-with-threa...
1•spacedrone808•11m ago•0 comments

Building an Advanced Agentic Harness

https://data4sci.substack.com/p/building-an-advanced-agentic-harness
1•Anon84•13m ago•0 comments

Trump blames Canada for wildfire smoke, says he'll add cost to tariffs

https://www.reuters.com/world/ontario-buy-new-11-new-aircraft-very-difficult-wildfire-fight-2026-...
4•sleepyguy•13m ago•0 comments

Surprise and Delight [video]

https://www.youtube.com/watch?v=4J1dQIjneJY
2•Anon84•13m ago•0 comments

Webpack Is Now on Bluesky

https://bsky.app/profile/webpack.js.org
2•avivkeller•13m ago•0 comments

Topcoat: The full full-stack framework for Rust

https://github.com/tokio-rs/topcoat
3•wertyk•16m ago•0 comments

Caution: Children Might Impoverish Their Parents

https://retirementincomejournal.com/article/warning-children-might-impoverish-their-parents/
1•petethomas•17m ago•0 comments

Right to Repair Fundraiser Goal Reached

https://sfconservancy.org/news/2026/jul/16/software-right-to-repair-baltobu-fundraiser-succes/
1•nfriedly•18m ago•0 comments

Faulty Towers, vibe sickness, and the vibe bobsled

https://dustycloud.org/blog/faulty-towers-vibe-sickness-and-the-vibe-bobsled/
1•sanqui•22m ago•1 comments

Google Weather Lab 2

https://deepmind.google.com/science/weatherlab
2•xnx•25m ago•0 comments

Show HN: Tests.ws – WebSocket testing tools, language guides, Chrome extension

https://tests.ws/
1•gingermanymph•25m ago•0 comments

Aurora DSQL: Scalable, Multi-Region OLTP

https://arxiv.org/abs/2607.13276
2•shenli3514•26m ago•0 comments

Sliding into Silence? We Are Speaking 300 Daily Words Fewer Every Year

https://journals.sagepub.com/doi/10.1177/17456916261425131
1•Pamar•27m ago•1 comments

China's Latest A.I. Breakthrough Threatens America's Lead

https://www.nytimes.com/2026/07/17/business/china-ai-moonshot-kimi.html
2•petilon•28m ago•0 comments

Grumpy Website

https://grumpy.website/
3•Gecko4072•30m ago•0 comments

The first patch is a price check, not the product

https://github.blog/engineering/the-cost-of-saying-yes-has-changed/
1•logickkk1•30m ago•0 comments

Static search trees: 40x faster than binary search (2024)

https://curiouscoding.nl/posts/static-search-tree/
2•lalitmaganti•32m ago•0 comments

China's Xi Jinping launches new AI alliance, WAICO

https://www.aljazeera.com/news/2026/7/17/chinas-xi-jinping-launches-new-ai-alliance-what-is-it
3•culi•33m ago•2 comments

Recreating the best engineering zine from the 90s

https://circazine.hackclub.com/
2•lsanchezz•34m ago•0 comments

France blocks access to Polymarket website

https://www.reuters.com/technology/french-internet-service-providers-told-block-access-polymarket...
2•1659447091•34m ago•1 comments

Ask HN: Did you try Nordstjernen Web Browser 1.0.19 yet?

2•roschdal•35m ago•3 comments

MLB restricts using dugout iPads for AI-assisted in-game strategy

https://www.espn.com/mlb/story/_/id/49385415/mlb-restricts-dugout-ipad-use-prevent-artificial-int...
2•HardwareLust•37m ago•0 comments

Linus Torvalds to critics of AI coding in Linux: "Fork it. Or just walk away."

https://arstechnica.com/ai/2026/07/linus-torvalds-to-critics-of-ai-coding-in-linux-fork-it-or-jus...
6•baal80spam•38m ago•1 comments