Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression. Learn more →
Top 12 JavaScript Serialization Projects
-
-
Project mention: Question about compressing JSON in multiplayer position updates | reddit.com/r/node | 2023-04-05
If it really is a problem, then another option is to use Protobus or Message Pack for serializing (maybe into base64?).
-
Klotho
AWS Cloud-aware infrastructure-from-code toolbox [NEW]. Build cloud backends with Infrastructure-from-Code (IfC), a revolutionary technique for generating and updating cloud infrastructure. Try IfC with AWS and Klotho now (Now open-source)
-
Project mention: Advice: making a multiplayer game: How should I handle different frequency events in the same game? | reddit.com/r/webdev | 2023-03-05
Chances are, your world state really isn't large enough to warrant splitting it up into "different layers". Even if it kind of was, there's much more sensible ways of reducing the size of your packets. Like you're probably using JSON, which again is probably still fine, but it's far from an optimized way of serializing data. Here's what I mean: https://github.com/mtth/avsc/wiki/Benchmarks
-
Project mention: Outperform Protobuf.js with fixed-size encoding | reddit.com/r/javascript | 2023-02-26
does it beat https://github.com/mapbox/pbf ?
-
snappy
DEPRECATED - please use https://github.com/Brooooooklyn/snappy. Nodejs bindings to Google's Snappy compression library
-
-
-
Appwrite
Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!
-
-
-
joss
JOSS can serialize almost every JavaScript data type and data structure, so data can be seamlessly exchanged between browsers and servers (Deno or Node.js).
-
yabson
Schemaless binary-encoded serialization of JavaScript data with generator-based parser and serializer
-
That being said, when JSON serialization should indeed fail, the library above might also be useful as it provides additional insights into why it did fail: specific property path and value, and reason why it failed. I have written a [second library `is-json-value`](https://github.com/ehmicky/is-json-value) which makes it convenient to generate a list of warning messages indicating why a value is not JSON-safe.
JavaScript Serialization related posts
- JSON vs. XML with Douglas Crockford
- Question about compressing JSON in multiplayer position updates
- Outperform Protobuf.js with fixed-size encoding
- Looking for ideas on how to implement serialization and deserialization between C++ and Javascript
- Protobuf-ES: The Protocol Buffers TypeScript/JavaScript runtime we all deserve
- Did I understand the basic concept of website development with Node Js correctly?
- how can i use protobuf with sveltekit, please?
-
A note from our sponsor - InfluxDB
www.influxdata.com | 2 Jun 2023
Index
What are some of the best open-source Serialization projects in JavaScript? This list will help you:
Project | Stars | |
---|---|---|
1 | store.js | 13,912 |
2 | protobuf | 9,061 |
3 | avsc | 1,187 |
4 | pbf | 740 |
5 | snappy | 480 |
6 | safe-json-value | 199 |
7 | vt2geojson | 113 |
8 | compactr | 98 |
9 | sia | 84 |
10 | joss | 53 |
11 | yabson | 11 |
12 | is-json-value | 4 |