Files
kryon/docs/site/docs.html
T
waozi 5dfe1c6717 Describe Kryon as fully on Ziran in its docs and site
Build instructions install the ziran command and use the toolchain locked
in ziran.lock instead of a ../ziran sibling checkout. Downstream apps pick up
Kryon changes through ziran.lock. Terminal owns OSC 52 and bracketed paste.
The website no longer calls the migration underway, and its status page
lists the Android host, Zib desktop apps and opt-in DOM CSS layout.

The obsolete files (shell.nix, .ini themes, old site images, the duplicate
API redirect) were removed in 827eae3d, which picked up these staged
deletions.
2026-10-11 10:12:56 -03:00

2 lines
6.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="theme-color" content="#f7f3eb"><meta name="description" content="Current Kryon documentation: the Ziran library boundary, widget modules, tested example, and platform hosts."><title>Kryon documentation</title><link rel="canonical" href="https://kryonlabs.com/docs.html"><link rel="icon" type="image/svg+xml" href="favicon.svg"><link rel="icon" type="image/png" sizes="32x32" href="favicon-32.png"><link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png"><meta property="og:image" content="https://kryonlabs.com/og.png"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta property="og:image:alt" content="Kryon Labs logo and the words Useful interfaces. Clear foundations."><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://kryonlabs.com/og.png"><link rel="stylesheet" href="current.css"><script defer src="current.js"></script></head><body><a class="skip-link" href="#main">Skip to content</a><header class="site-header"><div class="site-header-inner"><a class="brand" href="index.html"><img class="brand-icon" src="assets/brand/mark.svg" alt="" width="42" height="42"><span>Kryon Labs</span></a><button class="menu-button" type="button" aria-expanded="false" aria-controls="primary-nav">Menu</button><nav class="header-nav" id="primary-nav" aria-label="Primary"><a href="getting-started.html">Get started</a><a href="docs.html" aria-current="page">Docs</a><a href="showcase.html">Projects</a><a href="https://ziran.kryonlabs.com/">Ziran ↗</a><a href="https://github.com/kryonlabs/kryon">Source ↗</a><button class="theme-toggle" type="button" aria-label="Switch color theme"></button></nav></div></header><main id="main" class="article-layout"><div class="article-head"><p class="eyebrow">Documentation / Current architecture</p><h1>Kryon is a <em>library.</em></h1><p>The language, compiler, <code>.zir</code>, and <code>.zib</code> belong to Ziran. Kryon supplies reusable UI behavior through normal Ziran imports. This page describes the current development checkout; the public source branches may lag until their next sync.</p></div><div class="article-grid"><aside class="page-toc"><strong>Contents</strong><a href="#surface">Library surface</a><a href="#ownership">Ownership</a><a href="#evidence">Build evidence</a><a href="#references">Reference files</a></aside><div class="article-body"><section id="surface"><p class="eyebrow">01 / Modules</p><h2>What Kryon provides</h2><p>Maintained <code>src/ui/*.zi</code> modules cover geometry, layout, style values, accessibility, input and text editing, retained tree behavior, and selected widgets such as Button, TextField, TextArea, Image, Progress, Dropdown, TabBar, Slider, Checkbox, and Toggle. Each module is checked as Ziran code. The <a href="https://github.com/kryonlabs/kryon/blob/master/src/ui/modules.txt">module list</a> is the build inventory; feature behavior varies by host and target.</p><p>Widget APIs are ordinary declarations. The intended image surface is <code>Image(ImageProps)</code>; semantic images use its props and alt text. Host adapters implement platform effects without taking over widget decisions.</p></section><section id="ownership"><p class="eyebrow">02 / Boundary</p><h2>Where code belongs</h2><div class="api-list"><div><code>Ziran</code><p>Source language, parser, checker, laws, standard library, checked IR, native backends, bundle linker, verifier, and portable runtime.</p></div><div><code>Kryon</code><p>Widget composition, layout, styling, interaction, accessibility, rendering policy, and platform adapter interfaces written in <code>.zi</code>.</p></div><div><code>Applications</code><p>Product screens, workflows, and state. They import Kryon only where a UI is needed.</p></div></div></section><section id="evidence"><p class="eyebrow">03 / Verification</p><h2>Current build gates</h2><p><code>make</code> checks the maintained modules, writes saved IR, generates C, C++, and Go, and compiles native outputs. <code>make test</code> runs source, saved-IR, portable behavior, WebAudio, Wasm, and private headless Chromium tests without touching the desktop display. The <a href="getting-started.html">headless example</a> runs a retained Button through a portable bundle and an SVG host.</p><p>The terminal, desktop, raylib, and libdraw hosts are tested on Linux; Canvas2D and semantic DOM web hosts are tested in private headless Chromium; Android apps build as NativeActivity packages. Platform accessibility beyond the Linux AT-SPI bridge is still open. See <a href="renderers.html">platform status</a> and Ziran’s <a href="https://ziran.kryonlabs.com/status.html">language status</a>.</p></section><section id="references"><p class="eyebrow">04 / Source of truth</p><h2>Reference files</h2><div class="link-list"><a href="https://github.com/kryonlabs/kryon/blob/master/README.md"><strong>Kryon README</strong><span>Build, packages, and current status ↗</span></a><a href="https://github.com/kryonlabs/kryon/blob/master/docs/ARCHITECTURE.md"><strong>Architecture</strong><span>Repository boundary and host effects ↗</span></a><a href="https://github.com/kryonlabs/kryon/blob/master/docs/API.md"><strong>Public API</strong><span>Package imports and widget entry points ↗</span></a><a href="https://github.com/kryonlabs/kryon/blob/master/examples/README.md"><strong>Example</strong><span>Bundle and SVG host instructions ↗</span></a><a href="https://ziran.kryonlabs.com/api.html"><strong>Ziran API</strong><span>Toolchain, standard library, and host ABI ↗</span></a></div></section></div></div></main><footer><div class="footer-top"><a class="brand" href="index.html"><img class="brand-icon" src="assets/brand/mark.svg" alt="" width="42" height="42"><span>Kryon Labs</span></a><nav aria-label="Footer"><a href="getting-started.html">Get started</a><a href="docs.html">Docs</a><a href="showcase.html">Projects</a><a href="https://ziran.kryonlabs.com/">Ziran ↗</a></nav></div><div class="footer-bottom"><p>Useful interfaces. Clear foundations.</p><p>© 2026 Kryon Labs · <a href="https://waozi.xyz/">Made by Waozi</a></p></div></footer></body></html>