๐ฉ Protobuf
Protobuf (โProtocol Buffersโ) is a protocol developed by Google to serialize structured data. It is language agnostic and can be used in any programming language via libraries. Data is transfered in a non-human-readable binary compact format that is smaller than JSON. Here is a good article by Auth0.
If you are making a real-time multiplayer game that sends a lot of data over the network, you might want to consider using Protobuf. It will come at a cost of some added complexity but that may be worth it depending on your use case. You could start building your game with JSON and then switch to Protobuf later if you find that message size is a bottleneck.
- StarsNPMTSMaintained
- protobuf.js9k8M/w9k8M/w
- 701M/w
- ts-proto1k90k/w1k90k/w
- protobuf-ts50038k/w50038k/w
- protobuf-es4007k/w4007k/w
- protoc-gen-ts20020k/w20020k/w
- protocol-buffers70020k/w70020k/w3 years
Compare on NPMTrends and Star History (requires a GH token)