Architecture of nandhakishorm/laya
nandhakishorm/laya is 207 source files holding 1,964 symbols across 10 modules, written mainly in Python, TypeScript, JavaScript. The largest module is tests, with 46 files, and 7 files are entry points into the dependency graph.
How laya fits together
Input enters through the Router in laya/router.py, which detects the script and language of each text and selects a checkpoint such as laya-multilingual or the English checkpoint. The selected checkpoint runs one non-autoregressive forward pass and returns the typed choice, score or yes/no answers. Each result includes routing metadata with the model name, the repository and the reason for the choice. The files laya/agent.py and laya/router.py are flagged as hotspots in the code index. laya/cli.py provides the laya command, and laya/mcp/server.py and examples/server.py expose the package through an MCP server and an HTTP server. docker/entrypoint.py prepares the Python environment when the container starts.
Largest modules
- tests: 46 files and 7,403 lines of code
- laya-ts: 27 files and 4,228 lines of code
- research: 24 files and 3,795 lines of code
- laya: 21 files and 5,046 lines of code
- examples: 7 files and 1,190 lines of code
- benchmarks: 4 files and 478 lines of code
- docker: 2 files and 86 lines of code
- root: 2 files and 51 lines of code
Languages
By file count: Python 108 files, TypeScript 23 files, JavaScript 3 files, Dockerfile 1 file.
Documentation
Repowise documents laya in 226 pages generated from the source, 15 of them written explanations of the repository and its modules. Module guides include:
- docker: Docker Quickstart
- research: Evaluation Research Runner
- laya: Laya Core Capabilities
More on laya: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos