Files
kryon/docs/BOUNDARIES.md
T

1.3 KiB

Repository boundaries

Owner Code and data
Ziran Language, compiler, standard library, .zir, .zx, and generic host capabilities
Kryon Reusable Ziran UI modules, widget decisions, and UI hosts
Game2D Optional game API and game behavior using Kryon's selected raylib backend
Applications Screens, copy, translations, assets, data storage, migrations, and product workflows

Kryon is imported by applications. It is not linked into programs that never import it, and the Ziran compiler does not special case widgets. A generic capability missing from the language belongs in Ziran. A reusable UI choice belongs in Kryon. A product-specific behavior belongs in the application.

Kryon's graphical host owns platform windows, input events, and presentation. Its widget modules own focus, pointer capture, layout, semantics, and paint decisions. The host may call native libraries through declared Ziran foreign bindings, but must not duplicate widget policy.

Make upstream Kryon changes on master and commit them there. A downstream app picks them up by updating its ziran.lock, or, if it still vendors Kryon, by moving its clean vendor/kryon submodule pointer. Never edit Kryon's source inside an application. See ARCHITECTURE.md for source modules and PROJECTS.md for package use.