Files
kryon/docs/FEATURE_MATRIX.md
T
waozi e2b0fbd891 Migrate Kryon UI composition to typed native TSX
Expose the native widget surface through ordinary typed TSX components and enforce application composition at generic export and entry boundaries. Migrate maintained screens, scaffolds, gallery publication and editor transport through the common checked IR path. Preserve native logic, retained component state, input and platform hosts; remove the pixmap application route.

Local validation: complete make push-check passed with published Ziran dc3ecf0a, including docs, public source/saved surface, private-display desktop input, native host links and Canvas input parity. Fresh CLI/player/desktop library installed and byte-verified. The full migration matrix records remaining owning suites, published consumer pins, platform runs and Alpha benchmarks; this is a source milestone, not completion of the full campaign.
2026-11-27 14:24:19 -03:00

2.6 KiB

Kryon feature matrix

This table describes the native Ziran library and hosts. Applications compose Kryon widgets in TSX and import Ziran application logic through checked native declarations. Ziran owns compilation and portable .zx 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 named package exports ✅ C and Go generation in make ✅ make test builds the library and runs source, saved .zir, and .zx behavior tests

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.

Core UI includes measured flex/grid layout (src/ui/layout.zi), the style sheet with structural selectors and sibling combinators (src/ui/style_tree.zi) and gradient box painting (src/ui/layout_paint.zi); the supported CSS subset and remaining browser-only features are documented in HTML_TO_KRYON.md.

Application hosts

Backend Implementation Input and presentation verification Current status
Terminal src/backend/frames_terminal.zi Private PTY project test covers ASCII, UTF-8, invalid input, and escape sequences ✅ supported
Desktop src/backend/frames_desktop.zi Private Xvfb project test covers image capture, keyboard, UTF-8 text, and wheel input ✅ supported on the tested Linux host
Web Canvas src/backend/frames_web.zi Headless Chromium checks WebGL2 pixels, clips, input, textures, fonts, lifecycle, WebAudio, and file behavior ✅ supported through Emscripten on the tested browser
Android TSX application entry + src/backend/android_run.zi tests/ziran_android_device_test.sh checks the device text, lifecycle, and inset protocol with the Java side stubbed; a manual emulator run verifies install, rendering, touch, and back ✅ supported through NativeActivity with direct ANativeWindow pixel presentation

The desktop project test (make desktop-project-test) uses a private Xvfb display. The canvas project test runs in make test and launches only private headless Chromium. make zx-window-test covers bare-window bundles through the native desktop player and host library. Code generation alone does not establish platform execution.