Top 3 TypeScript Messagepack Projects
-
msgpack-javascript
@msgpack/msgpack - MessagePack for JavaScript / msgpack.org[JavaScript/TypeScript/ECMA-262]
-
json-joy
JSON CRDT, JSON CRDT Patch, JSON Patch+, JSON Predicate, CBOR, MessagePack, UBJSON, JSON Reactive RPC, JSON-RPC 2.0, JSON Pointer, JSON Expression, JSON Type
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
For a compact message format being sent to browsers, you might look at messagepack, eg with https://github.com/msgpack/msgpack-javascript – it's essentially binary JSON, so it'd be compatible with OpenAPI specs.
I think the ser/des is slower than JSON in most browsers, but the message format is smaller.
Oftentimes, using a query parameter like `?exclude[]=…` or `?include[]=…` or similar to say "only get me these response fields, not the whole object" can be useful for this too (and then you still get JSON back).
Project mention: JSON-joy CRDT benchmarks, 100x speed improvement over state-of-the-art | news.ycombinator.com | 2023-05-22Love seeing CRDT innovation! I'm building something in the space, so excited to give this a try.
The death stroke for these types of projects seems to be lack of funding. This project is sponsored by nlnet[0] providing between 5k - 50k EU per year. Let's hope this gets additional resources.
As a note, it appears to use Elastic's 2.0 license preventing selling software that includes this library [1]
[0] https://nlnet.nl/project/JSON-Joy/
[1] https://github.com/streamich/json-joy/blob/master/LICENSE
TypeScript Messagepack related posts
Index
What are some of the best open-source Messagepack projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | msgpack-javascript | 1,221 |
2 | json-joy | 626 |
3 | kwik | 4 |
Sponsored