# nandhakishorm/laya

> laya is a non-autoregressive decision engine for typed choice, score and yes/no decisions over any text. It returns each decision from a single forward pass of a model instead of generating text token by token. A router picks the checkpoint for each request, and the package is written in Python and supports 100+ languages.

Source: https://github.com/nandhakishorm/laya
Indexed: commit 23a1752 on 2026-09-24 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: MCP server
- Language: Python
- Stars: 35,567 at index time
- License: Apache-2.0
- Code health: 7.5/10, Good
- Last commit: 2026-09-24
- Contributors: 64

## Install

From the README: https://github.com/nandhakishorm/laya#installation

Install the PyPI release into a Python 3.10 or newer environment.
    python -m pip install laya

Check the installed version from the virtual environment's Python on macOS or Linux.
    .venv/bin/python -I -c "import laya; print(laya.__version__)"

## How it works

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.

- examples/server.py: entry point
- laya-ts/examples/snake.mjs: entry point
- laya-ts/examples/try-ml.mjs: entry point
- laya/cli.py: entry point
- laya/mcp/server.py: entry point
Modules: tests, laya-ts, research, laya, examples, benchmarks, docker, root. 207 files, 22,450 lines, 1,964 symbols.

## Code health

- Score: 7.5/10 (Good)
- Rank: #111 of 4,000+ indexed repos
- Hotspots: laya/agent.py, laya/router.py, laya-ts/src/agent.ts, laya/lang.py, laya-ts/src/router.ts
- Lowest file: laya/onnx_agent.py
- Dead code: 8 findings

## Maintenance

- Last commit 2026-09-24, first commit 2026-09-18, 206 commits
- 64 contributors, bus factor 7

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/nandhakishorm/laya/security

## More

- Page: https://repowise.dev/repo/nandhakishorm/laya
- Ask this codebase: https://repowise.dev/repo/nandhakishorm/laya/chat
- Docs: https://repowise.dev/repo/nandhakishorm/laya/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/nandhakishorm/laya
