Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

Releases

mojo-imkit v0.10.0

Choose a tag to compare

@amarbarosys amarbarosys released this 10 Nov 09:18

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_decode and pack now 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 by tools/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_decode picks AVIF by its ISO BMFF ftyp box.

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_info reads 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

  • a7b256f docs: AVIF in the README, the API reference and the shipped skill
  • e8d8a84 fix(avif): avif_decode refuses more than 64 M pixels before decoding
  • 9ce33dd feat(avif): avif_decode to 8-bit RGBA, and image_decode takes AVIF
  • e1291c1 ci: AVIF gates on the runner, fixtures committed
  • a9889a8 docs(avif): report 4:2:2, superres and coverage follow-up
  • de98349 test(avif): superres, 4:2:2 and delta_lf fixtures in the gates; a missing reference fails the mutant run
  • 7896cf2 feat(avif): superres decode (upscaling 7.16, LR on the upscaled frame), pixel-exact
  • af49aec feat(avif): 4:2:2 decode, pixel-exact on 8 and 10 bit fixtures
  • 1fe1aeb docs(avif): lane A report with gates, coverage, gaps and bytes
  • ad2f437 docs(rules): lane A mistakes that cost a round
  • 8e36a60 test(avif): pixel gate proves itself: 11 mutants killed, 3 no fixture reaches (listed), screen.avif added (2005 intrabc blocks)
  • 6084aaa feat(avif): stage 8, image sequence timing and sample table equal to avifdec --info
  • 16cc910 test(avif): pixel gate covers alpha plane, real 4:2:0, 10/12 bit, 128 superblocks, LR, odd size, reduced tx set
  • e165fdf docs(avif): lane B report (recon and intra prediction)
  • 60a66c1 docs(rules): lane B recon and intra mistakes
  • 6ee6eaa feat(avif): av1ipred intra, palette and chroma-from-luma prediction (7.11), gated
  • 9aafb2d test(avif): stage 4 gate proves itself: 18 mutants of av1coef/av1tile/av1state/CDF tables all fail it
  • 3360ae1 docs(avif): lane C report
  • 8c9e6a4 docs(rules): lane C mistakes that cost a round
  • ef0f992 feat(avif): film grain params parser (5.9.30) and synthesis (7.18.3)
  • 9240874 feat(avif): stage 4 tile parse rewritten against the spec: residual, intrabc MV stack, LR units, palette, var-tx
  • 576454f feat(avif): AV1 loop restoration (spec 7.17) with oracle-pinned checks
  • c576adf feat(avif): av1recon dequant and inverse transforms (7.12, 7.13), gated
  • 89e4f64 feat(avif): AV1 CDEF (spec 7.15) with oracle-pinned checks
  • 1df50b6 docs(rules): lane worktrees get skills linked and loaded before work
  • 788887d feat(avif): AV1 deblocking loop filter (spec 7.14) with hand-computed checks
  • 1330708 test(bench): scripts/bench.sh runs uibench 3 times
  • 30ba81c test(avif): decode-to-planes gate against avifdec / dav1d y4m, written before the decoder
  • 63ece0d feat(avif): av1frame planes shared by reconstruction, filters and output
  • d301a5f feat(avif): generate the spec's numeric tables for reconstruction and filters
  • a3b74ae feat(avif): keep LoopRestorationSize and the remapped FrameRestorationType
  • b46736b feat(avif): generate the 32 coefficient scan tables too; av1cdf -> av1tab
  • 4cbc21d test(avif): stage 4 tile-parse gate, written before the draft
  • bdbc866 feat(avif): default CDF tables from the AV1 spec, generated in the decoder's stored form
  • 35fb312 fix(avif): six stage 2 header parse bugs, gate covers what the tile parser reads
  • 75976fc docs(avif): lane status report, stages 1 to 3
  • d53ecdf test(avif): stage 3 symbol decoder round-trip gate with mutants
  • 73fc046 feat(avif): stage 2, AV1 OBU headers (DeepSeek draft, fixed by hand)
  • 4457c96 test(avif): stage 2 OBU header gate against ffmpeg trace_headers
  • 34e803a feat(avif): stage 1, HEIF container parser (DeepSeek draft, fixed by hand)
  • e576df0 test(webp): commit the two filtered-alpha fixtures; libwebp versions pick filters differently
  • 52959d7 test(webp): deterministic alpha-filter fixtures (ramps, not seeded plasma)
  • f612cef ci: run style, jpeg and webp suites; workflow installs imagemagick and libwebp7 (test oracles)
  • 2072717 release: v0.9.0, JPEG and WebP decoders, 30 styles with assets, new widgets, contrast gate
  • b995b3b docs(readme): amarbaro and built-in shots, eight generated styles, WebP and styles modules
  • e412c05 feat(assets): amarbaro style background and icons (style-assets PASS, 30 styles)
  • d8436c9 docs(api): new widgets, amarbaro and generated themes, contrast, WebP
  • 78fa013 feat: amarbaro themes, heading/caption/badge/kv/separator, 6 font sizes, visible controls
  • 21df275 test(avif): stage 1 container gate against avifdec --info
  • 915d7c0 docs(reports): webp lane report with fixture numbers, mutants and memory
  • ee072cc docs(rules): webp lane mistakes
  • c534c5a feat(webp): lossy VP8 key frames and the ALPH chunk, bit exact against libwebp
  • 45b7228 docs(jpeg): api, README row, rules, lane report
  • 961c027 test(jpeg): bit-exact bar and a fuzz run
  • 2649441 feat(assets): image_decode picks JPEG or PNG by signature, pack uses it
  • 7db7c88 perf(jpeg): baseline blocks are transformed as they are decoded
  • 7603983 feat(jpeg): pure Mojo baseline and progressive JPEG decoder
  • a91728d feat(webp): pure Mojo VP8L lossless decoder with libwebp-oracle fixtures
  • 80179f5 fix(gallery): preset buttons share the row equally
  • 24367b7 fix(gallery): style button on its own row inside the panel
  • c8c8a90 feat(assets): 29 style backgrounds and 232 icons
  • 4307fb4 feat(assets): style-assets.sh packs per-style backgrounds and icon atlases
  • ad63dd5 feat(styles): 29 theme presets measured from ComfyUI style swatches
  • e263d25 docs(rules): gpu-wait jobs get PATH and HOME passed explicitly
  • 5b978b9 docs(plans): 28 style themes and assets from the ComfyUI stock styles
  • 26be1ab docs(readme): gallery screenshots in the three presets
  • 5a4432b chore(gallery): submit the render as a shared 2 GB GPU job
  • 495cf83 fix(ci): resolve the CJK fallback font per distro
  • ca2e844 docs(rules): bump pyproject version with every release

mojo-imkit v0.9.0

Choose a tag to compare

@amarbarosys amarbarosys released this 10 Nov 09:18

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_decode picks 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, kv widgets.

Changes

Added

  • imkit.jpeg (jpeg_decode), imkit.webp (webp_decode), image_decode routing in imkit.assets.
  • imkit.styles (style(name), STYLE_NAMES), generated by tools/gen_styles.mojo from ComfyUI swatches; imkit.contrast (contrast, theme_faults).
  • Themes amarbaro() and amarbaro_light() from the amarbaro.com brand tokens.
  • Widgets heading, caption, separator, badge, kv.
  • assets/styles/<name>/bg.jpg and icons/*.png; scripts/style-assets.sh builds the raw atlases into .work.

Changed

  • flat and neon controls 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

  • b995b3b docs(readme): amarbaro and built-in shots, eight generated styles, WebP and styles modules
  • e412c05 feat(assets): amarbaro style background and icons (style-assets PASS, 30 styles)
  • d8436c9 docs(api): new widgets, amarbaro and generated themes, contrast, WebP
  • 78fa013 feat: amarbaro themes, heading/caption/badge/kv/separator, 6 font sizes, visible controls
  • 915d7c0 docs(reports): webp lane report with fixture numbers, mutants and memory
  • ee072cc docs(rules): webp lane mistakes
  • c534c5a feat(webp): lossy VP8 key frames and the ALPH chunk, bit exact against libwebp
  • 45b7228 docs(jpeg): api, README row, rules, lane report
  • 961c027 test(jpeg): bit-exact bar and a fuzz run
  • 2649441 feat(assets): image_decode picks JPEG or PNG by signature, pack uses it
  • 7db7c88 perf(jpeg): baseline blocks are transformed as they are decoded
  • 7603983 feat(jpeg): pure Mojo baseline and progressive JPEG decoder
  • a91728d feat(webp): pure Mojo VP8L lossless decoder with libwebp-oracle fixtures
  • 80179f5 fix(gallery): preset buttons share the row equally
  • 24367b7 fix(gallery): style button on its own row inside the panel
  • c8c8a90 feat(assets): 29 style backgrounds and 232 icons
  • 4307fb4 feat(assets): style-assets.sh packs per-style backgrounds and icon atlases
  • ad63dd5 feat(styles): 29 theme presets measured from ComfyUI style swatches
  • e263d25 docs(rules): gpu-wait jobs get PATH and HOME passed explicitly
  • 5b978b9 docs(plans): 28 style themes and assets from the ComfyUI stock styles
  • 26be1ab docs(readme): gallery screenshots in the three presets
  • 5a4432b chore(gallery): submit the render as a shared 2 GB GPU job
  • 495cf83 fix(ci): resolve the CJK fallback font per distro
  • ca2e844 docs(rules): bump pyproject version with every release

mojo-imkit v0.8.1

Choose a tag to compare

@amarbarosys amarbarosys released this 09 Nov 22:21

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_assets overwrite, DPI scale for glass and icons, missing font sizes, scroll/axis with zero or NaN.

Changes

Added

  • tools/membench (bytes, mallocs, compose time) and tools/uibench (CPU frame time).
  • scripts/ci.sh dry-runs the mutants.

Changed

  • Layer.scene, Layer.pixels and the host font atlas are allocated when first used.
  • push drops 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/gallery binary +1.1 %.

Upgrade / run

None

Commits

  • e20b1b7 ci: dry-run the mutants in ci.sh; repair the two push mutants; docs and report
  • 7cbbe52 perf(draw): one vector clamp and NaN test in push
  • 45204fe fix(ui): scroll rows and axis labels survive zero, NaN and huge numbers
  • 2b95130 fix(font): glyph cache key keeps size slots 16 and up apart
  • def3b03 fix(draw): a font size index the font lacks draws nothing
  • 16c3986 perf(layer): allocate the pinned pixels buffer on the first readback
  • d8b13b4 perf(font): hold only the atlas rows in use on the host
  • 9434c66 perf(layer): allocate the scene buffer on the first set_scene
  • 781e172 fix(layer): set_image and set_assets no longer erase each other
  • 6284716 fix(draw): NaN commands drop, infinite coordinates clamp
  • 20b7084 fix(assets): png_decode refuses a bad IHDR length and an oversized picture
  • 696025b fix(ui): field Backspace and tail cut on UTF-8 code points
  • 4d9e547 fix(ui): glass and icon_img follow the DPI scale
  • e9f22df fix(draw): end the old clip when a new one replaces it
  • 882fc71 tools: membench, a memory and speed ledger of the demo frame
  • 732b335 docs(rules): mistakes from the v0.8.0 lanes and merge

mojo-imkit v0.7.2

Choose a tag to compare

@amarbarosys amarbarosys released this 08 Nov 23:02

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 to UI_IMG pixels) in the image pool.
  • Ui.field and Input.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.button takes a color.

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.button takes a color (default: the accent). Input has an explicit constructor so text can default; every existing Input(...) call builds unchanged.

Fixed

  • Window.push(EV_TEXT) handed SDL a pointer into a string freed when push returned; SDL reads it at poll(). A literal hid the bug; a run-time string polled back garbage. Window now keeps the bytes alive until poll() 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.text carries UTF-8 as SDL sends it; field drops 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

  • 7b7cf08 build: bump version to 0.7.2
  • 1514006 feat: typed text, text fields, set_image, button colour (dev v0.7.0 and v0.7.1 work)

mojo-imkit v0.6.3

Choose a tag to compare

@amarbarosys amarbarosys released this 07 Nov 14:40

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.md and 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

Upgrade / run

None: no code or API change.

Commits

git log v0.6.2..v0.6.3

mojo-imkit v0.6.2

Choose a tag to compare

@amarbarosys amarbarosys released this 04 Nov 14:37

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_test needs.

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

Upgrade / run

uv sync

Commits

  • bc44b14 ci: install libfreetype6 with the font
  • dc31a28 ci: install DejaVu before the gate
  • ea91462 fix(release): pyproject.toml, recipe.yaml and uv.lock say 0.6.2
  • 090dce8 docs: docstrings point at docs/design.md
  • 7734441 build: conda recipe, docs/design.md lower case
  • 65796f0 fix: build on Mojo 1.3 nightly
  • 1c09f2d refactor(ui): delete fmt, unreferenced in the repo
  • d9a9d7f fix(release): pyproject and uv.lock say 0.6.1, the version of the latest tag
  • dbae9d6 docs: CI, latest-release and license badges

mojo-imkit v0.6.1

Choose a tag to compare

@amarbarosys amarbarosys released this 29 Oct 21:12

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

Upgrade / run

uv sync   # installs Mojo 1.2.0 and MAX 26.7.0

Commits

  • 66f7030 docs: toolchain is Mojo 1.2
  • 1623944 build: Mojo 1.2.0 / MAX 26.7.0
  • eab109d ci: build for gfx1100 by name

mojo-imkit v0.6.0

Choose a tag to compare

@amarbarosys amarbarosys released this 26 Oct 14:07

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.sh for the CPU gates, a CPU Ui test, API page and quickstart.

Changes

Added

  • imkit.audio.Audio; tests/ui_cpu_test.mojo; examples/quickstart.mojo; scripts/ci.sh.

Changed

  • tools/gate.sh is scripts/local_gate.sh (GPU and window gates); tests take the font from IMKIT_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

  • Audio has 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.0 public packaging and Audio