@sandom/gif
v0.1.0
Published
Deterministic GIF encoding from indexed animation frames in WebAssembly.
Readme
@sandom/gif
Deterministic GIF89a encoding from explicit palettes and indexed animation frames, implemented entirely in maintained WebAssembly text.
The encoder accepts logical dimensions, a packed RGB palette, frame rectangles, indexed pixels, delays in hundredths of a second, disposal, transparency, and an optional loop policy. It emits local color tables and full 12-bit GIF LZW. Color quantization, canvas comparison, timing selection, capture, decoding, and file I/O remain outside this package.
Runtime forms
@sandom/gif/gif.wasmis standalone WebAssembly with private memory, allocation, automatic output growth, and retained encoder state.@sandom/gif/gif.manifest.jsonand@sandom/gif/watpart/*expose maintained source for composition. The embeddable form uses consumer memory and explicit state/output spans; it never allocates or grows memory.@sandom/gif/gif.watand@sandom/gif/gif.build.jsonexpose the reproducible standalone aggregate and its SHA-256 provenance.
The package and production source contain no JavaScript, TypeScript, .d.ts, C,
C++, or Rust. JavaScript is used only for repository tooling and tests.
See the ABI, composition, and DESIGN.md.
