ondocs
Open-source Ask AI for your docs, with an MCP server for agents: cited answers on your own model key, from one static index built with your site. No vendor, no vector database. Starlight, Docusaurus and VitePress plugins, Next.js, or one script tag
What XERJ indexed
Snapshot
The whole repository at commit f93dfc9f6d (2026-10-13). main is 323 commits ahead.
Selected work

“make Ask AI the first thing on the three demos”. 12 files, 424 lines in examples, scripts.
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-14. 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
ai-sdkdocs-searchembeddingsnextjsragreactretrieval-augmented-generationsemantic-search
Example questions
- How does ondocs implement ai-sdk?
- Where does ondocs handle “make Ask AI the first thing on the three demos”?
- Show the docs-search code in ondocs.
Inside the indexed corpus
- 532 files, 8.0 MB in total, about 15.3 KB per file.
- The selected commit changed 12 of those files (2.3%).
- Languages by size: TypeScript 90.5%, JavaScript 8.2%, CSS 1.2%, Astro 0.1%.
- On GitHub since 2026-10-06, last push 2026-10-30, 650 commits on main.
- The pin is 323 commits behind main; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported MIT for dgesteves/ondocs on 2026-10-31, and the LICENSE file at commit f93dfc9f6d was reviewed as MIT. They match, so answers from this corpus carry the same terms as the live repository.
Contributors
Diogo Esteves (@dgesteves) has 3 selected repositories on the hub.
Their other repository pages: dgesteves/onsystem, dgesteves/signoff-ui.
Using XERJ with ondocs
- RAG without a vector database: one hybrid index ondocs is tagged embeddings on GitHub.
- Search API or a vector database for agent memory?
- 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 dgesteves/ondocs at the pinned commit and indexes it on your machine.
Search the GitHub repository dgesteves/ondocs with XERJ (https://hub.xerj.org/corpus/dgesteves--ondocs). 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/dgesteves/ondocs ondocs && git -C ondocs checkout f93dfc9f6d4e9f932fb2d8efbd7153d84087b8b2 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./ondocs --url http://127.0.0.1:9200 --prefix ondocs --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: MIT. Keep the copyright notice and credit the authors.
Related
Diogo EstevesAI, prompts and agents corporaautoraghaystackfastragAhmadhsn1/Rag-saas-RetrivoVaultSheikhSarvar/pyrag-corezinverno/veynrel
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.