2026-08-29 22:35:05 -03:00
2026-07-11 22:37:50 -03:00
2026-06-09 21:30:17 -03:00

Kryon

Kryon is a UI library written in Ziran. Its source lives under src/ui/ and imports Ziran modules normally. The Ziran compiler, .zir representation, and .zib bundle format belong to the separate Ziran repository. Kryon has no .kry runtime or language compiler.

Build

For a fresh clone, place Ziran next to Kryon:

git clone https://github.com/kryonlabs/ziran.git ../ziran
make
make test

make checks the modules listed in src/ui/modules.txt, writes checked .zir, generates C, C++, and Go, and compiles the native outputs. The current C archive is build/ziran/libkryon.a; generated headers are in build/ziran/c/. Portable platform bindings are in build/ziran/libkryon_host.a: frame pacing maps to the selected backend's SetTargetFPS, and shared raster lines use a caller-supplied line renderer. make test also runs the Ziran source, saved-IR, and portable bundle tests. No display is started.

Migration status

The checked library currently covers geometry, layout, accessibility, focus, input and text input policy plus portable text-buffer edits and UTF-8 cursor boundaries, canvas transforms, scroll, menu, color picker, value based swipe gesture state and pointer ownership effects, Button, Checkbox, Slider, Toggle, Dropdown, Toolbar, TitleBar, NavigationBar, checked NavigationBar configuration editor composition, route editing, and keyboard selection, Bevel and Separator line rendering, material layers, theme, style values, built-in theme labels, and selected Image, Progress, checked ModalFrame layout, backdrop dismissal, title and close actions, checked ActionModal message layout, wrapped buttons, and dismissal, checked TreeView composition and row input from portable item values, checked PanedView composition and handle dragging with returned pane bounds, checked Toast lifetime, text truncation, layout, and paint, checked Collapsible header interaction and tree keyboard navigation, checked SegmentedControl layout, selection, and styled Button children, portable theme and orientation preference decisions, form row layout, app shell sizing, capability policy, safe area geometry, and window placement decisions. Other runtime and widget source has been moved into .zi files in src/ui/; those modules still need type, host interface, and backend work before they can join modules.txt.

The current archive includes selected widget behavior and shared line rendering path. Complete widget composition and rendering, remaining platform host adapters, full .zib capability execution, and downstream app builds are still migration work. The old C and Go host code is retained only as platform implementation material and is not part of the default build.

See docs/ARCHITECTURE.md for the intended library boundary and Ziran's implementation status for language and portable runtime gaps.

S
Description
Toolkit for visual and agent-assisted development of cross-platform apps.
https://kryonlabs.com Readme BSD-3-Clause
307 MiB
0 Stars 1 Watchers 0 Forks
Languages
Ziran 83.1%
Python 9.9%
Shell 4.2%
Makefile 0.8%
TypeScript 0.7%
Other 1.2%