Use Laya from Node.js
You can run Laya inside a Node.js process with ONNX Runtime, or keep the model in a separate server and call it over HTTP. Both routes use the same state-plus-typed-questions request shape as the Python package and the Jev API.
378 projects
laya-btc-decision-console
avtandilkasparov-debug
Measures Laya decision latency and compares paper-trading strategies in a local dashboard
naver-laya-mail-triage
KOJH-archive
Classifies Naver email locally with Laya and provides review and triage tools
kev-and-laya-experiment
HendrikPetertje
Provides web experiments for testing choice and scoring decisions with Laya or a compatible backend
beebots
kazakhan
Runs Coinbase spot-trading agents with recorded model decisions and hourly Laya-based self-review
pi-laya-classify
catanomad
Registers Laya classifier models in Pi through a self-hosted server and TypeScript client
jev-laya-lab
luoshuai990529
Compares Jev and locally hosted Laya on decision accuracy, answer distributions, and task completion time
dsh-laya-go-decision
Ling0727-ai
Registers a Laya Go decision server as tools in DeepSeek Harness
@web4kit/decider-laya
shadyfast8
Runs the open Laya System One model offline in-process using ONNX Runtime
@heryox/ped
heryox
Runs Laya System 1 decision models from Node.js and TypeScript using ONNX Runtime
pi-reflex
GitHub Actions
Provides a pure TypeScript runtime for Laya checkpoints with conformal prediction guarantees
gz-laya-pilot
somedayyoung
Provides a TypeScript browser-testing runtime that uses Laya decisions for exploration and replay
laya
mpjivdc
Provides a multilingual, non-autoregressive model for typed text decisions with Python and TypeScript interfaces
laya-react
dungdq4
Implements a React demo of Laya's typed decision patterns for routing, filtering, and moderation
Laya-Emotion-Detector
alilazo
Tracks emotion signals in local conversations using Laya to score emotion intensity
jev-laya-dsh
alexdoandev
Adds a local Laya decision layer for routing prompts and gating risky agent actions
pi-llama-decision
hanouticelina
A pi extension runs llama.cpp decision models as classifiers, including Laya GGUF
ai-frontend-guide-kit
urben88
Provides a reusable UI catalog and guided workflow with optional local Laya ranking
laya-pii-bench
dfridkin
Benchmarks the open-weight Laya model as a local PII classifier on synthetic clinical-trial documents
laya-trader
zakanysa
Tests Laya-driven trading strategies on an on-chain order book and evaluates their real costs
laya-playground
lowaa
Provides evaluation scripts and a local web playground for a running Laya server
convents
skorotkiewicz
Coordinates LLM proposals and critiques, then uses Laya to select and synthesize a final response
LAIA
HackathonYeti
A multilingual desktop app transcribes consultations locally and uses Laya for health decision support
jev-router-mcp
humayunkabir
An MCP server routes questions to tools through a Jev-compatible decision engine, including Laya
Tone-Checker
AkmalDV
A local Laya-powered backend and dashboard evaluate custom conversation cases
In-process: @receptron/laya
@receptron/laya runs the model with ONNX Runtime, so neither Python nor PyTorch is needed at runtime. It requires Node.js 20 or newer.
npm install @receptron/laya
import { Laya } from "@receptron/laya";
const laya = await Laya.load();
const result = await laya.systemOne(
{ subject: "Refund not received", body: "I cancelled two weeks ago and still have no refund..." },
{
department: {
type: "choice",
instructions: "Which team should handle this ticket?",
criteria: { billing: "payments, refunds, invoices", support: "product help and bugs", sales: "new purchases" },
},
churn_risk: { type: "noul", instructions: "Is the customer likely to cancel or dispute?" },
},
);
result.answers.department.choice; // "billing"
await laya.close();
Per its README, the fp32 ONNX weights are about 1.7 GB and download on first use. Budget roughly 2 GB of RAM. A three-question call takes about 140 ms on an Apple Silicon CPU once warm, and the output matches the Python implementation to four decimal places. The package is MIT-licensed; the weights are Apache 2.0.
Over HTTP: laya-studio
laya-studio is a zero-dependency TypeScript client for a running Laya server (Node.js 18.17+):
npm install laya-studio
pip install "laya[serve]"
laya-serve # binds 0.0.0.0:8000
Other JavaScript projects
- @r4ai/laya-web: ONNX Runtime Web runtime for browsers and Node.js.
- kevala: a Rust engine compiled to WebAssembly with WebGPU kernels, installable from npm.
- gg-friggin-ez: a profanity and toxicity screener that defaults to Jev and can point at a local Laya endpoint.
Caveats
The English checkpoint's options must fit a 192-token budget and the state is cut at 512 tokens. The receptron README recommends fewer than about 20 options per choice question.
More ways to use Laya