Is there an open specification of the .grist file format?

Hi @kks-rnl,

Grist files are SQLite databases, with user data stored as regular SQLite tables. Grist maintains a set of metadata tables, all starting with _grist_*, as defined here:

There is another batch of tables all starting with _gristsys_* storing data not needed by the “data engine” that handles formula evaluation:

Another way to approach this is to look at what is needed to make an SQLite database created outside of Grist readable by Grist. There is a utility for that (yarn run cli sqlite), implemented here:

The script has limits but it may give ideas.

1 Like