MDS Files

MDS is the native project file format for MIDAS. The file extension is .mds. An MDS file stores datasets, models, reports, workspace layouts, and other project state in a single file.

Saving and Exporting

There are two ways to save an MDS file. Saving to the browser is for frequent saves while you work; exporting as a file is for sharing with other users and keeping backups.

Save to Browser

File > Save to Browser (Cmd+S / Ctrl+S) saves the project to the browser's storage (OPFS). Saved projects appear in the launcher's Quick Access section and can be reopened with a click.

MIDAS shows the time the project was last saved to the browser on the right side of the menu bar, after Saved to browser. Reloading the page makes MIDAS open the project as saved in the browser. Unless another browser tab or window has saved the same project since, MIDAS opens the contents saved at that time. Besides Save to Browser, the save before entering Reading View also advances this time. MIDAS also saves the project to the browser and shows the time when you open an MDS file or create a project. Exporting does not advance the time. The time does not tell whether the project has changed since it was saved. Sandbox projects, such as one opened from a URL, are not saved to the browser, so MIDAS shows no time for them.1

Because this uses browser storage, saved projects are only accessible from the same browser and profile. They do not appear in other browsers or on other devices. Clearing browser data will delete saved projects. When saving, MIDAS requests persistent storage from the browser. If the request is granted, the data is excluded from automatic eviction under storage pressure. Whether to grant the request is up to the browser, so depending on browser settings and available storage capacity, the browser may still evict this data automatically. Export important projects as files for safekeeping.

When the same project is open in more than one browser tab or window, MIDAS checks before saving whether another tab or window has changed the project saved in the browser. The check covers changes made since this tab opened or last saved the project. If the saved project has changed, MIDAS shows a confirmation dialog with the time of the change. Replace makes MIDAS replace the saved project with the contents of this tab, and the changes made in the other tab or window are lost. Cancel makes MIDAS save nothing, and the changes in this tab remain unsaved. If you move to another view while the dialog is shown, for example with the browser's back or forward button, MIDAS closes the dialog and saves nothing.

Export as File

File > Export Project... (Cmd+Shift+S / Ctrl+Shift+S) downloads an .mds file. Exported files are always digitally signed. MIDAS signs with a passkey registered in this browser, and the browser asks you to verify yourself for each export. When this browser has no signing key, you register a passkey in the export dialog. For the steps, see Managing Signing Keys.

Exported MDS files can be shared with other users or kept as backups. To open a received MDS file, use Open File on the launcher screen. If the recipient has registered the sender's public key, MIDAS shows the signer as Trusted; otherwise it shows Unknown. See Managing Signing Keys for details.

About Auto-Save

MIDAS does not perform real-time auto-save. To preserve your work, save explicitly using either method above. Exporting only writes out an MDS file and does not update the project saved in the browser. When you close a project or open another project within MIDAS, a confirmation dialog appears if there are changes not saved to the browser. The dialog appears even after you export the changes, unless you have also saved them to the browser. Closing the browser tab shows no confirmation dialog and discards any changes not saved to the browser.

Data Excluded from Saving

Primary Dataset row data (the original datasets imported from CSV or similar sources) is included in the MDS file. Derived Datasets (datasets produced by queries or transformations) are saved as definitions only; their row data is not saved by default. After opening a project, data is recomputed on demand by re-running the stored operation.

This keeps MDS files small. For Derived Datasets with expensive queries, enable Save data with project to save the computed data as well. See Datasets > Saving Computed Data with the Project for details.

File Structure

An MDS file is a zip file. The zip of an exported MDS file contains three JSON files, the Parquet files2 that record the row data of datasets, and the original files from which datasets were loaded3. The contents of each file are as follows.

FileContents
manifest.jsonA list of the names, sizes, and SHA-256 hash values of metadata.json, each Parquet file, and each original file, together with the signer name, the signing time, and the provenance
signature.jsonThe digital signature over manifest.json and the signer's public key. For a passkey signature, it also holds the authenticator data and client data that the passkey signed (Digital Signatures and Provenance)
metadata.jsonThe project state that is not stored in Parquet files, such as the names and types of dataset columns, the operations of Derived Datasets, the values of excluded rows, models, reports, and workspace layouts
datasets/*.parquetThe row data of one dataset
sources/*The original file from which a Primary Dataset was loaded

There is one Parquet file for each dataset that stores row data. The datasets that store row data are of two kinds: Primary Datasets, and Derived Datasets with Save data with project enabled that hold computed data. For any other Derived Dataset and for the Ephemeral Datasets held by open tabs, MIDAS records only its definition in metadata.json. MIDAS also records in metadata.json which Parquet file holds the row data of which dataset.

The columns in a Parquet file correspond to the column definitions in metadata.json through IDs that MIDAS assigns to each column. MIDAS names the columns in a Parquet file with these IDs rather than with the dataset's column names. MIDAS records the names and types of the columns in metadata.json. When opening an MDS file, MIDAS checks that the number, IDs, and types of the columns and the number of rows in each Parquet file match the definitions in metadata.json, and does not open a file that does not match4.

An original file is the file itself that a Primary Dataset loaded from a file keeps. The row data of such a dataset is the result of applying the reading SQL to the original file, without the excluded rows, and it is also stored in a Parquet file5. MIDAS names an original file with its SHA-256 hash value, so Primary Datasets loaded from the same file share one file. MIDAS records in metadata.json which Primary Dataset was loaded from which original file, and the reading SQL. The original files make an MDS file larger by their size.

MIDAS opens only zip files with the same layout that MIDAS writes. MIDAS lists every file other than manifest.json and signature.json in manifest.json6. MIDAS does not open a zip to which a file not listed in manifest.json has been added.

Digital Signatures and Provenance

Exported MDS files are always digitally signed. MIDAS signs with a passkey registered in this browser, using ECDSA (Elliptic Curve Digital Signature Algorithm) on the P-256 curve with SHA-256. With the signature, MIDAS confirms which key last signed the file and detects tampering after signing.

Signatures do not encrypt the file contents; anyone who obtains the MDS file can read its contents.

Saving to the browser (Save to Browser) does not sign anything. Browser storage is a working area that only this browser reads and writes; signatures apply only to exported files that leave the browser.

When opening an MDS file, MIDAS verifies its signature. Files without a signature, and files that fail verification due to tampering or corruption during transfer, cannot be opened. See Managing Signing Keys for how to handle verification failures.

The signature covers only manifest.json7. MIDAS also detects tampering with metadata.json, each Parquet file, and each original file through the hash values recorded in manifest.json. A SHA-256 hash value is computed from the contents of a file, and rewriting the contents changes the value. If the signature on manifest.json is valid, MIDAS computes the hash value of each file listed in manifest.json and compares it with the recorded value. As a result, MIDAS does not open a file in which metadata.json, any Parquet file, any original file, or manifest.json with its signer name and provenance was rewritten after signing.

If verification passes, the file's trust level is determined from its provenance — who created it and who re-exported it:

Trust LevelDescription
OfficialSigned by the MIDAS Provider's key
TrustedSigned by your own key registered in this browser or a registered public key
UnknownSigned by an unregistered signer

When you open someone else's MDS file and re-export it, the exported file carries your signature together with a record of the original creator (the provenance). MIDAS signs the export with your key even when you have not edited the project. The provenance keeps the original creator's signer name, signing time, and public key, not the original signature itself. The recipient's MIDAS verifies only the signature of the last signer. To pass on the file with the original creator's signature, send the file you received as is.

On the recipient's side, the file's trust level is the lowest trust level among everyone in the provenance. This prevents content from an unknown signer from appearing trusted just because it passed through someone else's signature.

By default, an MDS file from an unknown signer opens without a confirmation dialog. This is because loading an MDS file by itself never makes MIDAS communicate with an external server. For the operations that can communicate based on the file's contents, how each is handled, and the setting that asks for confirmation every time you open a file from an Unknown signer, see Managing Signing Keys. The signature badge in the menu bar reads Unknown, and clicking it shows the fingerprint. Decide whether to trust the key only after comparing this fingerprint with the value the signer has published.

For registering and managing the passkeys that sign, exporting public keys, and registering others' public keys, see Managing Signing Keys.

Data Locality

All data processing in MIDAS happens entirely within the browser. Project data is never sent to any external server. MIDAS stores data in the browser's local storage areas (OPFS and IndexedDB) and downloads exported MDS files to the user's device without going through any external server8. For details on how each storage is used, see Storage Management.

MIDAS also stores the public keys and signer names of your registered signing keys in the browser and never sends them to any external server. The private key of a passkey is in your password manager or on your security key. What syncs passkeys across devices is the password manager, and MIDAS has no part in that syncing.

Clearing browser data removes the key registrations and the registrations in Trusted Keys. MIDAS treats MDS files you previously signed with a passkey as Unknown until you register the key again. The passkeys remain in your password manager or on your security key, so you can register them again with the steps in Use an Existing Passkey. Files signed with the previous signing key stay Unknown until you register its public key in Trusted Keys again.

Version Compatibility

A newer version of MIDAS opens MDS files from older versions, but it cannot open files exported or projects saved to the browser before the July 2026 signature format update. An MDS file records the version of MIDAS that last saved the project. When you open an older MDS file, MIDAS automatically applies migrations and updates the project's version to the version of MIDAS that opened it. If a dataset cannot be converted to the current format, MIDAS removes it from the project together with the datasets, models, report elements, and tabs that depend on it, and shows what it removed in a warning. The July 2026 update changed the signature format to include provenance, and MIDAS does not read the earlier signature format.

MDS files in the format that preceded the zip format described in File Structure also open in the current version of MIDAS, as long as they were written after the July 2026 signature format update. In the earlier format, MIDAS wrote the whole project as a single JSON document, compressed it with gzip, and signed it. When you open a file in the earlier format, MIDAS writes the copy that it places in the browser in the zip format. Exporting that project also produces a file in the zip format.

Versions of MIDAS from before the zip format cannot open MDS files in the zip format and show the error "Invalid MDS file: missing signature". The same applies to projects saved to the browser: once saved in the zip format, they cannot be opened by those earlier versions. Because MIDAS is a web app, an older version of MIDAS mainly runs when the browser has cached it. When you reload the page, the browser loads the latest version of MIDAS.

Among versions that support the zip format, when the version recorded in a file is newer than the MIDAS that opens it, MIDAS shows a warning and then opens the file. However, versions of MIDAS before passkey support do not open files signed with a passkey and show the error Invalid MDS file: unknown field "authenticatorData" in signature.json.

Footnotes

  1. If another browser tab or window saves or deletes the same project later, the time shown in this tab does not change. The time shown is either the time this tab last saved the project or the time of the contents saved in the browser when this tab opened the project. ↩

  2. Parquet is a file format that stores tabular data column by column. ↩

  3. A project saved to the browser is also a zip, but because it is not signed, it has no signature.json. MIDAS does not record the signer name, the signing time, or the provenance in its manifest.json, and records the provenance in origin.json instead. The copy that MIDAS places in the browser when you open an MDS file is also in this unsigned form. ↩

  4. MIDAS reads and writes Parquet files with DuckDB, a SQL engine that runs inside the browser. ↩

  5. When opening an MDS file, MIDAS uses the row data in the Parquet files and does not run the reading SQL again. MIDAS uses the original file and the reading SQL when you reload the dataset. ↩

  6. MIDAS compresses the Parquet files that hold row data with Zstandard (zstd), using Parquet's own compression feature. ↩

  7. When signing with a passkey, what is signed is the authenticator data written by the device or software that stores the passkey, joined with the hash value of the client data assembled by the browser. MIDAS asks the browser to include a value computed from manifest.json in the client data, so rewriting manifest.json after signing makes signature verification fail. When opening a file, MIDAS also checks that the authenticator data shows that you were verified. Signatures made with the MIDAS Provider's key, and signatures that MIDAS made on zip files with a key pair before it supported passkeys, are signatures on manifest.json itself. The signature of a file in the earlier format covers the signer name, the signing time, the provenance, and the compressed project data. MIDAS verifies signatures in all of these forms. ↩

  8. When MIDAS exports a project, it first writes the MDS file to OPFS and then downloads it. MIDAS deletes this copy in OPFS when you start the next export on the same page, or when a page of MIDAS starts at least 10 minutes after the export. ↩