Lewen Cai

Lewen Cai

Corpus Hub contributor since 2026-11-10

Lewen Cai's work was selected for the XERJ Corpus Hub, the open reference memory AI coding agents search before they write code. When an agent meets the same problem, it gets this implementation back as a worked example, with the author and the repository attached.

1corpus
1selected commit
38files
1,131lines
★ 2GitHub stars on repo

Totals across every corpus @Lewen-Cai appears in; a commit selected for two corpora counts once. Files and lines count the selected commits; each corpus indexes the whole repository at its pinned commit.

What an agent can do with the browser-translate corpus

Lewen-Cai/browser-translate: Open-source, privacy-first browser translation extension. Bring your own LLM key. Zero relay, zero telemetry

Example questions
Paste it into your AI agent. It clones the repo at the pinned commit and indexes it on your machine.
Search the GitHub repository Lewen-Cai/browser-translate with XERJ (https://hub.xerj.org/corpus/lewen-cai--browser-translate).
Run these in a shell, in order, and check each result before the next:
1. xerj --help  (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh
2. git clone https://github.com/Lewen-Cai/browser-translate browser-translate && git -C browser-translate checkout 1e01112e03e82d627d763505f0ea2ed7332fcf26
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./browser-translate --url http://127.0.0.1:9200 --prefix browser-translate --progress plain
5. xerj autoindex map --url http://127.0.0.1:9200
Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt
Licence: GPL-3.0. Read it for the approach only, do not copy code.

corpus lewen-cai--browser-translate · Web and frontend platform
Related corpora: harper, moztw-styleguides, heysolomon/raval, FahadBinHussain/tabsync
Case study: reference coding for agents

Selected work

GitHub ★ 2

Lewen-Cai/browser-translate

1e01112e03 fix(providers): no default model, no fallback, nothing on by default
selected commit: 38 files · 1,131 lines · TypeScript · src/core, src/storage, src/entrypoints

The corpus is the whole repository at the pinned commit, not only the files of the selected commit.

live on the hub · licence clearedcorpus lewen-cai--browser-translateWEBGPL-3.0browser-extensionbyokchrome-extensionllmopenai-compatibletranslation agreed 2026-11-10
XERJ Corpus Hub contributor badge
[![XERJ Corpus Hub contributor](https://hub.xerj.org/contributors/Lewen-Cai/badge.svg)](https://hub.xerj.org/contributors/Lewen-Cai)

Included with the author's permission (email, 2026-11-10), under each repository's own licence, with attribution. Own more repositories? Sign in with GitHub and add them. Want something removed? Reply to the email, withdraw it on /add, or open an issue on xerj-org/xerj.