Repository

ebrevdo/msgspec-serde

msgspec-serde

Open github.com

ebrevdo/msgspec-serde

msgspec-serde

Performant serialization helpers for msgspec and flatbuffers, supporting JSON, MessagePack, and FlatBuffers codecs with NumPy array integration.

Visit project

Show me a random project

First shared
Sep 14, 2026
HN activity
20

Show HN@yablakSep 14, 2026

Show HN: msgspec-serde, Fast serialization for msgspec, flatbuffers, & arrays

msgspec-serde brings together the performance and flexibility of msgspec with other common data formats: Representation of gridded data via NumPy arrays and views. The cross-language and schema/IDL support of FlatBuffers. It can generate typed msgspec.Struct models and read-only FlatBuffers views from .fbs schemas. Its JSON, MessagePack, and FlatBuffers codecs also support very fast encoding/decoding of Structs containing NumPy arrays (with or without a FlatBuffers schema). In my benchmarks, msgspec-serde encodes FlatBuffers about 20–22 times faster and decodes them into complete models about 11–13 times faster than the official Python FlatBuffers API.

Community

Hacker News discussion

Loading the thread…