wp-rest-api-guard
Restrict and control access to the REST API
What XERJ indexed
Snapshot
Only .wordpress-org, tests at commit 90319be5a1 (2026-10-06). develop is 7 commits ahead.
Selected work

“Track and revoke JWTs, send nocache headers, release 1.5.0”. 5 files, 486 lines in the project root, tests.
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-15. Agents read it for how it works, not to copy it. Answers name the repo, the commit and the file:line.
selected for the XERJ Corpus Hublicence clearedsuggested use: approach only
rest-apiwordpresswordpress-plugin
Example questions
- How does wp-rest-api-guard implement rest-api?
- Where does wp-rest-api-guard handle “Track and revoke JWTs, send nocache headers, release 1.5.0”?
- Show the wordpress code in wp-rest-api-guard.
Inside the indexed corpus
- 29 files, 533.3 KB in total, about 18.4 KB per file.
- The selected commit changed 5 of those files (17.2%).
- On GitHub since 2022-10-05, last push 2026-10-19, 118 commits on develop.
- The pin is 7 commits behind develop; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported GPL-2.0 for alleyinteractive/wp-rest-api-guard on 2026-10-31, and the LICENSE file at commit 90319be5a1 was reviewed as GPL-2.0. They match, so answers from this corpus carry the same terms as the live repository.
Contributors
Sean Fisher (@srtfisher) has 1 selected repository on the hub.
Using XERJ with wp-rest-api-guard
- Search an OpenAPI spec so an agent can find endpoints wp-rest-api-guard is tagged rest-api on GitHub.
- Audit a PHP codebase with an index, not grep PHP is 100% of the code by size.
- Best grep alternative for AI coding agents (2026)
- Ask questions about a GitHub repo without cloning it
The prompt
Paste it into your AI agent. It clones alleyinteractive/wp-rest-api-guard at the pinned commit and indexes it on your machine.
Search the GitHub repository alleyinteractive/wp-rest-api-guard with XERJ (https://hub.xerj.org/corpus/alleyinteractive--wp-rest-api-guard). 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/alleyinteractive/wp-rest-api-guard wp-rest-api-guard && git -C wp-rest-api-guard checkout 90319be5a139d5bde46983843bcbe9bb4f14afec 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./wp-rest-api-guard --url http://127.0.0.1:9200 --prefix wp-rest-api-guard --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-2.0. Read it for the approach only, do not copy code.
Related
Sean FisherAPI design and specification corporaoasdiffgrpc-gatewayswagger-uibfcamel/bfcamel-crmWordPress/aikonkomaji/wordpress-mcp
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.