Repository navigation
Releases
mojo-imkit v0.10.0
mojo-imkit v0.10.0
Released: 2026-11-10 · Commit: tag v0.10.0 · Previous: v0.9.0
What it does
An immediate-mode GUI for Mojo apps, drawn by one GPU compose kernel over the app frame. System SDL3 presents the window and FreeType builds the glyph atlas.
Highlights
- AVIF stills decode in pure Mojo:
image_decodeandpacknow take PNG, JPEG, WebP and AVIF. - The decoded YUV planes equal dav1d / avifdec sample for sample on 32 fixtures: 8, 10 and 12 bit, 4:2:0, 4:2:2, 4:4:4 and
monochrome, alpha, superres, film grain, intra block copy, palette, all intra tools and all three loop filters. avif_decode(bytes)returns RGBA in the same layout as the other decoders.
Changes
Added
imkit.avifrgb.avif_decode: AVIF to 8-bit RGBA (matrix and range from the file, bilinear chroma, alpha item).- AV1 intra decoder modules:
av1obu(OBU headers),av1sym(symbol decoder),av1tab(every spec table, generated from the
spec text bytools/av1_tables.mojo),av1tile/av1coef(tile syntax),av1recon,av1ipred,av1intrabc,av1lf,
av1cdef,av1lr,av1grain,av1dec.decode_frame(YUV planes);avifseq.avis_info(image sequence timing). - CI runs the AVIF gates on the runner; 32 AVIF / OBU fixtures committed (232 KB, our own encodes).
Changed
image_decodepicks AVIF by its ISO BMFFftypbox.
Verified
| Check | Result |
|---|---|
scripts/ci.sh (local, merged main) |
PASS, AVIF step included |
tests/avif_yuv_test.sh |
PASS: YUV planes equal avifdec / dav1d on every fixture |
tests/avif_yuv_mutants.sh |
15 of 18 mutants killed; 3 reached by no fixture (MV clamp border, sgr xqd clip, CFL MaxLumaW) |
tests/av1tile_test.sh |
PASS 40 tiles (each tile's symbol decoder ends exactly at its end), 18/18 mutants |
tests/avif_rgba_test.sh |
PASS 26 files: exact for 4:4:4 / mono / lossless / identity, within 2 levels at 8 bit, 3 at 10-12 bit; 8/8 mutants |
tests/av1sym_test.sh, avif_obu.sh, avif_container.sh, avif_seq_test.sh |
PASS (10/10, -, -, 6/6 mutants) |
| CI on GitHub (Ubuntu runner) | UNVERIFIED until the push: the runner's avifdec / dav1d versions make the references |
Known limits
- Inter frames are not decoded: an animated AVIF's first frame decodes, later frames raise;
avis_inforeads its timing. - RGBA is not bit-exact with avifdec for subsampled or high bit depth files (float conversion vs libyuv fixed point).
- Speed is untuned: 1280x720 4:4:4 in 0.12 s, 56 MB peak RSS (one run).
Upgrade / run
None: same build line. AVIF CI needs libavif-bin, dav1d and ffmpeg on the runner (the workflow installs them).
Commits
a7b256fdocs: AVIF in the README, the API reference and the shipped skille8d8a84fix(avif): avif_decode refuses more than 64 M pixels before decoding9ce33ddfeat(avif): avif_decode to 8-bit RGBA, and image_decode takes AVIFe1291c1ci: AVIF gates on the runner, fixtures committeda9889a8docs(avif): report 4:2:2, superres and coverage follow-upde98349test(avif): superres, 4:2:2 and delta_lf fixtures in the gates; a missing reference fails the mutant run7896cf2feat(avif): superres decode (upscaling 7.16, LR on the upscaled frame), pixel-exactaf49aecfeat(avif): 4:2:2 decode, pixel-exact on 8 and 10 bit fixtures1fe1aebdocs(avif): lane A report with gates, coverage, gaps and bytesad2f437docs(rules): lane A mistakes that cost a round8e36a60test(avif): pixel gate proves itself: 11 mutants killed, 3 no fixture reaches (listed), screen.avif added (2005 intrabc blocks)6084aaafeat(avif): stage 8, image sequence timing and sample table equal to avifdec --info16cc910test(avif): pixel gate covers alpha plane, real 4:2:0, 10/12 bit, 128 superblocks, LR, odd size, reduced tx sete165fdfdocs(avif): lane B report (recon and intra prediction)60a66c1docs(rules): lane B recon and intra mistakes6ee6eaafeat(avif): av1ipred intra, palette and chroma-from-luma prediction (7.11), gated9aafb2dtest(avif): stage 4 gate proves itself: 18 mutants of av1coef/av1tile/av1state/CDF tables all fail it3360ae1docs(avif): lane C report8c9e6a4docs(rules): lane C mistakes that cost a roundef0f992feat(avif): film grain params parser (5.9.30) and synthesis (7.18.3)9240874feat(avif): stage 4 tile parse rewritten against the spec: residual, intrabc MV stack, LR units, palette, var-tx576454ffeat(avif): AV1 loop restoration (spec 7.17) with oracle-pinned checksc576adffeat(avif): av1recon dequant and inverse transforms (7.12, 7.13), gated89e4f64feat(avif): AV1 CDEF (spec 7.15) with oracle-pinned checks1df50b6docs(rules): lane worktrees get skills linked and loaded before work788887dfeat(avif): AV1 deblocking loop filter (spec 7.14) with hand-computed checks1330708test(bench): scripts/bench.sh runs uibench 3 times30ba81ctest(avif): decode-to-planes gate against avifdec / dav1d y4m, written before the decoder63ece0dfeat(avif): av1frame planes shared by reconstruction, filters and outputd301a5ffeat(avif): generate the spec's numeric tables for reconstruction and filtersa3b74aefeat(avif): keep LoopRestorationSize and the remapped FrameRestorationTypeb46736bfeat(avif): generate the 32 coefficient scan tables too; av1cdf -> av1tab4cbc21dtest(avif): stage 4 tile-parse gate, written before the draftbdbc866feat(avif): default CDF tables from the AV1 spec, generated in the decoder's stored form35fb312fix(avif): six stage 2 header parse bugs, gate covers what the tile parser reads75976fcdocs(avif): lane status report, stages 1 to 3d53ecdftest(avif): stage 3 symbol decoder round-trip gate with mutants73fc046feat(avif): stage 2, AV1 OBU headers (DeepSeek draft, fixed by hand)4457c96test(avif): stage 2 OBU header gate against ffmpeg trace_headers34e803afeat(avif): stage 1, HEIF container parser (DeepSeek draft, fixed by hand)e576df0test(webp): commit the two filtered-alpha fixtures; libwebp versions pick filters differently52959d7test(webp): deterministic alpha-filter fixtures (ramps, not seeded plasma)f612cefci: run style, jpeg and webp suites; workflow installs imagemagick and libwebp7 (test oracles)2072717release: v0.9.0, JPEG and WebP decoders, 30 styles with assets, new widgets, contrast gateb995b3bdocs(readme): amarbaro and built-in shots, eight generated styles, WebP and styles modulese412c05feat(assets): amarbaro style background and icons (style-assets PASS, 30 styles)d8436c9docs(api): new widgets, amarbaro and generated themes, contrast, WebP78fa013feat: amarbaro themes, heading/caption/badge/kv/separator, 6 font sizes, visible controls21df275test(avif): stage 1 container gate against avifdec --info915d7c0docs(reports): webp lane report with fixture numbers, mutants and memoryee072ccdocs(rules): webp lane mistakesc534c5afeat(webp): lossy VP8 key frames and the ALPH chunk, bit exact against libwebp45b7228docs(jpeg): api, README row, rules, lane report961c027test(jpeg): bit-exact bar and a fuzz run2649441feat(assets): image_decode picks JPEG or PNG by signature, pack uses it7db7c88perf(jpeg): baseline blocks are transformed as they are decoded7603983feat(jpeg): pure Mojo baseline and progressive JPEG decodera91728dfeat(webp): pure Mojo VP8L lossless decoder with libwebp-oracle fixtures80179f5fix(gallery): preset buttons share the row equally24367b7fix(gallery): style button on its own row inside the panelc8c8a90feat(assets): 29 style backgrounds and 232 icons4307fb4feat(assets): style-assets.sh packs per-style backgrounds and icon atlasesad63dd5feat(styles): 29 theme presets measured from ComfyUI style swatchese263d25docs(rules): gpu-wait jobs get PATH and HOME passed explicitly5b978b9docs(plans): 28 style themes and assets from the ComfyUI stock styles26be1abdocs(readme): gallery screenshots in the three presets5a4432bchore(gallery): submit the render as a shared 2 GB GPU job495cf83fix(ci): resolve the CJK fallback font per distroca2e844docs(rules): bump pyproject version with every release
mojo-imkit v0.9.0
mojo-imkit v0.9.0
Released: 2026-11-10 · Commit: tag v0.9.0 · Previous: v0.8.1
What it does
An immediate-mode GUI for Mojo apps, drawn by one GPU compose kernel over the app frame. System SDL3 presents the window and FreeType builds the glyph atlas.
Highlights
- Pure-Mojo image decoders: JPEG (baseline and progressive) and WebP (lossless, lossy, alpha), bit-exact against libjpeg-turbo and libwebp where the format is exact;
image_decodepicks PNG, JPEG or WebP. - 29 generated themes plus amarbaro and amarbaro-light, all passing a WCAG contrast gate that covers text, labels, controls and status colours.
- A background and 8 icons per style in
assets/styles/(30 styles, 6 MB). - Text: six font sizes in the gallery, and
heading,caption,separator,badge,kvwidgets.
Changes
Added
imkit.jpeg(jpeg_decode),imkit.webp(webp_decode),image_decoderouting inimkit.assets.imkit.styles(style(name),STYLE_NAMES), generated bytools/gen_styles.mojofrom ComfyUI swatches;imkit.contrast(contrast,theme_faults).- Themes
amarbaro()andamarbaro_light()from the amarbaro.com brand tokens. - Widgets
heading,caption,separator,badge,kv. assets/styles/<name>/bg.jpgandicons/*.png;scripts/style-assets.shbuilds the raw atlases into.work.
Changed
flatandneoncontrols are more visible (button fill vs panel); the gallery's preset buttons share their row and the style button sits on its own row.- CI runs on Ubuntu 26.04; the CJK fallback font is resolved per distro.
Fixed
- Selected-button and badge labels are black or white for their fill (grey labels on dark accents).
Verified
| Check | Result |
|---|---|
tests/jpeg_test.sh |
PASS: 27 fixtures bit-exact vs libjpeg-turbo, 63 mutants, fuzz without crash, 1280x720 in about 20 ms |
tests/webp_test.sh |
PASS: lossless bit-exact, lossy within the bar, mutants raise, lossless bg 19.7 ms, lossy 64.8 ms |
tests/style_test.mojo |
PASS: 29 generated + amarbaro presets + flat pass the gate; a planted fault is caught |
| gallery renders, 34 presets | button vs panel on the rendered frame >= 1.28 (linear WCAG), gallery_check.sh PASS, OCR reads every badge and the style label |
scripts/style-assets.sh |
PASS: 30 styles, 8 icons each with transparency, 6 MB |
CI on Ubuntu 26.04 (ci-local) |
see the public sync commit |
Known limits
- AVIF is not decoded yet (in progress).
- The generated themes come from one swatch each; taste is not gated, only contrast.
- Animated WebP raises.
Upgrade / run
pixi add mojo-imkit # or uv: mojo-imkit 0.9.0
scripts/gallery.sh .work/shots # renders every preset
Commits
b995b3bdocs(readme): amarbaro and built-in shots, eight generated styles, WebP and styles modulese412c05feat(assets): amarbaro style background and icons (style-assets PASS, 30 styles)d8436c9docs(api): new widgets, amarbaro and generated themes, contrast, WebP78fa013feat: amarbaro themes, heading/caption/badge/kv/separator, 6 font sizes, visible controls915d7c0docs(reports): webp lane report with fixture numbers, mutants and memoryee072ccdocs(rules): webp lane mistakesc534c5afeat(webp): lossy VP8 key frames and the ALPH chunk, bit exact against libwebp45b7228docs(jpeg): api, README row, rules, lane report961c027test(jpeg): bit-exact bar and a fuzz run2649441feat(assets): image_decode picks JPEG or PNG by signature, pack uses it7db7c88perf(jpeg): baseline blocks are transformed as they are decoded7603983feat(jpeg): pure Mojo baseline and progressive JPEG decodera91728dfeat(webp): pure Mojo VP8L lossless decoder with libwebp-oracle fixtures80179f5fix(gallery): preset buttons share the row equally24367b7fix(gallery): style button on its own row inside the panelc8c8a90feat(assets): 29 style backgrounds and 232 icons4307fb4feat(assets): style-assets.sh packs per-style backgrounds and icon atlasesad63dd5feat(styles): 29 theme presets measured from ComfyUI style swatchese263d25docs(rules): gpu-wait jobs get PATH and HOME passed explicitly5b978b9docs(plans): 28 style themes and assets from the ComfyUI stock styles26be1abdocs(readme): gallery screenshots in the three presets5a4432bchore(gallery): submit the render as a shared 2 GB GPU job495cf83fix(ci): resolve the CJK fallback font per distroca2e844docs(rules): bump pyproject version with every release
mojo-imkit v0.8.1
mojo-imkit v0.8.1
Released: 2026-11-09 · Commit: bf8770c · Previous: v0.8.0
What it does
An immediate-mode GUI for Mojo apps, drawn by one GPU compose kernel over the app frame. System SDL3 presents the window and FreeType builds the glyph atlas.
Highlights
- An app that composes into its own buffer holds 5.6 MB instead of 13.5 MB (9.3 MB through SDL
render()). - Nine bugs fixed: clip nesting, NaN and infinite commands, UTF-8 Backspace, glyph-cache key collision, PNG header checks,
set_image/set_assetsoverwrite, DPI scale for glass and icons, missing font sizes, scroll/axis with zero or NaN.
Changes
Added
tools/membench(bytes, mallocs, compose time) andtools/uibench(CPU frame time).scripts/ci.shdry-runs the mutants.
Changed
Layer.scene,Layer.pixelsand the host font atlas are allocated when first used.pushdrops NaN commands and clamps coordinates: UI frame about 0.9 us slower (+4 %).
Fixed
- The nine bugs above, each with a test that failed before its fix.
Verified
| Check | Result |
|---|---|
scripts/ci.sh at e20b1b7, clean worktree |
PASS |
scripts/local_gate.sh (ui_test on gfx1100, window, audio) |
PASS |
scripts/mutants.sh |
PASS |
Known limits
- Compose kernel time unproven below about 2 % (17.1 to 17.4 us measured on a loaded box; kernel source unchanged).
examples/gallerybinary +1.1 %.
Upgrade / run
None
Commits
e20b1b7ci: dry-run the mutants in ci.sh; repair the two push mutants; docs and report7cbbe52perf(draw): one vector clamp and NaN test in push45204fefix(ui): scroll rows and axis labels survive zero, NaN and huge numbers2b95130fix(font): glyph cache key keeps size slots 16 and up apartdef3b03fix(draw): a font size index the font lacks draws nothing16c3986perf(layer): allocate the pinned pixels buffer on the first readbackd8b13b4perf(font): hold only the atlas rows in use on the host9434c66perf(layer): allocate the scene buffer on the first set_scene781e172fix(layer): set_image and set_assets no longer erase each other6284716fix(draw): NaN commands drop, infinite coordinates clamp20b7084fix(assets): png_decode refuses a bad IHDR length and an oversized picture696025bfix(ui): field Backspace and tail cut on UTF-8 code points4d9e547fix(ui): glass and icon_img follow the DPI scalee9f22dffix(draw): end the old clip when a new one replaces it882fc71tools: membench, a memory and speed ledger of the demo frame732b335docs(rules): mistakes from the v0.8.0 lanes and merge
mojo-imkit v0.7.2
mojo-imkit-public v0.7.2
Released: 2026-11-08 · Commit: 7b7cf08 · Previous: v0.6.4
What it does
An immediate-mode GUI for Mojo apps, drawn by one GPU compose kernel over the app frame. System SDL3 presents the window and FreeType builds the glyph atlas.
Highlights
Layer.set_image(px, w, h): one call puts a large picture (up toUI_IMGpixels) in the image pool.Ui.fieldandInput.text: a single-line ASCII text box fed by SDL text events;Window.text_input(on).Window.push(EV_TEXT, text=...)delivers the text it was given, also when the string is built at run time.Ui.buttontakes acolor.
Changes
Added
Layer.set_image,layer.image_fits;Input.text(default empty),Window.text_input(on),EV_TEXT,Window.push(EV_TEXT, text=...);Ui.field,Ui.field_focused;scripts/mutants.sh.
Changed
Ui.buttontakes acolor(default: the accent).Inputhas an explicit constructor sotextcan default; every existingInput(...)call builds unchanged.
Fixed
Window.push(EV_TEXT)handed SDL a pointer into a string freed whenpushreturned; SDL reads it atpoll(). A literal hid the bug; a run-time string polled back garbage.Windownow keeps the bytes alive untilpoll()has read them.
Verified
| Check | Result |
|---|---|
scripts/ci.sh steps on this tree (precompile, build of every test and the quickstart, font_test, ui_cpu_test, quickstart), Mojo 1.2.0 |
all exit 0 |
scripts/local_gate.sh under gpu-wait on gfx1100, KDE Wayland (ui_test on the GPU, window_test on the display, audio_test) |
PASS local_gate: ui_test, window_test, audio_test |
scripts/mutants.sh: field ignores max; Input.merge drops text; pushed text freed before poll |
all killed, PASS mutants |
pkg-conda dry run on the version commit (H1-H3,H6) |
PASS: mojo-imkit-0.7.2-hb0f4dca_0.conda |
Known limits
Ui.field: append and Backspace at the end only; no cursor movement, selection, paste, key repeat or non-ASCII. Fixed width 360.Input.textcarries UTF-8 as SDL sends it;fielddrops every byte outside 32-126.- This release carries the work developed as v0.7.0 and v0.7.1 in the dev repo (never published; renamed dev-v0.7.0, dev-v0.7.1 there).
Upgrade / run
None for existing code: `Ui.button` and `Input(...)` calls build unchanged.
Commits
7b7cf08build: bump version to 0.7.21514006feat: typed text, text fields, set_image, button colour (dev v0.7.0 and v0.7.1 work)
mojo-imkit v0.6.3
mojo-imkit-public v0.6.3
Released: 2026-11-07 · Tag: v0.6.3 · Previous: v0.6.2
What it does
An immediate-mode GUI for Mojo apps, drawn by one GPU compose kernel over the app frame. System SDL3 presents the window and FreeType builds the glyph atlas.
Highlights
- Docs only: CHANGELOG names no home path.
Changes
Changed
CHANGELOG.mdand the release notes name no home path.
Verified
| Check | Result |
|---|---|
mojo-lib-audit on this tree |
PASS |
gh-publish --check (ci-local) |
OK |
Known limits
- As in v0.6.2.
Upgrade / run
None: no code or API change.
Commits
git log v0.6.2..v0.6.3
mojo-imkit v0.6.2
mojo-imkit v0.6.2
Released: 2026-11-04 · Commit: ea91462 · Previous: v0.6.1
What it does
An immediate-mode GUI for Mojo apps, drawn by one GPU compose kernel over the app frame. System SDL3 presents the window and FreeType builds the glyph atlas.
Highlights
- Builds on the Mojo 1.3 nightly as well as 1.2.0.
Changes
Added
-
Conda recipe (
recipe.yaml). -
README badges for CI, latest release and license.
-
CI installs DejaVu and libfreetype6, which
tests/font_testneeds.
Changed
- Docstrings point at
docs/design.md, now lower case.
Fixed
- Builds on Mojo 1.3.0.dev2026110305.
Removed
ui.fmt, which nothing used.
Verified
| Check | Result |
|---|---|
ci-local: the GitHub workflow in a clean Ubuntu 24.04 container |
PASS (bc44b14) |
Known limits
- As in v0.6.1.
Upgrade / run
uv sync
Commits
bc44b14ci: install libfreetype6 with the fontdc31a28ci: install DejaVu before the gateea91462fix(release): pyproject.toml, recipe.yaml and uv.lock say 0.6.2090dce8docs: docstrings point at docs/design.md7734441build: conda recipe, docs/design.md lower case65796f0fix: build on Mojo 1.3 nightly1c09f2drefactor(ui): delete fmt, unreferenced in the repod9a9d7ffix(release): pyproject and uv.lock say 0.6.1, the version of the latest tagdbae9d6docs: CI, latest-release and license badges
mojo-imkit v0.6.1
mojo-imkit v0.6.1
Released: 2026-10-29 · Commit: 66f7030 · Previous: v0.6.0
What it does
An immediate-mode GUI for Mojo apps, drawn by one GPU compose kernel over the app frame. System SDL3 presents the window and FreeType builds the glyph atlas.
Highlights
- Builds and runs on the stable Mojo 1.2.0 and MAX 26.7.0 release.
Changes
Changed
- The pin moves to Mojo 1.2.0 and MAX 26.7.0 (
pyproject.toml,uv.lock); README and skill say Mojo 1.2.
Verified
| Check | Result |
|---|---|
ci-local: the GitHub workflow in a clean Ubuntu 24.04 container, Mojo 1.2.0 and MAX 26.7.0 |
PASS |
Known limits
- As in v0.6.0.
Upgrade / run
uv sync # installs Mojo 1.2.0 and MAX 26.7.0
Commits
66f7030docs: toolchain is Mojo 1.21623944build: Mojo 1.2.0 / MAX 26.7.0eab109dci: build for gfx1100 by name
mojo-imkit v0.6.0
mojo-imkit v0.6.0
Released: 2026-10-26 · Commit: the one tagged v0.6.0 · Previous: v0.5.0
What it does
An immediate-mode GUI for Mojo apps, drawn by one GPU compose kernel over the app frame. System SDL3 presents the window and FreeType builds the glyph atlas.
Highlights
Audio(rate): SDL3 mono float playback stream the app keeps fed.- Public packaging: Apache-2.0,
scripts/ci.shfor the CPU gates, a CPUUitest, API page and quickstart.
Changes
Added
imkit.audio.Audio;tests/ui_cpu_test.mojo;examples/quickstart.mojo;scripts/ci.sh.
Changed
tools/gate.shisscripts/local_gate.sh(GPU and window gates); tests take the font fromIMKIT_FONT.
Verified
| Check | Result |
|---|---|
scripts/ci.sh |
PASS ci |
scripts/local_gate.sh ui_test on gfx1100 under gpu-wait |
PASS ui_test |
| ui_cpu_test with the click rule mutated | FAIL click is press then release on the icon, once |
Known limits
Audiohas no automated check. CI does not run the GPU or window gates.
Upgrade / run
uv sync && .venv/bin/mojo run -I src examples/quickstart.mojo
Commits
v0.6.0public packaging and Audio