andrewpouliot Chrisedmo @ale Please add my voice as well to it!
I'd imagine using NSKeyedArchiver
makes Sketch's codebase simpler, and since it is a core part of Foundation, it'd be more performant than using JSON which'll require a lot of base64 conversions for dealing with binary blobs.
@shaneal had posted a way to access this from CocoaScript in a post above, but it still needs us to be on a Mac and can't be used to generate Sketch files from web servers. Also that approach seemed to produce a plain string without any structure.
There seems to be a few libraries to deal with NSKeyedArchiver
, but I haven't been able to test any of them: NodeJS+Sketch, Ruby, and Python.
Would love to have some sort of official documentation around these things - structure of these blobs, recommended libraries etc.