Consider mmJSON.
Each of the three PDB sites had the same problem: using mmCIF files in web-based viewers is inefficient. To solve this problem three new file formats were introduced:
- MMTF at RCSB,
- BinaryCIF at PDBe,
- mmJSON at PDBj.
MMTF has the smallest files – it's aggressively optimized for size.
It is based on MessagePack, but on top of it uses a number of custom compression schemes, which make the format rather complex.
Usually it's not a problem – MMTF developers made an effort to provide libraries for reading MMTF files in the most popular programming languages. But you need to install these libraries.
To make the file smaller, MMTF doesn't contain all the metadata from mmCIF, which may be a blocker in some cases.
What is nice is that the MMTF developers reached out to other developers in this field, organized some gathering and they were taking comments and suggestions from the outside.
As the result, a few popular programs such as PyMOL and JMol can also read MMTF.
BinaryCIF is clearly based on (or at least inspired by) MMTF.
So it's also built on top of MessagePack with a number of custom compression schemes.
It includes all the mmCIF metadata, which makes the files slightly bigger, but I think it's a good trade-off.
Initially there was only TypeScript code for reading it, now I see that there are also implementations in Java in Python.
mmJSON is 1:1 equivalent of mmCIF, but uses JSON instead of CIF.
There is no extra compression added, but having the data from mmCIF re-ordered column-wise makes gzip compression much more efficient (this was also noted by MMTF developers).
If the file is stored as json.gz or downloaded in web browser (with the usual compression between the server and the client) its size is 30-40% of gzipped mmCIF. It's not as small as MMTF and BinaryCIF (which are several times smaller than mmCIF) and this is the only downside.
The advantage is that you can read in it any language like all other JSON files.
No need to install/update MessagePack + MMTF/BinaryCIF libraries.
A few years ago I compared reading MMTF and mmJSON in Python – reading mmJSON was order of magnitude faster. It may be very different with libraries in other languages, but generally JSON parsers are fast.
The fastest ones parse GBs per second. Reading binary formats can be faster, but decompression schemes can also make it slower.
Anyway, all the three formats are fast enough to read.
Sadly, I don't think that mmJSON is as popular as it should be.
Perhaps I'm the only person using it outside of PDBj.
That's why I'm writing this answer.
The mmJSON files are available at:
https://pdbj.org/help/mmjson