Type-Safe GenericsCodec[T] and StreamCodec[T] use Go generics so encode/decode operations are statically typed at compile time.
Composable WrappersLayer gzip, flate, snappy, or zstd compression on any codec with a single function call using the decorator pattern.
Streaming SupportStreamCodec[T] reads and writes directly to io.Reader/io.Writer for memory-efficient pipelines and network I/O.
Atomic File I/OThe file codec writes to a temp file and renames into place, preventing partial writes and data corruption.
Zero DependenciesThe core module uses only the Go standard library. Submodules for yaml, json2, snappy, and zstd are separate imports.
Concurrent SafeAll codecs are safe for concurrent use. Stateless serializers share nothing between goroutines.