Use the gallery project resolver for Kryon as well as optional packages so browser type checking, mounted declarations and native previews use the same selected sources. Refresh the ordinary gallery lock and browser compiler output for the published providers.
Local validation: clean normal dependency resolution; fresh site and browser compiler builds; portable formatting; full browser routes, all 103 maintained TSX sources/previews, source editing and authored diagnostics, mobile layout, disabled controls, reduced motion and contrast. The original ignored gallery local configuration was restored byte for byte.
The current starter profile/runtime and pre-push gates are running separately. The full breaking migration remains Unreleased and incomplete.
Select the published Ziran, Kryon and optional-package revisions through normal manifests and generated locks. Keep project creation, upgrade defaults and documented pins consistent.
Local validation: all 102 standalone examples resolve one published Kryon without overrides and pass TSX source checking; the rebuilt CLI and pin test pass; all four freshly generated starters check and report zero native TypeScript editor diagnostics. Current full profile/runtime validation and the required pre-push gate remain pending.
Expose the native widget surface through ordinary typed TSX components and enforce application composition at generic export and entry boundaries. Migrate maintained screens, scaffolds, gallery publication and editor transport through the common checked IR path. Preserve native logic, retained component state, input and platform hosts; remove the pixmap application route.
Local validation: complete make push-check passed with published Ziran dc3ecf0a, including docs, public source/saved surface, private-display desktop input, native host links and Canvas input parity. Fresh CLI/player/desktop library installed and byte-verified. The full migration matrix records remaining owning suites, published consumer pins, platform runs and Alpha benchmarks; this is a source milestone, not completion of the full campaign.
Style: finalize structural sibling facts (:last-child family) at parent closure so late siblings match in the same frame, parse and match +/~ combinators from submitted siblings, and document the exact tree-context support. Flex: measured page/row/column placement with basis, grow, gaps and padding now sizes the gallery shell (header, scene row, controls bands) instead of manual rectangles. Paint: radial gradients reach every render path (desktop, pixmap, terminal, web, zx). Gallery: the catalog registry imports kryon/app (kryon/app_types is package-internal), fixing the widget-catalog project build broken by the entry-point removal; the desktop shell test follows the shared example build path and locates interactive controls by tree label.
examples/workout is an independent Kryon application: a plain main that
runs one animated VRM figure through the GPU Scene backend, with no
navigation, text or CPU copy in a frame. It pins the Kryon and Ziran
commits that carry the GPU skin palette fix, prints one WORKOUT line per
60 frames with the frame breakdown, and builds its desktop profile from
the lock alone. The Android profile is documented as blocked by the
AndroidProgramMain host bind.
main is the only program entry. Frame stays an ordinary function that apps pass to App.Run; the frame-entry export mechanism (frame_entry, ProjectFrame binds, KRYON_FRAME_ENTRY, *_run.zi hosts) is gone. The pixmap, dom, terminal, zx and android frame loops are now frames_*.zi modules that App.Run selects. Consumer tests and fixtures build their own shot programs through the kryon package exports, and the desktop project probe imports Window explicitly. General #program_export component exports stay.
Add `make zx-libraries`, which builds kryon-pixmap.zx, kryon-session.zx,
kryon-tree.zx and kryon-text.zx with `ziran bundle --library` and
explicit export roots over the one implementation of the pixel, session,
tree and text code, loadable from a `--module-root`. The drawing
libraries bind the software rasterizer, so they need no host grants and
run under a plain `ziran run`.
examples/zx_libraries.zi is the consumer: built statically linked and
linked against the libraries, both print the same frame hash.
`make zx-libraries-example` compares them and `make test` runs it.
Document the build in docs/BACKENDS.md.
The final matched set: the starter, the dashboard and the cheat sheet's
project pin Kryon 2f9b5db2 and CSS d55590a6, which is built on that Kryon,
so a fresh lock holds one Kryon. Ziran e225a4fe names a program export two
package revisions both define and refreshes a lock's stale checked
packages; every Ziran pin moves to it: kryon init and kryon upgrade
(toolchain_pin.zi, which also carries the Kryon and CSS refs), the four
templates, the cheat sheet project, the test fixtures and the examples
that pin a toolchain, relocked without their local overrides. The
migration block names the new set. templates/app/ziran.toml also carries
an orphaned commented-out `frame_mode = "events"` line from the Android work.
Local tests: a fresh `kryon new` from the template with no overrides locks
to one Kryon (2f9b5db2) and CSS (d55590a6) on Ziran e225a4fe, builds,
shoots both themes and bundles in 4,011,330 bytes; toolchain-pin-test,
watch-test, new-widgets-test, cheatsheet-test, shot-test, templates_test
(digests unchanged, kryon upgrade round trip) and the responsive dashboard pass.
LayoutContentBounds summed measured child rectangles so a container could
be given a height up front. Containers without a height now grow to the
children they place when End closes them, so its last two users, the
gallery's button and text-field scenes, are content-sized columns with
their keys dropped, and the function, its api example entry and its
WIDGET_PACKAGES.md paragraph are gone. No other repository uses it. The
layout api example now shows a content-sized column of two rows.
Local tests: layout_widget, gallery-zx-test (103 bundles), ziran check of
the layout api example.
The website's desktop apps list Workbook where the retired GitHub client
was; each card links to its source. The site gains the favicon, apple
touch icon and og:image tags and ships the mascot from assets/brand. The
gallery pins Kryon, Plot and Data Views on Gitea, reads its scene and
theme through std/environment_linux, and its rebuilt site carries nine
new runtime assets.
widget_examples_source_test and site_browser_test expected exactly 101
scenes; the gallery has grown since. Both now compare with the real
catalog built from this checkout's examples.
Local tests: gallery-zx-test (103 bundles), widget_examples_source_test.
site_browser_test still times out selecting the Toggle example by
keyboard: its picker model lands on scene 54; that is separate from
these changes and listed as open.
The thirteen overlay examples keep their overlays at explicit rects and
put only the page around them (title, trigger buttons) in a padded Layout
column; GuidedTour closes the column after its title so its scrim covers
the whole view. Button shows every tone and emphasis in a two-column Grid
now that a Button places itself in a grid cell. Reorder gives its rows the
area a Stack takes in the column. A Toolbar with no position or width
lets a placing column place it, so the toolbar example passes only its
height. The Modal Frame reopen button is 44 px instead of the modal's
188, and Skeleton gets a title: it had no dark pixel, so the gallery ZX
check failed on it since the example was added.
Shot digests, light theme, before -> after:
button 3d76c2afddc5 -> 03fd6c044790
commandpalette b54fff7c4844 -> da25ce4ee021
confirmpopover 0ba98f005a32 -> 8ccd1025e6a1
contextmenu ea7315924285 -> cc6aff78aa7f
dismissibleoverlay 02d86bae2cc2 -> 85a56b56c62c
guidedtour 2a7d2201ccae -> 3a777e8ca8b0
hovercard 329b82b39f72 -> c6e9c9c5f8b5
menu 2047019da1e4 -> 4055151eb21a
modalframe 1240c35f52ab -> 0b3761c75941
navigationbarconfig 174d336d38c2 -> 925d8adc239a
popup ca39b5f43085 -> d06bd17ae332
reorder 812b68c1e35d -> a840da307a82
sheet 51e68730e50c -> 7dbbcb785d21
skeleton 79f16f226aa7 -> 839cade06b09
toast df4156285ba9 -> 741967a157b0
toolbar 54138e0e480b -> 46c47233c3b9
tooltip f3cc2cb6f1e2 -> 532c5bc1a7e7
The starter template pinned Kryon cdf23986 and CSS e2d73fcd, which lack the
container Card and slot-free TitleBar its code uses, so a fresh `kryon new`
did not build. It now pins Kryon 02cc10e6 and CSS b0e83ac2, which is built on
that same Kryon: a fresh lock holds one Kryon. The dashboard moves to the same
pair. Every Ziran pin moves to 8133bd41, which resolves a checked library for
another toolchain from source instead of failing the lock: `kryon init`
(toolchain_pin.zi), the four templates, the cheat sheet project, the test
fixtures and the examples that pin a toolchain, with their locks.
A fresh `kryon new` from the template with no overrides locks, builds and
shoots both themes; the starter digests are unchanged.
Both lay content over one area: a Stack now holds the swipe surface, its
caption and the swipe target, and the transition's fade over its text, in
a padded Layout column.
Shot digests, light theme, before -> after:
swipearea 73f2134f0c98 -> 88e7cce61521
transition 0497bf53627d -> 7863a2b8626b
Both lists spanned their parent's full width, padding included. They now
place themselves ahead, and the example draws the two lists in a padded
Layout column.
Shot digest, light theme, before -> after:
listbox 36ca625bde28 -> f016149da664
Both drew at the rect they were measured in, away from where a column
put them. They now place themselves ahead; their examples draw the pad in
a padded column with the step count beside its caption in a Row.
Shot digests, light theme, before -> after:
dpad d793a9926044 -> 066ac355ccbc
joystick c35b6e552a63 -> ad4cceb50206
All three read their rect before submitting a node and drew nothing in a
column. They now place themselves ahead, and their examples draw in a
padded Layout column with no rectangles taken from the viewport.
Shot digests, light theme, before -> after:
emptystate 8a28dd30ea31 -> 237e79334e07
gridmulti 043ba602e041 -> 58644d4010d4
tilemap 77ecb4c705a9 -> 0f366b4303fd
Column, Row, Grid, Stack, Group and Screen demos now sit in a padded page
column with their demo container 208 tall in it, and the stack demo's
offset child is placed from its container rather than the viewport.
Shot digests, light theme, before -> after:
column 6f5cb1f058d9 -> c82aa8991b1e
grid abaa5239c632 -> 80336dcb0e5c
group 62f0aab179e6 -> e8ae16d8bc10
row 34144c33e7d0 -> 31d9b73ff9bf
screen 08e9622cadf2 -> 5ede7ea4a923
stack 6f17ccb82881 -> d79500101d30
TreePlaceAhead now leaves a widget to be placed when it submits if it
sets no size along its parent's axis (height in a column, width in a
row): a field that takes its height from a style rule still advances the
column by that height. TextField, TextArea and OnboardingChecklist place
themselves ahead, so a column with a set height shows them where they
used to vanish.
Avatar (a Row of two), Badge, Checklist, Chip (two Flows), ListItem,
Skeleton, Text, TextArea and TextField examples draw in a padded Layout
column with no rectangles taken from the viewport.
Shot digests, light theme, before -> after:
avatar 59c10a47aced -> abf4eec2c7e5
badge f21bffa63ab6 -> 078de2c514b8
checklist 01f33c0eae00 -> d957a059341d
chip fa3a99205e60 -> 465b17386c81
listitem 9df4ef4ad678 -> 9df4ef4ad678
skeleton 79f16f226aa7 -> 79f16f226aa7
text 0e7e6b5e4823 -> 060a4853c2c2
textarea db288ca2c19d -> 54dc1618b524
textfield 4fc0094c23b9 -> bc8a330e6545
Most widgets read their rect before they submit a node: they returned
without a width, laid parts out from the measured rect, or painted with no
node at all, so a column could not hold them. TreePlaceAhead asks the
parent for the placed rect first; the widget lays out, paints and submits
there, and its node is not placed or moved again. Alert, Banner,
Breadcrumb, ButtonGroup, Carousel, Countdown, Keycap, Loading,
LoadingScreen, ProgressRing, SvgIcon and Timeline place themselves this
way, and Keycap draws its caps at its placed rect. widget-tree-test checks
a keycap placed ahead lands where the column put it.
The examples of those widgets and of ConfirmButton, CopyButton and
HoldButton now draw in a Layout column.
Shot digests, light theme, before -> after:
alert 6a9598d13b12 -> 3d1654a7b0f9
banner 506158cb4840 -> 5e88c0cd5207
breadcrumb 06e733ee02b5 -> 80f42f379bc9
buttongroup 2837d933214d -> 8ac55d23e910
carousel 7d6ef6fc3f4a -> a61ee8229b79
confirmbutton 3d567fb7a29c -> e6d3f05fc4b0
copybutton c08cfc6132ab -> c61a372d25ad
countdown b45d9dd0894c -> eaac1f2eb526
holdbutton ff643b518e5c -> c87c900c4d2d
keycap dae61c9b364e -> 8b0aac195f74
loading c292e66a8e19 -> bff20371fb2a
loadingscreen 03499f755726 -> 1b72c5fa37ba
progressring 7c4f36e0a289 -> 4c363995d29d
svgicon 1911b0f846eb -> d6cd03af7363
timeline 74e6f38f660b -> 62de0c7b4a0f
TimePicker returned at once without a width and painted its field at the
placed rect, so a column could not hold it. It now leaves an unset width
to a placing column and adopts its placement; its field and popup draw
where it was placed. Its example draws in a Layout column.
Shot digest, light theme, before -> after:
timepicker 3bc58cb6117d -> 0f3996f55dbe
All three spanned their parent's full width when given none, padding
included, and painted at their placed rect, which the paint queue then
moved again: Scroll's bar sat outside the view, Collapsible's header fell
below its own content and ColorPicker ran past the edge. Each leaves an
unset width to a placing column, adopts its placement and lays out and
paints there. Their examples draw in a Layout column.
Shot digests, light theme, before -> after:
collapsible 045d0925a361 -> 585db528c3e0
colorpicker 577be5d9efa9 -> 845d6eab860b
scroll e2b5967d1bdc -> 3129e6e4ff68
Fieldset, Press and Separator draw in a Layout column. Press lays its
surface, caption and press target over one Stack; Fieldset's choices sit
in a padded column over its frame; Separator's bullet and caption share a
Row. The cheat sheet's token table shows the CSS that is now supported:
your own sheet by class, containers that paint and lay out their CSS box,
and flex, margins, percentages, calc and media rules, pointing to the
full property table. Its project pins Kryon 65b50b26, which has the
container Card and the placement fixes the sheet relies on.
Shot digests, light theme, before -> after:
fieldset 98b2195d42fb -> d7397dc8106c
press 28e84d9e16b6 -> c05d17a63bed
separator cd380e0cb156 -> 9d6c09ac0965
The dashboard builds on Kryon 34720206, where a Card is a padded column
that must end: its responsive preview's Panel returns the card, and each
metric and chart panel closes with End after its labels. The responsive
preview test and the dashboard shots pass on it.
Card painted a surface at given bounds and handed back a content rect, so
every app measured its content up front and drew it into a Layout.Stack
slot. Card.Draw now opens Layout.Box with the card's resolved face: a
padded column whose fill, border, radius and elevation paint at its final
size, growing to its content when it has no height. Draw the content while
`opened`, then End(session). A clickable card is one press target on that
column, with hover and pressed faces from the previous frame;
CardContentBounds is gone.
The starter's task cards and the cheat sheet's note cards drop their
measured heights and Stack slots, the card and style picker examples draw
in a Layout column, and the gallery site's and two gallery scenes' cards
close with End. The dashboard follows with its Kryon pin. Layout's
LayoutContentBounds stays while the gallery scenes still use it.
Shot digests, light theme, before -> after:
card 670ccd2d21da -> 8cc61de0c49b
stylepicker c67487dfbb15 -> 08c9cae998f1
The dashboard pins the Kryon that CSS 164d983 declares and that CSS. Its
driver test passes; the 1120x720 light and dark shots and the 550x800
narrow shot render as before, now with the KPI progress bars filled, and
the README records their new digests.
TitleBar spanned its parent from an explicit origin, so a column never
placed it, and it painted at the submitted rect. It now leaves an unset
width to a placing column, paints its bar and title where it was measured
and lays its leading button, dropdown and the caller's trailing rect out
where it was placed; the starter and the cheat sheet draw their app bar
with no Layout.Stack slot, the switch over the bar's trailing rect.
Dropdown and the compact NavigationBar returned early or laid their items
out at the measured rect; TabBar anchored itself to its parent's corner
and moved its indicator twice. TreeAdoptPlacement lets a widget that lays
itself out after placement give its paint in placed coordinates; TabBar
submits first when a column places it. TitleBar, ActionModal, Dropdown,
NavigationBar and TabBar examples now draw in a Layout column.
Shot digests, light theme, before -> after:
actionmodal 8349f64156ee -> 2231b11ce73e
dropdown 510e2a5260e3 -> 47728b94346b
navigationbar 08428c29d011 -> d28a1ddc17dd
tabbar 911c50eefda5 -> e454af3f6d55
titlebar b80ef7fdecbf -> 32b34094908f
Checkbox, Toggle, Radio, Progress, Selectable, Link, SegmentedControl and
Spinbox now draw in a padded column with gaps from theme tokens: no
`b.y += 64` rows, no rectangles from the viewport. Their before and after
shots showed three widgets that sized themselves against the old layout:
Selectable took 120 wide and Spinbox kept its step buttons where it was
measured, and SegmentedControl spanned its parent's full width and painted
its face at the placed rect, so the queue moved it twice. TreeWillPlace
says whether the parent will place a widget; Selectable, Spinbox, Slider
and SegmentedControl leave an unset width for a placing column and keep
their own size otherwise. Their faces paint at TreeNodePaintBounds and
their child buttons go where the control was placed.
Shot digests, light theme, before -> after:
checkbox f7ab17936c4f -> f1952a7970d3
link a1befbe98fa0 -> 2165502e9c11
progress 8e3bf04b7e14 -> c32eae06b94c
radio b9c9350000da -> 32be1359be23
segmentedcontrol 3430928d8aef -> ee33eb6832b8
selectable ca8c8bc13c92 -> 8dbe6443825b
spinbox b0c8c431d3bf -> 32544e8d402f
toggle ca379112f581 -> 768dd009d695
The time picker demo's Card and Picker helpers pass on their caller's
line instead of taking key numbers, so each use keeps its own identity;
the counter, loading, motion chart and hosted surface examples stop
numbering their widgets.
Widgets are known by their call site now, so the examples and the pages,
tui and web templates stop numbering them: literal keys, `100 + index`
loop keys and the key parameters threaded through Label, Heading,
Paragraph and link helpers are gone. Keys stay where something points at
them: a guided tour's target, the gallery site's test handles and the
dashboard.
The frame now only says what goes where: a shell row, a fixed-width
sidebar column, a main column that takes the rest, a KPI grid of
painted cards, search and filters, and a flex body whose list and
inspector come from CSS flex bases. Breakpoints are 760 px media rules;
composite widgets sit in fixed-height Stack slots. The frame computes
no rectangles and no keys (514 + 249 lines, from 853 + 217). It pins
Kryon a04a3ba1 and CSS d8044da, and its driver test passes on them.
One way to build: the BSD and GNU make shims (root and examples) and a
go.mod with no Go sources go; everything runs through the Makefile.
Removed after checking every Kryon app and Harmony for users: the
SwipeRow widget and example (gallery entry included), the images_pending
stub, the host/android and host/terminal one-line re-exports, the unused
canvas and DOM HTML shells, system_typeface_linux and
typeface_collection, the tree_label_cost scripts, and the release-notes,
update_version, subset-fonts and update-showcase scripts (Harmony's jobs
plugin keeps its own copies). The profile table no longer presents the
PPM shot as a picture workflow. ClockLinux, SystemClipboardLinux and
FileDialogLinux stay: browser, terminal and Harmony import them. The
tree_draw export stays until explorer and the CSS tests import
kryon/Frame; plans/2026-11-22-legacy-candidates.md keeps that item.
The deleted web-apps plan was out of date: its per-app blockers live in examples/gallery/src/site_apps.zi desktop_reason fields. The still-true update procedure lands beside the gallery and site docs.
The cheat sheet's project and the chip, list item and skeleton examples
now pin Kryon fd3bc998, which carries the new widgets and kryon run
--watch, so the sheet's manifest locks and builds as written; its start
block uses kryon run --watch. Checked by locking and building the
sheet's project from Gitea with no local overrides and shooting it.