Skip to content

tracking: move FxLedmapper32x32 binary assets to FastLED/assets with build-time resolution #3974

Closed

Description

@zackees

Summary

Tracking issue. Move large binary example assets out of the FastLED source tree into FastLED/assets, resolved at build time by fbuild and at preview time by fastled-wasm.

Problem

examples/Fx/FxLedmapper32x32/data/ carries ~10.2 MB of binaries:

File Size Note
video1.rgb 6,051,840 B 1,970 frames, 32x32 RGB888 (3,072 B/frame)
ledmapper-32x32-video1-asset.zip 4,104,176 B duplicates video1.rgb + screenmap.json + readme
screenmap.json 13,790 B small; sha256 a6851e...5993d7

Binary blobs in git are permanent — they stay in history after deletion, are re-downloaded on every clone, and bloat every worktree. The .zip is pure duplication of files sitting beside it and should never have been committed.

Target state

  • video1.rgb and the .zip are removed from this repo
  • video1.rgb is hosted in FastLED/assets, reachable by raw GitHub URL (CDN-fronted)
  • The sketch resolves it at build time via fbuild
  • WASM preview and SD-card hardware playback both still work

Dependencies

Repo Issue Role
FastLED/fbuild #1354 build-time asset resolution, sha256-verified, globally cached
FastLED/assets #1 hosting, manifest.json (zackees/manifest.json), CDN
zackees/fastled-wasm #215 resolve remote assets into the WASM VFS

Acceptance criteria

  • video1.rgb and ledmapper-32x32-video1-asset.zip no longer exist in this repo
  • video1.rgb is served from FastLED/assets via a raw GitHub / CDN URL
  • FxLedmapper32x32 compiles for WASM and renders in preview
  • bash lint passes
  • bash test --cpp passes

Notes

  • screenmap.json (13.8 KB) is small enough that hosting it remotely is optional; the argument for moving it is consistency, not size.
  • FxLedmapper32x32 has never been compiled or previewed — this work is the first real verification of that example.
  • The .zip should be deleted outright, not migrated. A manifest makes hand-rolled bundles unnecessary.

Activity

  1. zackees commented on Aug 22, 2026

    @zackees
    MemberAuthor

    Tracked in the meta issue: #3986 — remote assets: hosting, build-time resolution, and on-device filesystem deployment.

  2. zackees commented on Aug 23, 2026

    @zackees
    MemberAuthor

    Done — acceptance criteria verified

    • video1.rgb and ledmapper-32x32-video1-asset.zip no longer exist in this repo. Neither was ever committed (the directory was untracked), so this was preventive — no git history to purge.
    • video1.rgb is served from FastLED/assets. Raw and jsDelivr both return HTTP 200 with byte-identical content (sha256 164804d9…bbdd2282, 6,051,840 bytes).
    • FxLedmapper32x32 compiles for WASM. bash compile wasm --examples FxLedmapper32x32 → [WASM] Build successful!
    • bash lint passes.
    • bash test --cpp passes.

    End-to-end proof

    The generated fastled_js/asset_manifest.json resolves the sidecar to the remote URL with integrity metadata:

    {
      "data/video1.rgb": {
        "fallback": null,
        "sha256": "164804d94802dd96cd8cd37f7528ca6d30f8fd9396e812fe67ec6164bbdd2282",
        "size": 6051840,
        "url": "https://raw.githubusercontent.com/FastLED/assets/main/examples/FxLedmapper32x32/video1.rgb"
      }
    }

    The size field is present because #3990 taught the scanner fbuild's JSON .lnk schema — before that merge, this sidecar was unreadable by the scanner entirely.

    Not verified

    Rendering in a browser preview. That needs a live browser session and is covered by FastLED/cli#215, which tracks whether the VFS fetches the remote asset at runtime or fbuild materializes it at build time.

    Related merged work

    Closing. The device-side half — getting assets onto LittleFS rather than an SD card — is tracked separately in #3984 and FastLED/fbuild#1358 under the meta issue #3986.

  3. moved this from Triage to Done in FastLED Trackeron Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions