peechy is a schema-based binary serialization format for efficiently encoding trees of data. It is designed for high performance and compact encoding of complex nested structures. Version 0.4.310 is actively developed. Unlike Protocol Buffers or FlatBuffers, peechy focuses on encoding trees with minimal overhead and supports JavaScript/TypeScript natively. It uses a schema definition language and generates efficient encoders/decoders. The package ships TypeScript types and is intended for Node.js and browser environments where binary size and speed are critical.
npm install peechyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define a schema, encode a JavaScript object into binary, and decode it back.
Use Map or ensure object keys are in consistent order. Alternatively, use arrays of tuples.
Re-encode data using the new library version. Cannot decode old buffers.
Use 'string' instead of 'String' in schema definitions.
Use optional fields with defaults: { name: 'string', age?: 'uint8' }.Use 'encode' and 'decode' with ArrayBuffer or direct Buffer handling.
npm install peechy
Use import { encode } from 'peechy' instead of const peechy = require('peechy').Change 'String' to 'string' in schema definition.
Check schema definition: { name: 'string', age: 'uint8' }.No dependency data recorded yet.