Files
kryon/docs/FEATURE_MATRIX.md
T

3.3 KiB

Kryon feature matrix

This table describes the maintained Ziran library and hosts. Kryon is imported by a Ziran application; it is not a language or a built-in Ziran runtime. Ziran owns compilation and portable .zib execution. See ARCHITECTURE.md and BACKENDS.md for the module and host boundaries.

Library packages

Package Ziran source Native code generation Package verification
Core UI (src/ui) ✅ .zi modules listed in modules.txt and two public import modules ✅ C, C++, and Go generation in make ✅ make test builds the library and runs source, saved .zir, and .zib behavior tests
Plot (src/plot) ✅ optional .zi package ✅ C, C++, and Go generation in make plot ✅ imported by the terminal package project test
TableView and TreeView (src/data_views) ✅ optional .zi package ✅ C, C++, and Go generation in make data-views ✅ imported by the terminal package project test
KSS (src/kss) ✅ optional .zi package ✅ C, C++, and Go generation in make kss ✅ imported by the terminal package project test
Syntax (src/syntax) ✅ optional .zi package ✅ C, C++, and Go generation in make syntax ✅ imported by the terminal package project test

The generated C archive is a build output of Ziran source. Behavior tests use Ziran hosts in tests/*_host.zi. Code generation verifies that a module lowers for a target; it does not prove that every native host runs on that target.

Application hosts

Backend Implementation Input and presentation verification Current status
Terminal src/backend/terminal_run.zi Private PTY project test covers ASCII, UTF-8, invalid input, and escape sequences ✅ supported
Desktop src/backend/desktop_run.zi Private Xvfb project test covers image capture, keyboard, UTF-8 text, and wheel input ✅ supported on the tested Linux host
Raylib src/backend/raylib_run.zi Private Xvfb project test covers image capture and input ✅ supported on the tested Linux host
Libdraw src/backend/libdraw_run.zi Private Xvfb project test covers capture and input ✅ supported on the tested Linux host
Native Plan 9 libdraw src/backend/libdraw_native.zi plan9-c ABI fixture covers display setup, font loading, forced offscreen rendering, rectangles, text metrics, flush, capture, and cleanup 🧪 experimental raster provider; pointer input, image presentation, and a run profile remain pending
Web Canvas src/backend/canvas_run.zi Headless Chromium checks Canvas2D pixels, clips, input, textures, fonts, lifecycle, WebAudio, and file behavior ✅ supported through Emscripten on the tested browser
Web DOM src/backend/dom_run.zi Headless Chromium checks semantic tags, attributes, state, stable identity, and the hybrid Canvas raster layer 🧪 first semantic-DOM host; CSS-native layout and KSS export remain future work

The desktop, raylib, and libdraw project tests run separately with make desktop-project-test, make raylib-project-test, and make libdraw-project-test; they must use a private Xvfb display. The Canvas2D and semantic DOM project tests run in make test and launch only private headless Chromium.