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

A new way for AI to search for data
View on GitHub
21GitHub stars
197commits on main
3forks

C 87.9%, Lua 10.8%, JavaScript 0.4%, CMake 0.3% · created 2026-04-13 · last push 2026-10-31

What XERJ indexed

Snapshot

540 files · 13.2 MB

The whole repository at commit 2d8803f860 (2026-10-03). main is 5 commits ahead.

Selected work

chib
@1dao

“add recursive directory change notification”. 9 files, 958 lines in xlua, tests, the project root.

Licence

The repository

BSD-2-Clause

LICENSE file checked at the pinned commit; the author agreed to inclusion.

The XERJ corpus

BSD-2-Clause, with credit

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

Inside the indexed corpus

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

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

Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.