2D static, animation, and 3D PBR in one declarative scene graph.
KVG is a self-hosted-first universal vector format. A single document carries 2D primitives, motion graphs, 3D geometry, and procedural extensions — composable through four additive profiles. No external CDN refs, no proprietary dependencies, fully editable in plain text. Designed for icons today and cinema-grade content tomorrow.
Five principles that shape every choice in the spec.
Zero external URL refs. Every font, texture, and asset is embedded. A document is byte-distributable and offline-executable.
KSS — KVG Source Syntax — designed for scene graphs. Not TOML, not JSON, not KDL. Native hierarchy, positional shorthands, three embedded notations (paths, colors, vectors).
Math-class native. Aligns with 3D industry (glTF, Blender, Maya, Unity) and engineering. SVG's Y-down is left at the import boundary.
Files written in 2026 must render in 2036. Major bumps come with mandatory upgrade tooling. Legacy primitives never disappear in minor or patch.
The kgen DSL embeds procedural generation directly in the document. No closures, no recursion, no I/O — deterministic, bounded, sub-100 KB.
Additive capability tiers. Renderers declare what they support; documents declare what they need.
2D static. Paths, gradients including Coons mesh, filters, masks, text.
Core + timeline + state machine + constraints (look-at, follow-path, IK 2-bone).
Core + 3D meshes, PBR materials, lighting, cameras. glTF-equivalent capability.
Animated + Spatial. Cinema-grade scene description in a single document.
Specification freeze, implementation in progress.
0.1.0The full v0.1.0 spec — 19 sections, ~1300 lines.
The HTML render of the complete specification will be served at
kvg.koder.dev/spec once the rendering pipeline is live. In the
interim, an excerpt of the structure:
| Section | Topic |
|---|---|
| §0–0.5 | Why a new format · Development philosophy · Principles |
| §1–3 | Goals · Non-goals · Profile architecture |
| §4 | File format — KSS source syntax · binary serialization · versioning |
| §5–7 | Coordinate system · Object model · Embedded notations (KPN, KCN, KVN) |
| §8–10 | Color & material · Animation · 3D solids |
| §11–13 | Extensions (kdef, kgen) · Self-hosted constraints · kgen language reference |
| §14–18 | Profile conformance · Reference toolchain · Migration paths · Open questions · Roadmap |
Semantic versioning with hard rules about legacy preservation.
| Bump | Meaning |
|---|---|
major | Breaking change. Mandatory kvg upgrade migration tool ships with the new major. |
minor | Additive only. v0.1 documents render unchanged in v0.2 renderers. |
patch | Clarification or bugfix to the spec text. Zero observable capability change. |
Capability strings on individual nodes (requires=["ik-2bone"]) provide
graceful degradation within a profile, with optional fallback subtrees.
Adjacent formats and standards consulted in the design.
| Spec | Relationship |
|---|---|
| SVG (W3C) | Static 2D ancestor. KVG's KPN path notation is intentionally compatible with SVG path data. |
| glTF 2.0 (Khronos) | 3D PBR alignment. KVG's Spatial profile mirrors glTF's metallic-roughness model. |
| Lottie / Rive | Animation prior art. KVG's Motion profile draws from Rive's state-machine API. |
| USDA (Pixar) | Scene graph conventions and textual format ergonomics. |
| KDL Document Language | Influence on KSS syntax shape (hierarchical, bareword-friendly). |