madewithlaya

Catalog / Tools & apps

0065GitHub

kevala: Laya and Kev in any web page, zero-dependency Rust to WebAssembly with WebGPU

One import, no server. Dependency-free Rust compiled to Wasm with WebGPU kernels; pulls a pinned int8 pack from Hugging Face and keeps it in the browser. Live Tetris included.

Open source ↗ github.comcostfree, nothing leaves the tabtime-
bvolpato/kevalaREADME ↗
kevala</h1>

<p align="center"><b>Ask questions about text with Laya, Kev, H2O-Lightning, Clef-flash, SemIf, and Gemma 4 running on the user's own hardware.</b></p>

<p align="center">
  <a href="https://bvolpato.github.io/kevala/#/tetris"><img src="docs/tetris.gif" alt="Model-guided Tetris running in the browser: game rules shortlist promising landings, a decision model scores them, and the piece follows the chosen path" width="760"></a>
</p>

<p align="center">
  <a href="https://bvolpato.github.io/kevala/">Live site</a> ·
  <a href="https://bvolpato.github.io/kevala/#/playground">Playground</a> ·
  <a href="https://bvolpato.github.io/kevala/#/tetris">Tetris</a> ·
  <a href="https://www.npmjs.com/package/kevala">npm</a> ·
  <a href="examples/">Examples</a> ·
  <a href="docs/architecture.md">How it works</a>
</p>

kevala runs [Laya](https://huggingface.co/convaiinnovations/laya),
[Kev](https://github.com/jaredpalmer/kev) v1.0, [H2O-Lightning-4B](https://huggingface.co/h2oai/h2o-lightning-4b),
[Cloudflare Clef-flash](https://huggingface.co/Cloudflare/clef-flash), frozen Qwen3.5 models, and
[Gemma 4](docs/gemma4.md) with [SemIf option scoring](docs/models.md#how-semif-scoring-works)
inside the browser.
You give it text or JSON and typed questions (`noul` for yes/no, `choice`, `score`), and it scores
the options without generating an answer token by token. There is no model server, no API key,
and no data leaving the tab.
Gemma 4 E2B also accepts images when you load its compatible vision companion on WebGPU.

The engine is Rust with zero dependencies, compiled to WebAssembly, plus WebGPU kernels written for
these models. The browser runtime is a few plain ES modules. Existing Laya, SemIf, and Gemma packs
download from [Hugging Face](https://huggingface.co/bvolpato/kevala

Also filed under Tools & apps

  1. 0005

    laya-mlx plays Snake at 60 decisions per second★

    介绍比Jev快50倍,在你设备上跑的laya-mlx! 只在你的设备上占用最高1G内存 Laya是一个开源的类似于Jev的,基于文本输出概率的分类系统 我将其移植到MLX,并且做了一些性能优化! 视频中就是这个模型在我的本地M3Max上玩贪吃蛇 这个模型能够以每秒决策60次的速度玩贪吃蛇! https://t.co/31KGUiNunb

    @mizorewww · Tools & apps · free, local · 60 decisions/s

  2. 0112

    Laya on Axera AX650 and AX8850 edge NPUs, under 70 ms

    AXERA-TECH's conversion of all three Laya checkpoints for its edge AI chips, reported at latency under 70 ms per decision on AX650/AX8850.

    AXERA-TECH · Tools & apps · free, on-device · < 70 ms on AX650 / AX8850

  3. 0099

    laya-mcp (PerryLink): a warm sidecar that fixes Laya's silent truncation and constant noul

    MCP server plus HTTP sidecar: token-budget preflight that reports what would be cut, a persisted calibration store, structured errors, and a noul fix (P(true) 0.5 → 1.0).

    @PerryLink · Tools & apps · free, local

  4. 0097

    Gomoku against Laya-MLX: you play black, the model picks white's move from six candidates

    Local 15x15 Gomoku on Apple Silicon. Rules in Python, board in the browser, every AI move one real Laya choice over up to six candidates, probabilities shown. No Gomoku training.

    smile-magic · Tools & apps · free, local