Codables is a declarative JSON serialization library that aims to enable a whole new paradigm of data serialization in TypeScript/JavaScript. Using modern decorators, you can mark your data model classes as serializable instead of writing custom (to/from) JSON functions. Besides that, it's 3x faster than SuperJSON and handles pretty much every built-in type like Date, BigInt, Map, Set, RegExp, and Symbol. 🎮 **Try it now:** [Interactive Playground](https://codableslib.com/playground/)
Hey! Why yet another JSON serialization library? We already have SuperJSON, right?
Yes. And SuperJSON is great; I use it a lot. However, things got tricky for me when I had really complex data types, covered with many model classes, often deeply nested and referencing each other, where I needed to serialize it all from/to JSON and save it on the disk. I had to essentially maintain two formats of my data - "serializable data" and TypeScript classes matching this data. It was quite a pain.
I've tried to solve it with modern decorators, making the entire process more declarative and having way less boilerplate.
Happy to hear your feedback!
Screen Studio