1 Repo
Maintaining the identity of complex runtime types during data transfer.
Distinct from TypeScript Type Definitions: Focuses on preserving actual runtime instances (Dates, Maps, Sets) rather than static type definitions.
Explore 1 awesome GitHub repository matching software engineering & architecture · Runtime Type Preservation. Refine with filters or upvote what's useful.
Superjson is a lossless JSON serialization library and data transcoder. It converts complex JavaScript and TypeScript data types into strings and metadata to ensure that type identity is preserved during data transfer. The library preserves non-native types such as Dates, Maps, and Sets by splitting values into a JSON-compatible payload and a separate map of type-specific metadata. It utilizes a registry-based mapping system that allows for the definition of custom type handlers to manage third-party data types during serialization and deserialization. This utility supports cross-process dat
Ensures TypeScript-defined classes and complex types maintain their identity when transferred between server and client.