spec-mock
Pure Rust spec-driven mock runtime for HTTP(OpenAPI), Websocket(AsyncAPI) and gRPC
What XERJ indexed
Snapshot
Only crates/specmock-core/src, crates/specmock-runtime, specs at commit 99445fa316 (2026-10-04). master is 3 commits ahead.
Selected work

“drive protobuf methods from the same scenario model”. 9 files, 850 lines in crates/specmock-runtime, crates/specmock-core.
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. 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
grpcopenapiprismspecspec-drivenwebsocketmockmock-server
Example questions
- How does spec-mock implement grpc?
- Where does spec-mock handle “drive protobuf methods from the same scenario model”?
- What does crates/specmock-runtime do in spec-mock?
Inside the indexed corpus
- 126 files, 1.4 MB in total, about 11.5 KB per file.
- The selected commit changed 9 of those files (7.1%).
- Languages by size: Rust 99.5%, Just 0.5%.
- On GitHub since 2026-03-02, last push 2026-10-21, 37 commits on master.
- The pin is 3 commits behind master; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported Apache-2.0 for longcipher/spec-mock on 2026-10-31, and the LICENSE file at commit 99445fa316 was reviewed as Apache-2.0. They match, so answers from this corpus carry the same terms as the live repository.
Contributors
Bob Liu (@Akagi201) has 1 selected repository on the hub.
Using XERJ with spec-mock
- Search an OpenAPI spec so an agent can find endpoints spec-mock is tagged openapi on GitHub.
- Ask questions about a GitHub repo without cloning it
- Index a reference library for a coding agent
- ripgrep vs a code index for coding agents: 30 tasks
The prompt
Paste it into your AI agent. It clones longcipher/spec-mock at the pinned commit and indexes it on your machine.
Search the GitHub repository longcipher/spec-mock with XERJ (https://hub.xerj.org/corpus/longcipher--spec-mock). 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/longcipher/spec-mock spec-mock && git -C spec-mock checkout 99445fa3166f8076a122e4acd98173ecc1e93a47 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./spec-mock --url http://127.0.0.1:9200 --prefix spec-mock --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
Bob LiuNetworking, protocols and serialisation corporaprismgrpc-gatewayopenapi-overlay-specdenislituev/mockdtekumara/fakesnowDanielCardonaRojas/swift-mocking
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.