Skip to main content

nanoframes

SVG-first, browserless, deterministic frame rendering on ThorVG.

nanoframes is an offline counterpart to hyperframes: the same idea — write a frame, render a video, built for agents — but without a browser. Compositions are authored as SVG documents plus a small declarative animation timeline, and every frame is rasterized deterministically by ThorVG (thorvg-python) to PNG, then muxed to MP4 with FFmpeg.

Because nothing depends on a browser, an AI agent can render a frame or a whole clip locally in milliseconds and iterate fast: checkpreviewrender.

Status

v1 complete. Full offline pipeline works end-to-end: initcheckrender/previewvideo. SVG compositions + declarative keyframe timeline are rendered deterministically by ThorVG; MP4 export via ffmpeg; visual snapshots guard regressions. Text auto-layout (measured chips, wrap, curve, fit) + a bundled monospace CJK font (Sarasa Mono SC, ligatures stripped) for solid Chinese.

Layout

docs/             architecture + composition contract
examples/         `.nf.svg` compositions
skills/nanoframes/ SKILL.md — the agent production loop
nanoframes/       package (model, parser, timeline, bake, render, lint, cli, video)
tests/            unit + render + snapshot + CLI tests

Docs

  • Architecture — why SVG + ThorVG, the pipeline, scope decisions.
  • Composition — the .nf.svg contract (timing attributes + animation timeline).
  • Text capabilities — measured chips/wrap/curve/fit, bundled CJK font, text_handler escape hatch.

docs/ and skills/ also ship inside the pip wheel (nanoframes/docs, nanoframes/skills); running nanoframes with no arguments prints where the docs and the agent skill live — repo checkout or installed package alike.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nanoframes-0.1.0.tar.gz (13.4 MB view details)

Uploaded Source

File details

Details for the file nanoframes-0.1.0.tar.gz.

File metadata

  • Download URL: nanoframes-0.1.0.tar.gz
  • Upload date:
  • Size: 13.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for nanoframes-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eef63bf1b577e260b2585b1936d049d57c1a94c62617006240a40e691d624bb6
MD5 8bb46a5cc46366b07bb66c699e2c9842
BLAKE2b-256 5e2078d25f67355f91492f8be657943984e3d21d3032960e5c8b7731c0cb255d

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.12

1 file

0.2.11

1 file

0.2.10

1 file

0.2.9

1 file

0.2.0

1 file

0.1.11

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

This release

0.1.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page