xnet2lua
Lightweight C networking runtime with embedded Lua: cross-platform event loop (epoll/kqueue/WSAPoll, optional io_uring), one isolated Lua state per thread, async post + coroutine RPC, TLS, HTTP/WebSocket server & client, Redis/MySQL/NATS clients, and hot reload
What XERJ indexed
Snapshot
The whole repository at commit 2d8803f860 (2026-10-03). main is 5 commits ahead.
Selected work

“add recursive directory change notification”. 9 files, 958 lines in xlua, tests, the project root.
Licence
The repository
LICENSE file checked at the pinned commit; the author agreed to inclusion.
The XERJ corpus
The author agreed by email on 2026-10-12. Same terms as the repository. Answers name the repo, the commit and the file:line.
selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution
actor-modelccross-platformevent-loopgame-serverhot-reloadhttp-serverio-uring
Example questions
- How does xnet2lua implement actor-model?
- Where does xnet2lua handle “add recursive directory change notification”?
- What does xlua do in xnet2lua?
Inside the indexed corpus
- 540 files, 13.2 MB in total, about 25.0 KB per file.
- The selected commit changed 9 of those files (1.7%).
- Languages by size: C 87.9%, Lua 10.8%, JavaScript 0.4%, CMake 0.3%, Makefile 0.3%.
- On GitHub since 2026-04-13, last push 2026-10-31, 197 commits on main.
- The pin is 5 commits behind main; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported BSD-2-Clause for 1dao/xnet2lua on 2026-10-31, and the LICENSE file at commit 2d8803f860 was reviewed as BSD-2-Clause. They match, so answers from this corpus carry the same terms as the live repository.
Contributors
chib (@1dao) has 1 selected repository on the hub.
Using XERJ with xnet2lua
- Index a reference library for a coding agent
- ripgrep vs a code index for coding agents: 30 tasks
- Best MCP servers for local code search in 2026, compared
- Best grep alternative for AI coding agents (2026)
The prompt
Paste it into your AI agent. It clones 1dao/xnet2lua at the pinned commit and indexes it on your machine.
Search the GitHub repository 1dao/xnet2lua with XERJ (https://hub.xerj.org/corpus/1dao--xnet2lua). 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/1dao/xnet2lua xnet2lua && git -C xnet2lua checkout 2d8803f860e88ec337cb85922a713b50bc55ee59 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./xnet2lua --url http://127.0.0.1:9200 --prefix xnet2lua --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: BSD-2-Clause. Keep the copyright notice and credit the authors.
Related
chibNetworking, protocols and serialisation corporalibsodiumlibhydrogens2n-tlstessarotto21/lume-dataPySudo/QuantoScriptMistGo/GoogiVM
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.