Low-level Relish wire format implementation for encoding and decoding binary data.
This package provides type-safe value construction, encoding to bytes, and decoding
back to JavaScript values following the Relish binary serialization specification.
This package implements the low-level wire format only. For type-safe schema
validation and TypeBox integration, use @grounds/schema. For streaming encoding
and decoding, use @grounds/stream.
Key characteristics:
Encoding uses wrapped RelishValue types for type safety
Decoding returns raw JavaScript DecodedValue for convenience
All operations return neverthrow Result types for functional error handling
Low-level Relish wire format implementation for encoding and decoding binary data.
This package provides type-safe value construction, encoding to bytes, and decoding back to JavaScript values following the Relish binary serialization specification.
Example
Quick start - encoding:
Example
Quick start - decoding:
Remarks
This package implements the low-level wire format only. For type-safe schema validation and TypeBox integration, use
@grounds/schema. For streaming encoding and decoding, use@grounds/stream.Key characteristics:
See