#2605·airi

Move optional display models to CDN

Author: nayounsangCreated Sep 19, 2026Updated Sep 21, 2026
Labelsapps/stage-tamagotchiscope/engineering

Clear and concise description of the problem

The purpose is to reduce desktop app bundle size.

The desktop stage-tamagotchi bundle includes optional display model files that increase the packaged application size.

The optional models are Hiyori Free and VRM AvatarSample A/B. moved these models to the CDN while keeping Hiyori Pro bundled. But, offline users will be received Failed to fetch errors for Live2D and VRM models. This is trade off.

Model Size
Hiyori Free 12.44 MiB
AvatarSample A 25.54 MiB
AvatarSample B 27.02 MiB
Total 65.01 MiB

You need to verify this table yourself again through benchmarking.

Artifact Existing Estimated after CDN delivery Reduction
Renderer output 333.81 MiB 268.81 MiB 19.5%
app.asar 1,297.11 MiB 1,232.10 MiB 5.0%
Unpacked macOS application 1,803.94 MiB 1,738.94 MiB 3.6%
app.asar.unpacked 212.80 MiB 212.80 MiB 0%

Suggested solution / Ideas

Two things come to mind:

  1. No offline support.
  2. Online connection required only for the initial run (via caching), with offline operation possible thereafter.

Alternative

There may be other ideas. I would appreciate feedback.

Additional context

This is a sub-issue of this issue: #1719 Conducted PoC in #2603: https://github.com/moeru-ai/airi/pull/2603/changes/7673a99a9e589e0d79f89180448a02b03fe5338a

Validations