Architecture of niko1221/strata
niko1221/strata is 4,731 source files holding 42,495 symbols across 20 modules, written mainly in Python, C++, JavaScript. The largest module is apps, with 717 files, and 8 files are entry points into the dependency graph.
How strata fits together
Requests enter through the desktop app, whose entry point is apps/desktop/src-tauri/src/main.rs, through the strata command in the terminal, and through the local API served by serve/server.py. Generation runs in src/program/generate.cpp, which is one of the hotspot files in the code index, and prompt processing is handled in src/prefill/prefill.cpp. The ref directory reads model weights stored in the GGUF format and returns tensor values as float32 arrays for the reference path. Responses return to the user as chat output in the app or as answers from the local API.
Largest modules
- apps: 717 files and 70,473 lines of code
- tools: 340 files and 55,410 lines of code
- tests: 326 files and 58,133 lines of code
- src: 318 files and 112,329 lines of code
- sycl: 257 files and 123,290 lines of code
- bench: 237 files and 22,668 lines of code
- include: 219 files and 14,158 lines of code
- serve: 149 files and 41,633 lines of code
Languages
By file count: Python 1,025 files, C++ 986 files, JavaScript 457 files, TypeScript 287 files, Shell 66 files, Objectivec 9 files.
Documentation
Repowise documents strata in 2,818 pages generated from the source, 61 of them written explanations of the repository and its modules. Module guides include:
- apps/host/server/agent: Agent
- include/strata/kernels/cpu: CPU
- src/kernels/cpu: CPU Kernel Implementations
- src/core: Core
- sycl/src/kernels/cuda: Cuda
More on strata: summary and FAQ, codebase overview, code health.