PRIMITIVE-AUDIT.md: what @openvidstudio/core lacks
The default output of this repo is rated "plain". This file says where that comes from, primitive by primitive. It is an audit, not a plan: it changes no code and promises no fix.
How it was done. Every export of packages/core/src/index.ts was opened in packages/core/src and read next
to its entry in API.md. Nothing here comes from rendering each primitive again, so a claim about how
something looks is a claim about what its source draws. Each entry says what the primitive does, what it lacks and
one reference to compare it to. The references are products and libraries a viewer may already know; naming one is
a yardstick, not a request to copy it. PRIMITIVES.md is the contributor API for adding one, and
AnimatedBeams is a finished example of the standard the gaps below are measured against.
Ranked gaps
Most visible to a viewer first. A viewer sees the first rows in every second of every video, and the last rows only in a beat that happens to use that primitive.
| # | Gap | Where | What a viewer sees | Compare to |
|---|---|---|---|---|
| 1 | One stage look for every video. The background is a fixed dark radial gradient of two tokens (bg1 to bg0), under a two-gradient "grade", film grain and a vignette. The only choice is variant: "dark" | "light" | CinematicScene, LookPass | Different products open on the same blue-black frame with the same grain. It reads as the tool's look, not the product's | Linear's and Vercel's launch videos, where the background carries the brand |
| 2 | Text arrives one way, and only in space-separated scripts. Words clips each word up, TitleSlam springs each word in, Caption wipes each word left to right. All three split on " ", so a Chinese or Japanese line is one "word" that wipes in as a block | Words, TitleSlam, Caption | Every title lands the same way. A CJK caption has no per-word reveal at all (see #194) | After Effects text animators (per character, per line, per range); Apple keynote type |
| 3 | Brand colours are bypassed by the panels. The panel bodies are literal hex (#10141D, #151A24, #0E1219), the three window dots are the macOS red, yellow and green in four components (BrowserFrame, CodePanel, TerminalReplay, Window), the syntax colours in CodePanel are fixed, RepoCta dips to #07090E, DotGrid and Flash default to white | BrowserFrame, CodePanel, ChecklistPanel, TerminalReplay, Window, RepoCta, DotGrid, Flash | A video for a warm-palette product still has navy panels. extract_brand changes the accent and the text, not the cards | Figma's own product videos, where UI chrome follows the file's tokens |
| 4 | Brand fonts are bypassed by the text components. They set Inter or JetBrains Mono as a string at module scope instead of calling uiStack() or monoStack() at render time, which tokens.ts says is the only way a brand font lands | TitleSlam, Caption, BrowserFrame, CodePanel, ChecklistPanel, RepoCta, TerminalReplay | The headline and every caption stay in Inter after the brand font was extracted. (Words, Window, JsonView, ToolChip, Pill, Glass and ChapterHud do read the stacks) | Any brand-led launch video |
| 5 | One device. BrowserFrame is a desktop browser window, and Window is a generic title bar. There is no phone, tablet or laptop frame, although vertical projects and viewports: ["phone"] capture exist | BrowserFrame, Window | A 9:16 video of a mobile capture is a rectangle on a background | Screen Studio and Rotato device mockups |
| 6 | A cursor that only moves and presses. CursorActor draws one arrow that arcs between keyframes and scales down on a click. No click ripple, no hover highlight, no label, and the camera does not follow it | CursorActor, DirectedShot's cursor | Clicks are felt only through the sound. The viewer must find the cursor | Screen Studio (auto-zoom to the cursor, click rings) |
| 7 | Backgrounds are one recipe. Atmosphere is drifting blurred radial blobs of four token colours at a fixed 900 px. DotGrid is the only texture. No mesh gradient, grid lines, noise field or image background | Atmosphere, DotGrid | Constructed beats all float on the same soft blobs | Stripe's gradient mesh; Raycast's launch pages |
| 8 | The "grade" is two translucent gradients. ColorGrade lays a warm and a cool soft-light gradient. There is no real grade (curves, LUT), no bloom or halation | ColorGrade, LookPass | The footage looks the same however it was lit | DaVinci Resolve LUTs; film halation plugins |
| 9 | Few ways to cut. TransitionOverlay has five (fade, whip, push, wipe, light-leak) drawn over a hard cut, plus PixelWipe. None uses the shots themselves: no match cut, no zoom-through, no shared element | TransitionOverlay, PixelWipe | Every cut is an overlay on a cut | Apple event cutaways; Framer's magic move |
| 10 | No data primitives in core. The one number primitive, count-up-stat, is a catalog entry that is copied into a project. There is no chart or progress ring in core or in the catalog. JsonView, Check and Pill are the only data-ish pieces in core | panels.tsx; the primitive catalog | A "numbers" beat has to be hand-built | Remotion's chart templates; Stripe's metrics animations |
| 11 | The terminal cannot scroll. TerminalReplay clips at the window height and its source says auto-scroll is for a later version, so a long session has to be cut by hand | TerminalReplay | A real session of any length does not fit | asciinema playback, Warp's demo videos |
| 12 | No layout primitives. Scenes place things with absolute pixels. The design system defines a grid of margins, and only ChapterHud reads it | designSystem.ts, every scene | Margins and alignment differ from scene to scene | A design system's layout grid; Figma auto layout |
| 13 | Sound has no variation. Seven built-in sounds, each one file. Every word of a TitleSlam plays the same Blip at the same pitch | sfx.tsx | The ear tires of it within a minute | UI sound libraries with pitch and velocity variants |
Entries, by primitive
Scene, camera and shots
CinematicScene. Wraps a scene in the stage, a CameraRig, an optional screen-space overlay and the look
pass. Stage size follows the composition. Lacks: any stage other than dark or light (gap 1); no background slot, so
a background has to be a child and sits inside the camera's move. Compare to: Remotion's own template compositions,
which leave the look to the author.
CameraRig, Layer, useCamera, resolveCamera, projectToScreen, Z_STEP. A virtual camera over an
oversized stage with keyframes, tilt and perspective, and layers that parallax and blur by depth. Lacks:
keyframes are written by hand in stage pixels; there is no way to say "look at this element". Compare to: After
Effects' 3D camera with a point of interest.
DirectedShot, directedKeyframes, resolveShot, SHOT_NAMES. Turns a flat capture into a directed move:
push-in, tilt, depth of field, handheld sway and a cursor in the capture's own pixels, with eight named shots.
Lacks: one focus point per shot, so a move across two areas is two shots; no follow-the-cursor mode; pushes past
1.6 soften text. Compare to: Screen Studio's automatic zoom.
LayeredShot. A DirectedShot over a background and separate element layers cut from a capture (layers
option of capture_screenshot), so a camera move shows parallax. Lacks: the layers are cut by CSS selector, so a
page whose structure changes needs the capture redone, and depth is a number per layer (a 0.5 spread in request
order by default) rather than something worked out from the page. Compare to: a 2.5D parallax
photo effect.
MotionBlur. Wraps children in Remotion's camera motion blur between two frames. Lacks: it applies to everything
inside it, with no way to blur just the camera move, and every frame is rendered samples times, so render time
rises by about that factor. Compare to: After Effects
motion blur with a shutter angle.
handheldOffset, holdWeight, useHandheld, impactShake, useImpactShake. Deterministic camera sway and
shake on impact frames, calmed during holds. Lacks: one noise recipe (sums of sines); no presets for a gimbal or a
dolly. Compare to: After Effects' Wiggle expression, which is also a noise recipe but with controls.
Text
TitleSlam. A big title where each word springs in with a clip wipe, with optional Blips. Lacks: one
entrance; splits on spaces (gap 2); the font is the fixed string Inter (gap 4); no auto-fit to a width, so a long
title wraps at its own flex-wrap. Compare to: Apple keynote slide type.
Caption, captionLayout. A glass card with a per-word wipe and an auto-out, placed on the edge farthest from
an avoid rectangle. Lacks: spaceless scripts reveal as one block; no highlighted or karaoke word timing, although
useNarrationWords has the word times; fixed Inter. Compare to: Descript and CapCut captions, which highlight
the spoken word.
Words, useTyped, Caret. The general per-word masked reveal (with accents, glow, an exit and a design
system stagger), and a typewriter hook with a caret. Lacks: word-level only; no per-character or per-line mode;
useTyped defaults to 22 characters a second with a little jitter. It is the best of the three text components and
the only one that reads the font stack. Compare to: After Effects text animators.
DotText, PixelLogo, PixelWipe. A 5x7 dot-matrix font, a logo assembled from its own rects, and a pixel-cell
wipe. Lacks: the font has capitals, digits and a handful of symbols only, no lowercase or non-Latin; they only suit a
brand whose identity is pixels. Compare to: LED dot-matrix signage.
Panels and chrome
BrowserFrame. A desktop browser window with traffic lights and an address pill. Lacks: tokens (gap 3), fonts
(gap 4), any other device (gap 5), tabs. Compare to: Screen Studio's window frames.
Window, JsonView, Check, Cross, ToolChip, Pill, Glass, ChapterHud. The UI chrome set: a titled
window, a JSON viewer that reveals line by line, status marks, chips, a frosted panel and a chapter progress HUD. They
read the font stacks and the tokens for accents. Lacks: Window uses fixed greys for its light mode and the macOS
dots; JsonView colours are fixed; ChapterHud is the only reader of the design grid. Compare to: Linear's
product shots, where chrome follows the theme.
CodePanel. A code window with line numbers, tokens of six classes and highlighted lines. Lacks: no syntax
highlighter, so a caller pre-tokenizes every line by hand; no diff view (a unified diff needs added and removed line
styling); fixed colours. Compare to: Shiki or Carbon output.
ChecklistPanel. A titled list whose items flip to checked at given frames, with a pop and a blip. Lacks: the
default title is "Community Standards"; the panel colours and font are fixed. Compare
to: Linear's release notes.
TerminalReplay, computeTerminalTimeline. A terminal that types commands and prints output on a timeline, with
sound. Lacks: no scrolling (gap 11), no colour from ANSI codes (colours are passed per line), fixed fonts and
body. Compare to: asciinema, Warp.
CursorActor, cursorPositionAt. An arrow cursor on an arcing path with an overshoot, and a press on a click.
Lacks: see gap 6. Compare to: Screen Studio's cursor.
RepoCta. A closing scene: a repository card with chips, a dip to black, a title and the repo URL. Lacks: one
layout; fixed #07090E dip; a 270 frame default. Compare to: the end card of any open-source launch video.
Backgrounds, look and transitions
Atmosphere, DotGrid, Flash, Black, Letterbox. Soft colour fields, a dot texture, an exposure flash, a
hold on black and cinematic bars. Lacks: gap 7; DotGrid and Flash default to white. Black and Letterbox
are fine as they are. Compare to: Stripe's gradient backgrounds.
FilmGrain, Vignette, ColorGrade, LookPass. The finishing layer: tiled noise, an edge darkening and a two
gradient grade. Lacks: gap 8. Compare to: DaVinci Resolve's film look presets.
TransitionOverlay, TRANSITION_TYPES, transitionEnvelope. Five transitions drawn over a hard cut in the
token colours, that peak on the cut frame. Lacks: gap 9. Compare to: Premiere's transition pack.
AnimatedBeams, beamCurve, beamProgress, beamDash. A light travelling along lines between anchor points,
frame-driven, brand-coloured, tested at three frames. Lacks: beams do not attach to elements, the anchors are
coordinates a caller must keep in step with the layout. This is the reference for how a primitive should be built
(frame-driven, tokens at render time, a still test, an API entry). Compare to: Magic UI's AnimatedBeam.
Motion, tokens and timing
E, SPRING, tween, pop, jitter, staggerDelay. The easing presets (linear is banned), springs, a clamped
tween and a seeded jitter. Lacks: six easings and three springs; no per-design-system easing set beyond naming one
of them. Compare to: Framer Motion's easing and spring options.
color, font, glow, panelShadow, radius, applyBrand, brandAssets, monoStack, uiStack. The mutable
design tokens extract_brand overwrites. Lacks: it is only as good as its consumers, and gaps 3 and 4 are where they
do not consume it. Compare to: design-token systems such as Style Dictionary.
defineDesignSystem, contrastRatio, defaults. A per-video design system (type scale, grid, motion, texture,
transitions). Lacks: three components read it: Words (the stagger), PixelWipe (its colours) and ChapterHud (its grid and
colours). The type scale, texture, motif and transition list are data that no core component draws from (gap 12). Compare to: Figma variables with modes.
MusicClockProvider, useMusicClock, createMusicClock, NarrationWordsProvider, useNarrationWords,
createNarrationWords. The score's beat grid and the narration's word times as scene-local frames. Lacks: hardly
any primitive consumes them: Caption does not highlight the spoken word and nothing pulses on a downbeat by default.
Compare to: Descript's word-synced captions; beat-synced motion in Premiere's Beat Markers.
TypingSfx, Click, Whoosh, Blip, SuccessChime, Bell, SoftClick, Bong, Drop, MusicBed. Sound
components over the built-in pack. Lacks: gap 13. Compare to: a UI sound library with variants.
Where to start
Gaps 3 and 4 are the cheapest and the broadest: they change what every extracted brand looks like, need no new
primitive, and follow the rule tokens.ts already states. Gap 2 is the one with a correctness side (spaceless scripts)
and is tracked in #194. Gap 1 is the largest in what a viewer sees and the least defined: it needs a decision on how
many stage looks to offer before any code.