Nippo vNext design
Nippo is a code-first video library in hd. A reusable visual component is an ordinary hd function of local time and typed inputs that returns structured visual content. The standard library supplies typography, layout, motion, media and finished looks through the same model.
These chapters say what Nippo is and how it is built. Research, comparisons, measurement history and the reasoning behind decisions are in ../background.md.
Goals
- Faster rendering and export than a matched Remotion baseline. Speed wins when it conflicts with effects: an expensive effect gets cheaper quality levels or is cut, and scenes without effects must not slow down.
- Richer ready-made looks with less authoring work. Authors are often agents. They can write shaders and recipes, so the core gives them primitives and the library gives them finished looks.
Principles
- hd owns the logic. Composition, layout, animation, effect recipes, pass planning, resource reuse, caching and media policy are hd. Rust compiles slowly and hd iterates fast, so code goes into native only when hd cannot do it.
- Native is a thin primitive host. Shaping, GPU resources and submissions, Vello drawing, compiling and dispatching supplied WGSL, decoding, encoding and output sinks. It never decides what a frame contains. See 5. Native boundary.
- The core is small and extensible; looks are library
code. One pixel primitive (a WGSL shader over other nodes),
vector drawing, layers, masks and clips. Glow, blur, reveals,
transitions and finishes are hd functions in
pkg.looksor in a project, written the same way. - Frames are pure and independently sampleable. I/O, generation and expensive preparation happen before rendering. Repeated or shuffled samples give the same result.
- GPU rendering only. Vello and WebGPU; no CPU raster fallback.
- Out of scope: browser compatibility, an editor or timeline UI, editor-project interchange, a native scene graph or ECS, general 3D modeling and physics. Ordinary images, fonts, audio, video and vector assets are in scope.
Chapters
- Authoring model: components,
Frame,Node,Clip,Video, projects - Time and motion: sampling, animation, clips, retiming, transitions, temporal effects
- Content: text and semantics, identity and morphs, captions, charts, templates, prepared assets
- Rendering model: nodes to display programs, vector drawing, shaders, compositing laws, the looks library
- Native boundary: what Rust does, the GPU command surface, media, color, output, caches
- Verification: agent workflow, checks, the example contracts
- Status and roadmap: what is built, current numbers, open work, milestones
The example projects in src/examples/ are the executable
reference for the API.