← Project manifest

Assets

luastra.json · schema v2
assets[]

Admitted project files.

When to use it

Read this page when you need to apply Assets, verify its exact contract, and adapt the example without bypassing validation or host boundaries.

  • Optional, default empty; maximum 256 entries. Each requires unique id and source under assets/, plus mediaType. The file must exist inside the project.
  • Supported: image/avif, image/jpeg, image/png, image/webp, audio/mpeg, audio/mp4, audio/ogg, audio/wav and font/woff2. File contents and byte budgets are also validated.
  • Reference IDs through Assets.image, Assets.audio or Assets.font. Startup images/fonts use this same registry. These assets ship to clients.

Focused example

"assets": [
  {
    "id": "image/card-back",
    "source": "assets/card-back.png",
    "mediaType": "image/png"
  }
]

Complete inventory

View all pages in Project manifest
← Previous: Web metadataNext: Capabilities →