repowiseniko1221/strata

Architecture of niko1221/strata

niko1221/strata is 6,677 source files holding 78,104 symbols across 7 modules, written mainly in C++, Python, JavaScript. The largest module is engine, with 2,143 files, and 16 files are entry points into the dependency graph.

How strata fits together

The repository is split into top-level directories: engine holds the C++ inference code, terminal holds the Python command line tool and server, app holds the desktop and host user interfaces, and docs and tools hold documentation and scripts. Inside engine, engine/src/prefill/prefill.cpp and engine/src/program/generate.cpp are among the central files of the inference code. The server in terminal/serve/server.py is part of the layer that exposes models to outside tools. The launch code in terminal/strata_cli/launch/runner.py backs the strata launch command for the terminal app. app/desktop/src-tauri/src/main.rs is the entry point of the desktop app, and app/host/src/app/App.tsx is the main component of the host interface. Chat windows and coding tools send requests to the local API, and the generated output returns to them.

Largest modules

  • engine: 2,143 files and 756,653 lines of code
  • terminal: 1,222 files and 252,250 lines of code
  • app: 925 files and 88,748 lines of code
  • docs: 242 files and 22,876 lines of code
  • tools: 116 files and 18,541 lines of code
  • .github: 3 files and 496 lines of code
  • root: 1 file and 64 lines of code

Languages

By file count: C++ 2,013 files, Python 1,561 files, JavaScript 636 files, TypeScript 323 files, Shell 73 files, C 26 files.

Documentation

Repowise documents strata in 4,589 pages generated from the source, 6 of them written explanations of the repository and its modules. Module guides include:

  • root: Root Setup Script
  • tools: Tools 2

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

Related guide: Best dependency graph tools for monorepos