A screen effect plays in an overlay the host app places above its own screens — no camera, no face. It is a product of its own: this manifest is independent of the face lens manifest (manifest-v1.md), with its own enums, schema, fixtures and rendering rules (effect-rendering-v1.md). Both manifests ship in the git tag format-v1.0.0.
manifest-v1.md
effect-rendering-v1.md
format-v1.0.0
{ "formatVersion": 1, "effectId": "<uuid>", "version": 1, "minEngineVersion": 1, "durationMs": 2500, "layers": [], "triggers": [], "animations": [], "assets": {} }
durationMs
layers
triggers
animations
assets
<name>_<first 8 hex of sha256>.png
{ sha256, bytes }
type
format-v1.2.0
gradient.direction
fit
sheet.endBehavior
visible
show
play sprite
motion
source
count
{ "type": 6, "animation": "<clip id>" }
modelClip
property
scene3d.lighting
easing
endBehavior
combine
Lifecycle names: effect.started, effect.ended. Host names: any ^[a-z][a-z0-9_.-]{0,63}$ — the platform defines the mechanism, the customer the vocabulary. Triggers have no threshold.
effect.started
effect.ended
^[a-z][a-z0-9_.-]{0,63}$
threshold
Every layer has id (^[a-z][a-z0-9_-]{0,31}$, unique) and visible.
id
^[a-z][a-z0-9_-]{0,31}$
asset
origin {x, y}
emitter { ratePerSecond 0–300, lifetimeMs 100–10 000, speed 0–2, directionDeg −180–180, spreadDeg 0–360, sizeScale 0.01–1, gravity −2–2 }
burstCount
maxParticles
sheet { frameWidth, frameHeight 1–1024, frameCount 1–256, fps 1–60, loop, endBehavior }
startMs
intensity
frequencyHz
position {x, y}
scale
rotationDeg
opacity
sheet
position
color
#rrggbb
gradient
{ color, direction }
gradient.color
A colour wash tints the whole overlay at its array position (over the layers before it); it never reads or regrades the host app's own pixels — an overlay cannot — and no motion moves it (effect-rendering-v1.md §E11).
Lengths (particle speed, gravity, sizeScale, image and sprite scale) are multiples of S = min(overlay width, overlay height).
speed
gravity
sizeScale
S = min(overlay width, overlay height)
A clip animates one layer over its own time; the rendering rules are effect-rendering-v1.md §E10.
{ "id": "bounce-in", "layer": "badge", "durationMs": 800, "loop": false, "autoplay": true, "startMs": 0, "endBehavior": 1, "tracks": [ { "property": 3, "keys": [{ "atMs": 0, "value": 0.1, "easing": 6 }, { "atMs": 800, "value": 0.5, "easing": 1 }] } ] }
layer
loop
autoplay
tracks
keys
atMs
Properties each layer type may animate, and each property's key range:
position.x
origin.x
position.y
origin.y
Motion layers (3) animate nothing. Tables in code: EFFECT_ANIMATABLE_PROPERTIES, EFFECT_ANIMATION_VALUE_RANGE, MAX_ANIMATIONS (16), MAX_TRACKS_PER_ANIMATION (6), MAX_KEYS_PER_TRACK (32). The features above are engine level 1.
EFFECT_ANIMATABLE_PROPERTIES
EFFECT_ANIMATION_VALUE_RANGE
MAX_ANIMATIONS
MAX_TRACKS_PER_ANIMATION
MAX_KEYS_PER_TRACK
Engine 3 additions (format-v1.2.0) — the face lens's lanes and custom curves, and combine modes on both manifests (effect-rendering-v1.md E10.7, E10.8):
lane
8
curve: { x1, y1, x2, y2 }
x1
x2
y1
y2
drive
Tables in code: EFFECT_ENGINE_LEVEL_BY_FIELD (lane, curve, combine — any presence counts), EFFECT_ENGINE_LEVEL_BY_EASING (8 → 3), ClipCombine. Example: fixtures/effect/valid/animated-v3.json.
EFFECT_ENGINE_LEVEL_BY_FIELD
curve
EFFECT_ENGINE_LEVEL_BY_EASING
ClipCombine
fixtures/effect/valid/animated-v3.json
A screen effect can place 3D models — GLB files (glTF 2.0 binary) in the Mirage GLB v1 profile — in the overlay. Everything 3D is engine level 4: an engine-3 SDK reports such an effect as too new.
Model (type 7) — asset (a .glb name), position {x, y} in overlay fractions on the z = 0 plane, z in [−2, 2] multiples of S towards the viewer, rotationDeg {x, y, z} each in [−180, 180], scale in (0, 2] × S per model unit, opacity, and an optional modelClip { index 0–3, loop, autoplay } naming one of the GLB's own clips. It may animate properties 1–5 and 7–9.
.glb
z
index
Model copies (type 8) — asset, scale, copies { count 1–40, spawn { x 0–1, y −1–0 (above the top edge), spreadX, spreadY }, gravity 0–20 overlay heights per s², bounce 0–1, spinDegPerS 0–1440, lifetimeMs 100–10,000 }, tilt (gravity follows the device) and burstOnShow. Show (1) or emit (4, count ≤ 40) starts a burst. It animates nothing.
copies
spawn
spreadX
spreadY
bounce
spinDegPerS
lifetimeMs
tilt
burstOnShow
scene3d (optional) — lighting 1–4 and exposure 0.4–1.8. Absent = Studio at 1.0. It has no occluder: a screen effect has no face.
scene3d
lighting
exposure
occluder
GLB assets — named <name>_<first 8 hex of sha256>.glb; the entry adds model { triangles, textures, clips }, computed by the API at upload. Caps: 20,000 triangles, 4 textures, 4 clips and 1 MiB per GLB; 100,000 triangles drawn per frame (every model plus every copies layer's count × triangles). The package cap (3 MiB) counts GLBs like PNGs. Layer types 1, 2, 4 and 5 still take PNG names only; types 7 and 8 take GLB names only (a schema rule). The GLB itself must fit the Mirage GLB v1 profile: checkGlb(bytes) in src/glb.ts checks it and returns the model stats (or the first refusal, in plain words). The API refuses uploads with it and the editor shows the same words before uploading (docs/api/models.md).
<name>_<first 8 hex of sha256>.glb
model
triangles
textures
clips
checkGlb(bytes)
src/glb.ts
docs/api/models.md
Tables in code: EFFECT_ENGINE_LEVEL_BY_LAYER_TYPE (7, 8 → 4), EFFECT_ENGINE_LEVEL_BY_ANIMATION_PROPERTY (7–9 → 4), EFFECT_ENGINE_LEVEL_BY_FIELD (scene3d, a .glb asset, model stats → 4), the caps MAX_MODEL_* and MAX_DRAWN_TRIANGLES. Example: fixtures/effect/valid/model-3d.json — a trophy that spins (property 9) and plays its own clip, and 24 coins that rain with tilt on the host event purchase.completed.
EFFECT_ENGINE_LEVEL_BY_LAYER_TYPE
EFFECT_ENGINE_LEVEL_BY_ANIMATION_PROPERTY
MAX_MODEL_*
MAX_DRAWN_TRIANGLES
fixtures/effect/valid/model-3d.json
purchase.completed
packages/format/schema/effect.v1.schema.json
packages/format/fixtures/effect/valid/
packages/format/fixtures/effect/invalid/
description
base
fixtures/effect/valid/
.json
patch
add
remove
replace
expectedIssues
rejectedBySchema: true
confetti.json
background-sprite.json
trophy.json
animated.json
colour-wash.json
animated-v3.json
Semantic rules run only on a schema-valid manifest. Only the path + code of a semantic issue are normative; a schema failure only has to be rejected.
path
code
layer.duplicate_id
/layers/i/id
asset.missing
/layers/i/asset
asset.unused
/assets/<name>
package.too_large
/assets
assets[*].bytes
>
particles.too_many
/layers
timing.exceeds_duration
/layers/i/durationMs
startMs + durationMs > durationMs
/layers/i/startMs
startMs ≥ durationMs
trigger.unknown_event
/triggers/i/event/name
trigger.unknown_layer
/triggers/i/actions/j/layer
action_mismatch
trigger.unknown_animation
/triggers/i/actions/j/animation
animation.duplicate_id
/animations/i/id
animation.unknown_layer
/animations/i/layer
animation.property_not_animatable
/animations/i/tracks/j/property
animation.duplicate_property
animation.keys_out_of_order
/animations/i/tracks/j/keys/k/atMs
animation.key_outside_clip
animation.value_out_of_range
/animations/i/tracks/j/keys/k/value
animation.autoplay_conflict
/animations/i/autoplay
animation.curve_missing
/animations/i/tracks/j/keys/k/easing
animation.curve_not_applicable
/animations/i/tracks/j/keys/k/curve
/animations/i/startMs
trigger.action_mismatch
/triggers/i/actions/j
trigger.no_model_clip
trigger.emit_over_copies_cap
/triggers/i/actions/j/count
model.stats_missing
model.stats_not_applicable
/assets/<name>/model
model.too_big
/assets/<name>/bytes
model.triangles_over_cap
/assets/<name>/model/triangles
model.textures_over_cap
/assets/<name>/model/textures
model.clips_over_cap
/assets/<name>/model/clips
model.clip_out_of_range
/layers/i/modelClip/index
scene.triangles_over_cap
engine.too_low
/minEngineVersion
minEngineVersion
colour-wash-engine-too-low.json
animation-lanes-engine-too-low.json
model-engine-too-low.json
scene3d-engine-too-low.json
model-track-engine-too-low.json
Decode-time check, run by the API at validate and publish: asset.sheet_too_small — for a type 2 or type 5 layer, frameCount must not exceed floor(width / frameWidth) × floor(height / frameHeight) of the asset's actual pixel size.
asset.sheet_too_small
frameCount
floor(width / frameWidth) × floor(height / frameHeight)
formatVersion changes only on a breaking change to this document. Adding a layer type or an event source is not breaking: it raises that feature's engine level (EFFECT_ENGINE_LEVEL_BY_LAYER_TYPE, EFFECT_ENGINE_LEVEL_BY_EVENT_SOURCE in constants.ts), and a renderer compares minEngineVersion with its own engine version before it validates strictly. Until the first effect is published and the SDKs' 1.0.0 ship, every v1 change is part of the tag format-v1.0.0 (the tag is moved and the SDKs re-pin it).
formatVersion
EFFECT_ENGINE_LEVEL_BY_EVENT_SOURCE
constants.ts
One engine number covers both manifests: an SDK states one engine version. Engine 2 came with format-v1.1.0 (face-lens features only), so the colour wash (layer type 6, format-v1.2.0) is engine 3: an engine-2 SDK reports such an effect as too new and never draws it partly.
format-v1.1.0
Engine 4 (3D, format-v1.4.0, tagged 2026-11-10 for screen effects alone; face-lens 3D follows as engine 5, format-v1.5.0): model and copies layers, GLB assets with their stats, action 7, track properties 7–9 and scene3d. An engine-3 SDK reports such an effect as too new and never draws it partly. Property 7 used to be an unknown property in the fixture animation-unknown-property.json; that fixture now uses 10.
format-v1.4.0
format-v1.5.0
animation-unknown-property.json