repowisexerj-org/xerj

Architecture of xerj-org/xerj

xerj-org/xerj is 3,213 source files holding 40,092 symbols across 15 modules, written mainly in Rust, Python, JavaScript. The largest module is engine, with 764 files, and 41 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-engine/src/index.rs is one of the hotspot files in the code index and sits in the crate that holds the indexing core. engine/crates/xerj-api/src/es_compat.rs handles the Elasticsearch-compatible API, so existing clients can call the server unchanged. engine/crates/xerj-autoindex/src/lib.rs implements the autoindex step behind the command that indexes a folder. engine/crates/xerj-mcp/src/lib.rs exposes the same search to AI agents through the Model Context Protocol. The benchmarks and scripts directories sit outside the search engine: benchmarks are standalone scripts that call a running node over HTTP, and scripts build the website and run release checks.

Largest modules

  • engine: 764 files and 572,452 lines of code
  • benchmarks: 130 files and 13,192 lines of code
  • docs: 98 files and 10,089 lines of code
  • xerj-ux: 83 files and 17,005 lines of code
  • scripts: 78 files and 19,473 lines of code
  • demo: 48 files and 9,965 lines of code
  • landing: 35 files and 12,364 lines of code
  • tools: 29 files and 5,376 lines of code

Languages

By file count: Rust 772 files, Python 277 files, JavaScript 165 files, Shell 86 files, Java 3 files, Dockerfile 2 files.

Documentation

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

  • engine/crates/xerj-autoindex/src/extract: Autoindex Content Extraction
  • xerj-ux/src/ux: Brain Map and Charts
  • engine/crates/xerj-cluster/src: Cluster transport
  • engine/crates/xerj-console-api/src: Console API Bootstrap and Dashboards
  • xerj-ux/src/data: Console Data Layer

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

Related guide: Best dependency graph tools for monorepos