g-rex

A transpiled, human-readable, scripting langauage for constructing complex Regex patterns cleanly

A new way for AI to search for data
View on GitHub
1GitHub stars
5commits on main
0forks

TypeScript 100% · created 2026-07-26 · last push 2026-10-13

What XERJ indexed

Snapshot

42 files · 287.9 KB

The whole repository at commit 80c0881fda (2026-10-13). main is 1 commit ahead.

Selected work

“Complete the compiler: parser, lowering, emitter, CLI and ext.”. 33 files, 5,070 lines in packages/core, packages/vscode, testing.

Licence

The repository

Apache-2.0

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

The XERJ corpus

Apache-2.0, with credit

The author agreed by email on 2026-10-27. 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

Example questions

The prompt

Paste it into your AI agent. It clones B1j2754/g-rex at the pinned commit and indexes it on your machine.

Search the GitHub repository B1j2754/g-rex with XERJ (https://hub.xerj.org/corpus/b1j2754--g-rex).
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/B1j2754/g-rex g-rex && git -C g-rex checkout 80c0881fdabc7ec3481f6f6eca1e9a8114846acd
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./g-rex --url http://127.0.0.1:9200 --prefix g-rex --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: Apache-2.0. 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.