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

A new way for AI to search for data
View on GitHub
39GitHub stars
650commits on main
3forks
ondocs@0.18.0latest release, 2026-10-30

TypeScript 90.5%, JavaScript 8.2%, CSS 1.2%, Astro 0.1% · created 2026-10-06 · last push 2026-10-30

What XERJ indexed

Snapshot

532 files · 8.0 MB

The whole repository at commit f93dfc9f6d (2026-10-13). main is 323 commits ahead.

Selected work

Diogo Esteves
@dgesteves

“make Ask AI the first thing on the three demos”. 12 files, 424 lines in examples, scripts.

Licence

The repository

MIT

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

The XERJ corpus

MIT, with credit

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

Inside the indexed corpus

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

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

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