Skip to main content
The Zap media FS is a content-addressed store for generated media on med and heavier runtimes, rooted at /zap/media. It is provided by the mediafs.core plugin and available at boot on zap-med and heavier templates.

Layout

kind is image | audio | video | 3d; the extension derives from the sidecar MIME type. Same bytes → same path: put hashes the content (SHA-256), writes once, and is idempotent on re-puts of identical bytes.

Sidecars

Every object has a JSON sidecar validated by mediaSidecarSchema (@wzrdtech/zap-runtime/mediafs): schema version, sha256, kind, mime, bytes, createdAt, and optional provenance — runId, stepId, provider, model, prompt, parents (input hashes), ffmpegPreset, usd, dimensions, and duration. Sidecars never contain secrets.

API

  • list filters on kind, provider, model, and runId.
  • link hardlinks (same inode) into project directories under /zap/fs, so projects reference media without copying bytes.
  • FFmpeg preset outputs are recorded with ffmpegPreset set; gateway media results are recorded with provider/model/usd.

CLI