Kiwi Schema is a schema-based binary serialization format for encoding hierarchical data efficiently. Version 0.5.0 is current, with no established release cadence. It compiles schemas to optimized JavaScript code for encoding and decoding, aiming to be smaller and faster than JSON for structured data. Unlike Protocol Buffers or FlatBuffers, Kiwi is focused on tree-shaped data and JavaScript-first usage.
npm install kiwi-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic schema compilation, encoding an object to binary, and decoding back.
Pin to exact version and test upgrades.
Learn the Kiwi schema grammar as documented.
Use int64 for large numbers, or ensure values fit within ranges.
Ensure the schema is valid per Kiwi grammar: use 'string', 'int32', 'int64', 'float64', etc., with correct syntax.
Use `import { compile } from 'kiwi-schema'` (ESM named import).Ensure the same compiled schema object is used for both encode and decode.
No dependency data recorded yet.