JavaScript Serialization

Open-source JavaScript projects categorized as Serialization

Top 12 JavaScript Serialization Projects

  • store.js

    Cross-browser storage for all use cases, used across the web.

  • protobuf

    Protocol Buffers for JavaScript (& TypeScript).

    Project mention: Question about compressing JSON in multiplayer position updates | | 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)

  • avsc

    Avro for JavaScript :zap:

    Project mention: Advice: making a multiplayer game: How should I handle different frequency events in the same game? | | 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:

  • pbf

    A low-level, lightweight protocol buffers implementation in JavaScript.

    Project mention: Outperform Protobuf.js with fixed-size encoding | | 2023-02-26

    does it beat ?

  • snappy

    DEPRECATED - please use Nodejs bindings to Google's Snappy compression library

  • safe-json-value

    ⛑️ JSON serialization should never fail

    Project mention: ⛑️ JSON serialization should never fail | | 2022-08-02
  • vt2geojson

    Dump vector tiles to GeoJSON

    Project mention: OSMNX / mapbox | | 2023-04-17
  • 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!

  • compactr

    Schema based serialization made easy

  • sia

    Sia - Binary serialisation and deserialisation (by pouya-eghbali)

  • 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

  • is-json-value

    Check if a value is valid JSON.

    Project mention: ⛑️ JSON serialization should never fail | | 2022-08-01

    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`]( which makes it convenient to generate a list of warning messages indicating why a value is not JSON-safe.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-04-17.

JavaScript Serialization related posts


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
ONLYOFFICE Docs — document collaboration in your environment
Powerful document editing and collaboration in your app or environment. Ultimate security, API and 30+ ready connectors, SaaS or on-premises