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

The Most Effective Screen Time Passcode Is One You Can't Remember

https://mindfultech.bearblog.dev/the-most-effective-screen-time-passcode-is-one-you-cant-remember/
1•rainydesert•6m ago•0 comments

Engineering Got Faster. Now the Hard Part Is Deciding What to Build

https://ferrix.ai/blog/engineering-got-faster-hard-part-is-deciding-what-to-build
1•B_Nemade•10m ago•0 comments

Multi-Turn Reflective Masking Elicits Reasoning in Mask Diffusion Models

https://zhangyanming-cs.github.io/Multi-Turn_RM/
1•ilreb•10m ago•0 comments

ZenStack, tRPC and Kit

https://attic.olup.me/projects/zenstack-trpc-kit
1•carlual•12m ago•0 comments

Donate your Claude Code traces to an open CC-BY-4.0 dataset

https://trace-commons-web.hf.space/
1•_josh_meyer_•16m ago•0 comments

Cool Magnetic Field Viewer [video]

https://www.youtube.com/watch?v=1OgwAEWtupw
1•thunderbong•19m ago•0 comments

Fun with Docker, broken networking, remote filesystems, and race conditions

https://www.maroonmed.com/fun-with-docker-broken-networking-remote-filesystem-mounts-and-race-con...
1•erdoc69•19m ago•0 comments

Camel: Efficient Compression of Floating-Point Time Series

https://dl.acm.org/doi/10.1145/3698802
1•tosh•22m ago•0 comments

An Inconvenient Truth About AI

https://rutgerbregman.substack.com/p/an-inconvenient-truth-about-ai
1•nemoniac•23m ago•0 comments

Fire and Ice Copper Lists

http://uridiumauthor.blogspot.com/2026/06/fire-and-ice-copper-lists.html
2•ingve•25m ago•0 comments

Headroom – The context compression layer for AI agents

https://github.com/headroomlabs-ai/headroom
1•sibellavia•26m ago•0 comments

Compressing floating point data with Gorilla

https://quanttype.net/p/compressing-with-gorilla/
1•tosh•26m ago•0 comments

Best of AI

https://bestofai.io/leaderboard/
3•thenewedrock•27m ago•0 comments

Ask HN: What rules does your team have for using AI in a durable codebase?

1•ctenb•30m ago•1 comments

LinkedIn engagement/signals to sales qualified leads

https://folkscope.com
1•teemupp•31m ago•0 comments

GeneralVLA-2

https://aigeeksgroup.github.io/GeneralVLA-2/
1•ilreb•32m ago•0 comments

Doing a masters while working in Spain

https://jan-herlyn.com/blog/doing-a-masters-while-working/
1•MHard•32m ago•0 comments

Mullvad to China: Block This. We Dare You

https://michael-dev-tech.github.io/Website/mullvad.html
2•f0r3st•32m ago•0 comments

SpatialAvatar-0: High-Quality 4D Head Avatar with Multi-Stage Reconstruction

https://spatialwalk.github.io/SpatialAvatar-0/
1•ilreb•35m ago•0 comments

Codex logging bug may write TBs to local SSDs

https://github.com/openai/codex/issues/28224
34•vantareed•46m ago•15 comments

Investors get real-time view of UK bond market activity for the first time

https://www.fca.org.uk/news/press-releases/investors-get-real-time-view-uk-bond-market-activity-f...
1•monkeydust•47m ago•0 comments

Beyond Clicking and Shell Commands: API-Native Computer Control

https://carsondb.github.io/blog/2026-06-api-native/
1•CarsonWu•48m ago•0 comments

Ask HN: Two specific Postgres encrypt questions

1•scrubs•51m ago•1 comments

Tronsec – free open-source TRON wallet and contract security scanner

https://tronsec.io/
1•jamejohns•51m ago•0 comments

GLM 5.2 vs. Opus

https://techstackups.com/comparisons/glm-5.2-vs-opus/
61•ritzaco•54m ago•27 comments

Chesterton's Middle Finger

https://www.arp242.net/chestersons-finger.html
3•rkta•55m ago•0 comments

Climate Change Stings Beekeepers

https://www.thestar.com.my/aseanplus/aseanplus-news/2026/06/15/climate-change-stings-beekeepers
3•hasudon7171•55m ago•1 comments

UK Rape Gang Inquiry Report

https://rapeganginquiry.co.uk/report
1•thelastgallon•56m ago•0 comments

Should I change my writing style to shorts, because of AI/low attention span?

https://www.ssp.sh/brain/should-i-change-my-writing-because-of-ai/
2•zazuke•1h ago•0 comments

On the Skin-Furrows of the Hand (1880) [pdf]

https://galton.org/fingerprints/faulds-1880-nature-furrows.pdf
2•pncnmnp•1h ago•1 comments