Laya for Go, Java, Elixir, Ruby and Zig

Beyond Python and JavaScript, the community has ported Laya to several other languages. Most run an ONNX export with ONNX Runtime, a few reimplement the model natively, and some are thin clients for a Python process or HTTP server.

68 projects

spring-laya

pgovindraj

Tracks planned Spring support for the Laya model in spring-ai-typesafe

0·GitHub repo

laya-tools

teamswyg

Implements a Go-based local Laya router for code search and experimental model selection

0·GitHub repo

laya-demo

mkhante

Provides a standalone Go server and client that embed native Laya inference

0·GitHub repo

laya-go-server

Djancyp

Serves Laya GGUF models through a local HTTP API built with Go and llama.cpp

0·GitHub repo

jgrep

rohit-burman

Provides a Go semantic grep CLI that scores text with a local Laya model

0·GitHub repo

dsh-laya-go-decision

Ling0727-ai

Registers a Laya Go decision server as tools in DeepSeek Harness

0·GitHub repo

the-new-turing-test

glowleaf

A Magic: The Gathering game harness tests Laya as a player

0·GitHub repo

laya-pixel-town

JohannesRabauer

A pixel-art town simulation lets Laya decide the daily actions of its residents

0·GitHub repo

decision-model-operator

maks3201

Manages Kubernetes deployment and rollout lifecycles for decision models served by Ollaya

0·GitHub repo

go-laya-mlx

eiri

Provides Go inference for the Laya model on Apple Silicon using MLX

0·GitHub repo

camunda-laya-connector

bpmforbusiness

Connects Camunda 8 BPMN service tasks to Laya's Jev-compatible decision API

0·GitHub repo

laya-springboot-starter

kelsonthony

Connects Spring Boot applications to a self-hosted Laya server for typed decisions

0·GitHub repo

mesa_de_credito_laya

AndrewMak

Orchestrates credit decisions using deterministic rules, a local Laya classifier, an LLM, and human review

0·GitHub repo

laya-agent

manishsharma004

Uses Laya to choose actions for a browser-control agent

0·GitHub repo

oracle-laya-system-one

loiclefevre

Runs the Laya System One ONNX model in Oracle AI Database using PL/SQL

0·GitHub repo

laya-showcase-android

Josh-Reimer

Runs the Laya typed-decision model locally in an Android showcase app

0·GitHub repo

pmax

will702

A Go Mac productivity CLI optionally uses an MLX/Laya sidecar for semantic search and improvement

0·GitHub repo

laya-zcode-stack

Ydjin1984

Runs a local Laya decision engine and ZCode plugin with MCP tools for coding-agent workflows

0·GitHub repo

demo-laya

denjossal

Demonstrates Spring Boot incident triage using a Python Laya service

0·GitHub repo

pLaya

McThizzin

A Go terminal client for running, comparing, and benchmarking decisions through a Laya server

0·GitHub repo

Go

laya-onnx (MstyAI) is a Go library and CLI on ONNX Runtime for macOS and glibc Linux:

go install github.com/MstyAI/laya-onnx/cmd/laya-onnx@latest
laya-onnx prepare

Preparation downloads about 819 MiB. laya-go (lengoman) (go get github.com/lengoman/laya-go) is a Go client that drives a Python laya sidecar or server. system-one-router is a Go LLM gateway that uses local Laya or Jev to pick a model.

Java

Laya4j runs the multilingual checkpoint through ONNX Runtime Java and needs Java 17+:

<dependency>
    <groupId>com.laya4j</groupId>
    <artifactId>laya4j-core</artifactId>
    <version>0.2.0</version>
</dependency>

It mirrors the Python presets (triage, guard, moderation, model router). The README reports 148 ms p50 for a 5-question predict on a Mac M4 CPU.

Elixir

laya_ex is a native Nx/Bumblebee runtime that downloads the official checkpoint on first load. It does not choose an Nx backend, so configure one, for example EMLX.Backend on Apple Silicon or EXLA.Backend on CPU and NVIDIA.

Ruby

ruby-laya is a port with a Router and a declarative Laya::Decision class, running on ONNX Runtime (Ruby 3.3+):

bundle add ruby-laya

laya (EduardoGHdez) is a smaller gem (gem "laya") that runs the receptron ONNX export on CPU.

Zig

zlaya is a CPU-only engine that can also build to WebAssembly. It needs Zig nightly:

zig build -Doptimize=ReleaseFast
sh scripts/download-model.sh models/laya
zig-out/bin/zlaya models/laya examples/triage.json

The README gives about 1.7 GiB of RAM for loading and inference. laya-zig is a dependency-free Zig runtime for the multilingual model, and its author labels it a work in progress.

Caveats

These are independent community projects with different maturity levels. Check each one's parity tests against the Python reference before relying on its probabilities.

More ways to use Laya