Kryon

KRYON

The Network-Native UI Cartridge System

Define UIs in .kry • Compile to .krb • Control via CoAP

What is Kryon?

Kryon is a UI cartridge system — portable bytecode for user interfaces. Write UI definitions in a path-based VFS language, compile to portable bytecode, and control properties over the network via CoAP.

A single .krb file runs on ESP32, Plan 9, Linux, Android, and in the browser. Control your entire UI through simple file operations on network paths.

Core Features

Path

Path-Based VFS

Every value is a file path

Package

Portable Bytecode

Compile to .krb, run anywhere

Network

Network-Native

Control via CoAP, HTTP, MQTT

Minimal

Minimal

Under 1KB for typical UIs

Philosophy

Platforms

Kryon runtimes are available for multiple platforms:

Linux

Linux

Native Linux support

Plan 9

Plan 9

Native Plan 9 support

Android

Android

Full runtime support

Browser

Browser

WebAssembly runtime

ESP32

ESP32

Microcontroller support

Get Started

Get the Kryon compiler and runtime:

git clone https://git.sr.ht/~waozi/kryon
cd kryon
make

A simple .kry file:

. app [
    = label "hi"
    > label :sys.cons
    @ :sys.time.tick [
        ? 1000 [
            > :app.label :sys.cons
        ]
    ]
]

Compile to bytecode:

./k2b example.kry -o example.krb

Run with the renderer:

./kray example.krb

Documentation

Full documentation is available at:

Sponsors

5bitcube