495 lines
24 KiB
HTML
495 lines
24 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>Kryon — a UI runtime that's alive</title>
|
||
<meta name="description" content="Kryon is a native declarative UI and app runtime. Write .kry, lower to debuggable KIR, and ship readable C99 or portable KRB cartridges.">
|
||
<meta property="og:type" content="website">
|
||
<meta property="og:url" content="https://kryonlabs.com/">
|
||
<meta property="og:title" content="Kryon — a UI runtime that's alive">
|
||
<meta property="og:description" content="Native declarative UI and app runtime. Write .kry, inspect KIR, ship C99 or portable KRB cartridges.">
|
||
<meta name="twitter:card" content="summary_large_image">
|
||
<meta name="twitter:url" content="https://kryonlabs.com/">
|
||
<meta name="twitter:title" content="Kryon — a UI runtime that's alive">
|
||
<meta name="twitter:description" content="Native declarative UI and app runtime. Write .kry, inspect KIR, ship C99 or KRB.">
|
||
<meta name="twitter:site" content="@kryonlabs">
|
||
<meta name="twitter:creator" content="@kryonlabs">
|
||
<meta name="theme-color" content="#f3f1ea">
|
||
<meta name="keywords" content="Kryon,declarative UI,native UI,C99,Flutter alternative,Godot alternative,Electron alternative,.kry,raylib-style,Krait,cross-platform,UI runtime,app runtime">
|
||
<link rel="icon" type="image/png" sizes="16x16" href="icons/kryon.png">
|
||
<link rel="apple-touch-icon" href="icons/kryon.png">
|
||
<link rel="stylesheet" href="styles.css">
|
||
<script type="application/ld+json">
|
||
{
|
||
"@context": "https://schema.org",
|
||
"@type": "SoftwareApplication",
|
||
"name": "Kryon",
|
||
"description": "Native declarative UI and app runtime. Write .kry, inspect KIR, ship readable C99 or portable KRB cartridges.",
|
||
"url": "https://kryonlabs.com",
|
||
"applicationCategory": "DeveloperApplication",
|
||
"operatingSystem": "Linux, Windows, macOS, Android, Browser, FreeBSD",
|
||
"offers": {"@type": "Offer", "price": "0", "priceCurrency": "USD"},
|
||
"author": {"@type": "Organization", "name": "Kryon Labs", "url": "https://kryonlabs.com"}
|
||
}
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<header class="site-header">
|
||
<div class="site-header-inner">
|
||
<a class="brand" href="#top">
|
||
<img src="icons/kryon.png" alt="Kryon" width="22" height="22">
|
||
<span>KRYON</span>
|
||
</a>
|
||
<button class="menu-toggle" type="button" aria-label="Open site menu" aria-expanded="false" aria-controls="header-nav">Menu</button>
|
||
<nav class="header-nav" id="header-nav" aria-label="Primary">
|
||
<a href="#features">Features</a>
|
||
<a href="#why">Why</a>
|
||
<a href="#apps">Showcase</a>
|
||
<a href="#platforms">Platforms</a>
|
||
<a href="language.html">Language</a>
|
||
<a href="matrices.html">Matrices</a>
|
||
<a href="renderers.html">Renderers</a>
|
||
<a href="#start">Docs</a>
|
||
<a href="/api">API</a>
|
||
<a href="ide.html">Web IDE</a>
|
||
<a class="is-external" href="https://krait.kryonlabs.com">Krait ↗</a>
|
||
<a class="star-pill" href="https://github.com/kryonlabs/kryon" target="_blank" rel="noopener">★ <span class="count">GitHub</span></a>
|
||
<a class="btn btn-primary" href="#start">Get started</a>
|
||
</nav>
|
||
</div>
|
||
</header>
|
||
|
||
<main id="top">
|
||
<section class="hero">
|
||
<div class="hero-inner">
|
||
<span class="hero-eyebrow"><span class="dot"></span>Native declarative UI · KIR · C99 · KRB</span>
|
||
<img class="hero-icon" src="icons/kryon.png" width="84" height="84" alt="Kryon">
|
||
<h1>A UI runtime that's <span class="accent">alive</span>.</h1>
|
||
<p class="hero-sub">One source model for desktop, mobile, browser, and embedded. Write <code>.kry</code>, lower to debuggable KIR, then ship readable C99 or portable KRB cartridges for Kryon renderers.</p>
|
||
<div class="hero-cta">
|
||
<a class="btn btn-primary" href="#start">Get started</a>
|
||
<a class="btn" href="ide.html">Open Web IDE</a>
|
||
<a class="btn" href="https://krait.kryonlabs.com">Try in Krait →</a>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="hero-panel" aria-hidden="true">
|
||
<div class="hero-panel-bar">
|
||
<span class="tl"></span><span class="tl"></span><span class="tl"></span>
|
||
<span class="title">app.kry — KIR — C/KRB</span>
|
||
</div>
|
||
<div class="hero-panel-body">
|
||
<div class="pane">
|
||
<div class="pane-label">app.kry</div>
|
||
<pre><code>#import "kryon.h"
|
||
|
||
AppHome :: (app: InbeApp*) {
|
||
y: int = ScaleUIPx(24)
|
||
Text("Inner Breeze", ScaleUIPx(20), y, UI_TEXT_24)
|
||
BottomNav(app->bottom_nav)
|
||
}</code></pre>
|
||
</div>
|
||
<div class="pane">
|
||
<div class="pane-label">portable pipeline</div>
|
||
<pre><code>k2ir app.kry
|
||
k2c app.kir # native C
|
||
k2b app.kir # portable cartridge
|
||
krait app.krb # inspect and render</code></pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="replaces">
|
||
<div class="label">A full replacement for</div>
|
||
<div class="pills">
|
||
<span class="pill"><span class="x">×</span> Flutter</span>
|
||
<span class="pill"><span class="x">×</span> Godot UI</span>
|
||
<span class="pill"><span class="x">×</span> Electron</span>
|
||
<span class="pill"><span class="x">×</span> agent harnesses</span>
|
||
<span class="pill"><span class="x">×</span> heavy web frameworks</span>
|
||
</div>
|
||
</section>
|
||
|
||
<section id="features">
|
||
<p class="section-eyebrow">Features</p>
|
||
<h2>One source, every platform</h2>
|
||
<p class="section-lead">The runtime owns the whole UI lifecycle: build the widget tree, reconcile state, layout nodes, route input, render, and draw overlays. You describe intent; Kryon handles ordering, focus, inspection, and overlay behavior.</p>
|
||
|
||
<div class="tabs" data-tabs>
|
||
<div class="tablist" role="tablist" aria-label="Kryon feature showcase">
|
||
<button type="button" role="tab" id="tab-1" aria-selected="true" aria-controls="tp-1">Declarative .kry</button>
|
||
<button type="button" role="tab" id="tab-2" aria-selected="false" aria-controls="tp-2" tabindex="-1">KIR pipeline</button>
|
||
<button type="button" role="tab" id="tab-3" aria-selected="false" aria-controls="tp-3" tabindex="-1">Live preview</button>
|
||
<button type="button" role="tab" id="tab-4" aria-selected="false" aria-controls="tp-4" tabindex="-1">Source-aware</button>
|
||
</div>
|
||
|
||
<div class="tabpanel is-active" id="tp-1" role="tabpanel" aria-labelledby="tab-1">
|
||
<h3>Declarative .kry source</h3>
|
||
<p>Pages and reusable widgets stay in concise source files with explicit typed variables, node declarations, and direct compiler errors for unknown syntax.</p>
|
||
<pre><code>#import "kryon.h"
|
||
|
||
Counter :: (state: *CounterState) {
|
||
col {
|
||
Text("Count: " + to_string(state->n))
|
||
Button("Increment") {
|
||
state->n += 1
|
||
}
|
||
}
|
||
}</code></pre>
|
||
</div>
|
||
|
||
<div class="tabpanel" id="tp-2" role="tabpanel" aria-labelledby="tab-2" hidden>
|
||
<h3>One KIR, two outputs</h3>
|
||
<p>The frontend resolves <code>.kry</code> into KIR once. <code>k2c</code> emits readable C for native apps; <code>k2b</code> emits portable KRB cartridges for renderers.</p>
|
||
<pre><code>k2ir counter.kry
|
||
k2c counter.kir
|
||
k2b counter.kir</code></pre>
|
||
</div>
|
||
|
||
<div class="tabpanel" id="tp-3" role="tabpanel" aria-labelledby="tab-3" hidden>
|
||
<h3>Live preview in Krait</h3>
|
||
<p>Edit a <code>.kry</code> file and see the running app update inside the IDE. Krait compiles to an app host, loads it into the embedded viewport, and keeps preview state across reloads.</p>
|
||
<pre><code># edit app.kry, save, watch it reload
|
||
$ krait --dev run my-app</code></pre>
|
||
</div>
|
||
|
||
<div class="tabpanel" id="tp-4" role="tabpanel" aria-labelledby="tab-4" hidden>
|
||
<h3>Source-aware inspection</h3>
|
||
<p>Preview widgets carry source metadata, so an inspection click selects the generated UI element and opens the exact <code>.kry</code> line. The tree <em>is</em> the inspector.</p>
|
||
<pre><code>// click a node in preview → jump to source
|
||
AppHome: app.kry:7
|
||
Text("Inner Breeze") app.kry:9
|
||
BottomNav(...) app.kry:10</code></pre>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section id="why">
|
||
<p class="section-eyebrow">Why Kryon</p>
|
||
<h2>Native first, alive by default</h2>
|
||
<p class="section-lead">Everything visible is a node. Source stays primary. KIR keeps the compiler debuggable, C keeps native integration direct, and KRB opens a portable renderer path.</p>
|
||
<div class="why-grid">
|
||
<article class="why-card">
|
||
<h3>Alive by default</h3>
|
||
<p>Live preview, hot reload, and source-aware inspection are part of the runtime — not a bolted-on dev server.</p>
|
||
</article>
|
||
<article class="why-card">
|
||
<h3>Everything is a node</h3>
|
||
<p>Source, bounds, state, focus, and inspection all belong to the widget tree. One model for the whole UI.</p>
|
||
</article>
|
||
<article class="why-card">
|
||
<h3>Source stays primary</h3>
|
||
<p><code>.kry</code> files own screens and reusable UI pieces. KIR is the source-mapped compiler truth; C and KRB are outputs.</p>
|
||
</article>
|
||
<article class="why-card">
|
||
<h3>Small native surface</h3>
|
||
<p>Only exported functions enter generated headers, so build boundaries stay tiny and dependency-free.</p>
|
||
</article>
|
||
<article class="why-card">
|
||
<h3>Predictable runtime</h3>
|
||
<p>Direct C where native integration matters, portable KRB where renderer portability matters, and explicit imports between them.</p>
|
||
</article>
|
||
<article class="why-card">
|
||
<h3>Real product UI</h3>
|
||
<p>Layout, text, inputs, navigation, overlays, inspection, themes, and runtime assets — covered out of the box.</p>
|
||
</article>
|
||
</div>
|
||
</section>
|
||
|
||
<section id="showcase">
|
||
<p class="section-eyebrow">Compiler Pipeline</p>
|
||
<h2>One frontend, native and portable backends</h2>
|
||
<p class="section-lead">Kryon lowers <code>.kry</code> into debuggable KIR, then emits readable C for native applications or compact KRB cartridges for portable renderers.</p>
|
||
<div class="showcase">
|
||
<div class="col">
|
||
<div class="col-head"><span>app.kry</span><span class="badge">source</span></div>
|
||
<pre><code>#import "kryon.h"
|
||
|
||
Greeting :: (name: string) {
|
||
row {
|
||
Icon(ICON_ROCKET)
|
||
Text("Hello, " + name)
|
||
}
|
||
}</code></pre>
|
||
</div>
|
||
<div class="col">
|
||
<div class="col-head"><span>outputs</span><span class="badge">C / KRB</span></div>
|
||
<pre><code>Greeting.kir
|
||
source spans
|
||
widget tree
|
||
event logic
|
||
imports
|
||
|
||
Greeting.c # native backend
|
||
Greeting.krb # portable cartridge</code></pre>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section id="apps">
|
||
<p class="section-eyebrow">Showcase</p>
|
||
<h2>Inner Breeze is a real app target</h2>
|
||
<p class="section-lead">Inner Breeze is where Kryon is exercised as an application stack: calm practice flows, native packaging, web delivery, local-first history, and a UI large enough to keep the toolchain honest.</p>
|
||
<div class="app-showcase">
|
||
<div class="app-showcase-copy">
|
||
<span class="app-kicker">Breathing, meditation, habits</span>
|
||
<h3>Built to prove the workflow beyond demos</h3>
|
||
<p>Use the live project as a reference point for Kryon and Krait work: app screens, generated C, platform packages, browser builds, and product polish all meet in one codebase.</p>
|
||
<div class="app-actions">
|
||
<a class="btn btn-primary" href="https://inbe.waozi.xyz" target="_blank" rel="noopener">Open Inner Breeze</a>
|
||
<a class="btn" href="https://github.com/waozixyz/inbe" target="_blank" rel="noopener">View source</a>
|
||
</div>
|
||
</div>
|
||
<div class="app-showcase-preview" aria-label="Inner Breeze app preview">
|
||
<div class="phone-shell">
|
||
<div class="phone-top"></div>
|
||
<div class="phone-screen">
|
||
<div class="breath-ring">
|
||
<span></span>
|
||
</div>
|
||
<div class="breath-copy">
|
||
<strong>Inner Breeze</strong>
|
||
<span>guided breathing</span>
|
||
</div>
|
||
<div class="session-list">
|
||
<span></span>
|
||
<span></span>
|
||
<span></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section id="platforms">
|
||
<p class="section-eyebrow">Platforms</p>
|
||
<h2>One source, the targets apps ship to</h2>
|
||
<p class="section-lead">The same interface source builds for the environments real apps ship to — no platform-specific forks of your UI code.</p>
|
||
<div class="platform-grid">
|
||
<article class="platform">
|
||
<img src="platforms/droid.png" width="32" height="32" alt="">
|
||
<h3>Android</h3>
|
||
<p>Mobile runtime and KRB host capabilities.</p>
|
||
</article>
|
||
<article class="platform">
|
||
<img src="platforms/ios.png" width="32" height="32" alt="">
|
||
<h3>iOS</h3>
|
||
<p>Mobile renderer through the portable runtime contract.</p>
|
||
</article>
|
||
<article class="platform">
|
||
<img src="platforms/esp32.png" width="32" height="32" alt="">
|
||
<h3>ESP32</h3>
|
||
<p>Small KRB renderers with constrained capability sets.</p>
|
||
</article>
|
||
<article class="platform">
|
||
<img src="platforms/microcontroller.png" width="32" height="32" alt="">
|
||
<h3>Microcontrollers</h3>
|
||
<p>Embedded targets for draw primitives, input, timers, and storage.</p>
|
||
</article>
|
||
<article class="platform">
|
||
<img src="platforms/tux.png" width="32" height="32" alt="">
|
||
<h3>Linux</h3>
|
||
<p>Native C builds and KRB renderers.</p>
|
||
</article>
|
||
<article class="platform">
|
||
<img src="platforms/win.png" width="32" height="32" alt="">
|
||
<h3>Windows</h3>
|
||
<p>Native C builds and KRB renderers.</p>
|
||
</article>
|
||
<article class="platform">
|
||
<img src="platforms/macos.png" width="32" height="32" alt="">
|
||
<h3>macOS</h3>
|
||
<p>Native C builds and KRB renderers.</p>
|
||
</article>
|
||
<article class="platform">
|
||
<img src="platforms/freebsd.png" width="32" height="32" alt="">
|
||
<h3>FreeBSD</h3>
|
||
<p>Native desktop, servers, and embedded targets.</p>
|
||
</article>
|
||
<article class="platform">
|
||
<img src="platforms/plan9.png" width="32" height="32" alt="">
|
||
<h3>Plan 9</h3>
|
||
<p>Portable runtime target with a small native host layer.</p>
|
||
</article>
|
||
<article class="platform">
|
||
<img src="platforms/browser.png" width="32" height="32" alt="">
|
||
<h3>Browser</h3>
|
||
<p>Browser renderer, WASM logic, and KRB preview.</p>
|
||
</article>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="callout">
|
||
<div class="callout-inner">
|
||
<p class="section-eyebrow">Krait</p>
|
||
<h2>Build it in Krait</h2>
|
||
<p>Krait is the standalone first-party Kryon IDE — source editing, KIR inspection, KRB cartridge preview, live native preview, and diagnostics in one loop. It's written in <code>.kry</code>, so the IDE is its own research path.</p>
|
||
<a class="btn btn-primary" href="https://krait.kryonlabs.com">Visit krait.kryonlabs.com →</a>
|
||
<a class="btn" href="ide.html">Open Web IDE →</a>
|
||
</div>
|
||
</section>
|
||
|
||
<section id="start">
|
||
<p class="section-eyebrow">Get started</p>
|
||
<h2>Build the runtime and tools</h2>
|
||
<p class="section-lead">Kryon is free and open source. Clone, build, and install in a few commands.</p>
|
||
<p>Build the runtime:</p>
|
||
<pre><code>git clone https://github.com/kryonlabs/kryon.git
|
||
cd kryon
|
||
make
|
||
make install</code></pre>
|
||
<p>The clean compiler tool direction:</p>
|
||
<pre><code>k2ir app.kry
|
||
k2c app.kry # or app.kir
|
||
k2b app.kry # or app.kir</code></pre>
|
||
<p>A simple <code>.kry</code> shape:</p>
|
||
<pre><code>#import "kryon.h"
|
||
|
||
AppHome :: (app: InbeApp*) {
|
||
y: int = ScaleUIPx(24)
|
||
|
||
Text("Inner Breeze", ScaleUIPx(20), y, UI_TEXT_24)
|
||
BottomNav(app->bottom_nav)
|
||
}</code></pre>
|
||
<p>Open a project in Krait:</p>
|
||
<pre><code>git clone https://github.com/kryonlabs/krait.git
|
||
cd krait
|
||
gmake run ARGS=/path/to/project</code></pre>
|
||
|
||
<h2 id="docs" style="margin-top: 40px;">Documentation</h2>
|
||
<ul class="link-list">
|
||
<li><strong><a href="/api">API reference</a></strong> — runtime, node, and widget surface</li>
|
||
<li><strong><a href="language.html">Kry language reference</a></strong> — source syntax, KIR lowering, compile-time checks, and backend contracts</li>
|
||
<li><strong><a href="matrices.html">Widget and language matrices</a></strong> — frontend, compiler, and widget coverage</li>
|
||
<li><strong><a href="renderers.html">Renderer matrices</a></strong> — surface backends, KRB hosts, and native Linux backend direction</li>
|
||
<li><strong><a href="benchmarks.html">Benchmarks</a></strong> — generated text-input and lowering performance summaries</li>
|
||
<li><strong><a href="https://github.com/kryonlabs/kryon" target="_blank" rel="noopener">Source repository</a></strong> — code, issues, and releases</li>
|
||
<li><strong><a href="https://github.com/kryonlabs/krait" target="_blank" rel="noopener">Krait repository</a></strong> — first-party IDE</li>
|
||
<li><strong><a href="https://discord.gg/ep7gCWzHJD" target="_blank" rel="noopener">Discord</a></strong> — chat, help, and showcase</li>
|
||
<li><strong><a href="https://t.me/kryonlabs_com" target="_blank" rel="noopener">Telegram</a></strong> — news and announcements</li>
|
||
</ul>
|
||
</section>
|
||
|
||
<section id="faq">
|
||
<p class="section-eyebrow">FAQ</p>
|
||
<h2>Questions</h2>
|
||
<div class="faq">
|
||
<details class="faq-item">
|
||
<summary>What is Kryon? <span class="chev">›</span></summary>
|
||
<div class="faq-a"><p>Kryon is a native app development stack built around <code>.kry</code> source files, debuggable KIR, readable C output, portable KRB cartridges, and a small runtime. You write intent; the runtime handles the UI lifecycle.</p></div>
|
||
</details>
|
||
<details class="faq-item">
|
||
<summary>How is Kryon different from Flutter? <span class="chev">›</span></summary>
|
||
<div class="faq-a"><p>Flutter ships a Dart VM and its own rendering layer. Kryon keeps native C as a first-class backend and adds KRB as a portable cartridge path with explicit host capabilities. The same source can target desktop, mobile, browser, and embedded renderers.</p></div>
|
||
</details>
|
||
<details class="faq-item">
|
||
<summary>How is it different from Godot's UI? <span class="chev">›</span></summary>
|
||
<div class="faq-a"><p>Godot is a game engine with UI controls. Kryon is a dedicated app UI runtime — the widget tree owns layout, input routing, focus, overlays, and source-aware inspection for building product interfaces, not just game HUDs.</p></div>
|
||
</details>
|
||
<details class="faq-item">
|
||
<summary>What is a .kry file? <span class="chev">›</span></summary>
|
||
<div class="faq-a"><p>A concise declarative source file describing pages and reusable widgets with explicit typed variables and node declarations. The frontend lowers each file into KIR, then backends emit readable C or portable KRB.</p></div>
|
||
</details>
|
||
<details class="faq-item">
|
||
<summary>Is Kryon free? <span class="chev">›</span></summary>
|
||
<div class="faq-a"><p>Yes — Kryon and Krait are free and open source, developed by Kryon Labs. Clone and build from <a href="https://github.com/kryonlabs/kryon" target="_blank" rel="noopener">github.com/kryonlabs/kryon</a>.</p></div>
|
||
</details>
|
||
<details class="faq-item">
|
||
<summary>What platforms does it support? <span class="chev">›</span></summary>
|
||
<div class="faq-a"><p>Linux, Windows, macOS, Android, the browser via WebAssembly, and FreeBSD — including embedded targets. One interface source builds for all of them.</p></div>
|
||
</details>
|
||
<details class="faq-item">
|
||
<summary>What is Krait? <span class="chev">›</span></summary>
|
||
<div class="faq-a"><p>Krait is the standalone first-party Kryon IDE — project workspace, <code>.kry</code> source editing, live preview, diagnostics, and source-aware inspection. It's built as a Kryon app. See <a href="https://krait.kryonlabs.com">krait.kryonlabs.com</a>.</p></div>
|
||
</details>
|
||
</div>
|
||
</section>
|
||
</main>
|
||
|
||
<footer>
|
||
<div class="footer-inner">
|
||
<div class="footer-brand">
|
||
<img src="icons/kryon.png" alt="Kryon" width="20" height="20">
|
||
<span>KRYON</span>
|
||
</div>
|
||
<div class="footer-cols">
|
||
<div class="footer-col">
|
||
<h4>Kryon</h4>
|
||
<ul>
|
||
<li><a href="#features">Features</a></li>
|
||
<li><a href="#why">Why Kryon</a></li>
|
||
<li><a href="#platforms">Platforms</a></li>
|
||
<li><a href="matrices.html">Matrices</a></li>
|
||
<li><a href="renderers.html">Renderers</a></li>
|
||
<li><a href="/api">API reference</a></li>
|
||
</ul>
|
||
</div>
|
||
<div class="footer-col">
|
||
<h4>Ecosystem</h4>
|
||
<ul>
|
||
<li><a href="https://krait.kryonlabs.com">Krait IDE ↗</a></li>
|
||
<li><a href="https://github.com/kryonlabs/kryon" target="_blank" rel="noopener">GitHub ↗</a></li>
|
||
<li><a href="https://github.com/kryonlabs/krait" target="_blank" rel="noopener">Krait on GitHub ↗</a></li>
|
||
<li><a href="#start">Get started</a></li>
|
||
</ul>
|
||
</div>
|
||
<div class="footer-col">
|
||
<h4>Community</h4>
|
||
<ul>
|
||
<li><a href="https://discord.gg/ep7gCWzHJD" target="_blank" rel="noopener">Discord ↗</a></li>
|
||
<li><a href="https://t.me/kryonlabs_com" target="_blank" rel="noopener">Telegram ↗</a></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="footer-bottom">
|
||
<p>© 2026 Kryon Labs · <a href="https://waozi.xyz" target="_blank" rel="noopener">Made by Waozi</a></p>
|
||
</div>
|
||
</footer>
|
||
|
||
<script src="highlight.js"></script>
|
||
<script>
|
||
(function() {
|
||
// mobile menu
|
||
var toggle = document.querySelector(".menu-toggle");
|
||
var nav = document.getElementById("header-nav");
|
||
if (toggle && nav) {
|
||
toggle.addEventListener("click", function() {
|
||
var open = nav.classList.toggle("is-open");
|
||
toggle.setAttribute("aria-expanded", open ? "true" : "false");
|
||
});
|
||
}
|
||
|
||
// feature tabs
|
||
document.querySelectorAll("[data-tabs]").forEach(function(group) {
|
||
var tabs = group.querySelectorAll("[role=tab]");
|
||
tabs.forEach(function(tab) {
|
||
tab.addEventListener("click", function() {
|
||
tabs.forEach(function(t) {
|
||
var sel = t === tab;
|
||
t.setAttribute("aria-selected", sel ? "true" : "false");
|
||
t.tabIndex = sel ? 0 : -1;
|
||
});
|
||
group.querySelectorAll(".tabpanel").forEach(function(p) {
|
||
var active = p.id === tab.getAttribute("aria-controls");
|
||
p.classList.toggle("is-active", active);
|
||
if (active) p.removeAttribute("hidden");
|
||
else p.setAttribute("hidden", "");
|
||
});
|
||
});
|
||
tab.addEventListener("keydown", function(e) {
|
||
var list = Array.prototype.slice.call(tabs);
|
||
var i = list.indexOf(tab);
|
||
if (e.key === "ArrowRight") { list[(i + 1) % list.length].focus(); e.preventDefault(); }
|
||
if (e.key === "ArrowLeft") { list[(i - 1 + list.length) % list.length].focus(); e.preventDefault(); }
|
||
});
|
||
});
|
||
});
|
||
})();
|
||
</script>
|
||
</body>
|
||
</html>
|