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

Health warnings could reduce young people's social media use,Stanford study find

https://med.stanford.edu/news/all-news/2026/09/social-media-warnings.html
1•DeepLogin•6s ago•0 comments

Latest updates: BepiColombo's arrival at Mercury

https://www.esa.int/Science_Exploration/Space_Science/BepiColombo/Latest_updates_BepiColombo_s_ar...
1•Archelaos•1m ago•0 comments

Xfinity silently blocks lots of new domains

1•dschwartz18•1m ago•0 comments

Show HN: Run open-weight OCR, VLM and vision models behind one API

https://www.vlmrun.com/gateway
1•dr_blueberry•1m ago•0 comments

Winning Solitaire

https://mrdoob.com/lab/javascript/effects/solitaire/
1•rosstex•1m ago•0 comments

NetBird Made Figma for Remote Access

https://netbird.io/knowledge-hub/control-center-draft-mode
1•techhut•2m ago•0 comments

We just publicly released Muse Spark 1.3 max

https://twitter.com/alexandr_wang/status/2095938990197329935
2•ot•3m ago•0 comments

Splash-free urinals: Design through physics and differential equations

https://academic.oup.com/pnasnexus/article/4/4/pgaf087/8098745
3•thunderbong•5m ago•0 comments

Show HN: A GET message board for AI agents, not browsers

https://getpostingboard.dev/
1•neuraldenis•7m ago•0 comments

Sandboxing Claude CLI with Tart on Apple Silicon

https://www.mrafayaleem.com/blog/sandboxing-claude-cli-with-tart-on-apple-silicon
2•iamspoilt•9m ago•1 comments

Can You Air-Condition a City?

https://www.bloomberg.com/news/articles/2026-09-02/as-cities-swelter-outdoor-cooling-tech-promise...
2•littlexsparkee•9m ago•1 comments

The Myth of Rust's Determinism: How Cargo Generates Build-Time Chaos

https://vanuan.github.io/blog/2026-09-04-myth-of-rust-determinism/
2•Vanuan•9m ago•0 comments

Amazon Achieves Enshitification Inception

https://pluralistic.net/2026/09/04/cheating-at-fraud/#absentee-rentier
1•plombe•10m ago•0 comments

CPAN Uploads Are Up 50% Year-over-Year

https://www.olafalders.com/2026/09/04/cpan-uploads-up-50-percent-year-over-year/
1•oalders•12m ago•0 comments

Harmless to Humans

https://turbek.com/blog/2026/08/31/absolutely-harmless-to-humans/
1•speckx•15m ago•0 comments

GPU-Accelerated Physics, AI Surrogates for Physics and Visualization [video]

https://www.youtube.com/watch?v=2E_NdSoddhQ
1•o4c•15m ago•0 comments

Why Smart TVs Track What You Watch

https://www.rtings.com/tv/learn/research/smart-tv-data-privacy
1•throw0101d•17m ago•0 comments

Show HN: I built an aesthetically pleasing puzzle

https://jigsawhaiku.com/
1•windowshopping•18m ago•0 comments

Local AI for Submitting Job Applications

1•vcandela•20m ago•0 comments

UK based AI training data is on the rise

https://id43labs.com/
1•chrisp123online•20m ago•0 comments

Model Drift Is Computational Evolution

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7102218
1•lokatewry•23m ago•0 comments

RLHF Creates Algorithmic State Conflict

https://zenodo.org/records/21830430
1•lokatewry•24m ago•0 comments

Reverse engineering old games vs. the economic impact of the transformer

https://this.os.isfine.org/blog/posts/what-reverse-engineering-and-modernising-an-old-war-game-te...
2•ttsiodras•25m ago•0 comments

Someone got hold of my app's API key. Here's what I learned

https://whisperingplaces.com/discover/what-happens-when-your-api-key-gets-stolen.html
1•wptravelapp•25m ago•0 comments

Ant Colonies in the Machine

https://ben3d.ca/blog/ant-colony-in-the-compute-layer
1•bhouston•26m ago•0 comments

How the iPhone blew up the Wireless Industry

https://www.wired.com/2008/01/ff-iphone/
1•highfrequency•26m ago•0 comments

Keybench Analysis on TidesDB v10.0.0 and RocksDB v11.8.1

https://tidesdb.com/articles/keybench-analysis-tidesdb-10-0-0-rocksdb-11-8-1/
1•peterpanhead•27m ago•0 comments

Ask HN: How gambling apps/websites survive?

1•skwasimin•27m ago•1 comments

I Replaced Pi-hole with Unbound, and the privacy upgrade wasn't the only win

https://www.xda-developers.com/replaced-pi-hole-with-unbound-for-week-privacy-upgrade-wasnt-only-...
1•gdrift•30m ago•0 comments

FreeTaxUSA's Binding Arbitration Agreement

https://www.freetaxusa.com/freefile2025/terms/
6•ciwchris•30m ago•1 comments