Files
kryon/docs/site/getting-started.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

7 lines
4.7 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="Build Kryon with Ziran and run the maintained headless Button example through a portable bundle and SVG host."><title>Get started with Kryon</title><link rel="canonical" href="https://kryonlabs.com/getting-started.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" aria-current="page">Get started</a><a href="docs.html">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">Get started / Tested example</p><h1>Build Kryon with <em>Ziran.</em></h1><p>The current example is headless: a checked Ziran application imports Kryon widgets, runs four pointer frames, and writes an SVG without opening a window. The linked source and tests are maintained on the repositories’ master branches.</p></div><div class="article-grid"><aside class="page-toc"><strong>Steps</strong><a href="#clone">Clone</a><a href="#build">Build</a><a href="#example">Run example</a><a href="#next">Next</a></aside><div class="article-body"><section id="clone"><p class="eyebrow">01 / Repositories</p><h2>Install Ziran, then clone Kryon</h2><pre><code>git clone https://github.com/ziranlang/ziran.git
make -C ziran install-user
git clone https://github.com/kryonlabs/kryon.git
cd kryon</code></pre><p><code>make install-user</code> puts the <code>ziran</code> command in <code>~/.local/bin</code>. Kryon’s build uses the Ziran revision locked in <code>ziran.lock</code>; set <code>ZIRAN_ROOT</code> to build against another checkout.</p></section><section id="build"><p class="eyebrow">02 / Library</p><h2>Build and check</h2><pre><code>make
make test</code></pre><p>The build emits checked <code>.zir</code>, C, C++, Go, and native archives for maintained modules. The test gate includes portable behavior and starts no display.</p></section><section id="example"><p class="eyebrow">03 / Application</p><h2>Run the example</h2><pre><code>make -C examples
make -C examples test</code></pre><p>The example writes <code>build/examples/ziran/hello.svg</code> with idle, pressed, released, and clicked frames. Its tests compare source and saved-IR bundles and verify one click changes the label.</p><p><a class="text-link" href="https://github.com/kryonlabs/kryon/blob/master/examples/hello.zi">Read the Ziran source ↗</a></p></section><section id="next"><p class="eyebrow">Continue</p><h2>Know the current boundary</h2><p>This headless path demonstrates the intended library and host split. Applications with a window use the terminal, desktop, raylib, libdraw, browser, or Android hosts listed on the <a href="renderers.html">platform status</a> page. For language syntax, start with the <a href="https://ziran.kryonlabs.com/docs.html">Ziran guide</a>; for Kryon internals, use the <a href="docs.html">library docs</a>.</p></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>