repowisexerj-org/xerj

Architecture of xerj-org/xerj

xerj-org/xerj is 2,996 source files holding 33,169 symbols across 16 modules, written mainly in Rust, Python, JavaScript. The largest module is engine, with 665 files, and 39 files are entry points into the dependency graph.

How xerj fits together

The engine directory is a Rust workspace that takes in source files, documents, logs and cluster traffic and returns indexed records, search results and API responses. engine/crates/xerj-api/src/es_compat.rs implements the Elasticsearch-compatible API, so existing clients can call it. engine/crates/xerj-mcp/src/lib.rs provides the MCP server that AI agents connect to. engine/crates/xerj-autoindex/src/lib.rs handles autoindexing of a folder, which the autoindex command starts. engine/crates/xerj-engine/src/index.rs is one of the hotspot files in the code index.

Largest modules

  • engine: 665 files and 426,144 lines of code
  • benchmarks: 116 files and 12,471 lines of code
  • docs: 93 files and 9,743 lines of code
  • xerj-ux: 83 files and 16,977 lines of code
  • scripts: 72 files and 18,554 lines of code
  • demo: 48 files and 9,928 lines of code
  • landing: 35 files and 12,364 lines of code
  • tools: 28 files and 5,288 lines of code

Languages

By file count: Rust 673 files, Python 257 files, JavaScript 164 files, Shell 79 files, Java 3 files, Dockerfile 2 files.

Documentation

Repowise documents xerj in 1,246 pages generated from the source, 46 of them written explanations of the repository and its modules. Module guides include:

  • engine/crates/xerj-ai/src: AI Embedding and Decision Crate
  • engine/crates/xerj-hub/src: Agent Hub Catalogue and Ask
  • engine/crates/xerj-autoindex/src/detect: Autoindex Detection and Harvesting
  • engine/crates/xerj-cluster/src: Cluster Transport
  • engine/crates/xerj-common/src: Common Config and Calibration

More on xerj: summary and FAQ, codebase overview, code health.