Mar: EarthFrame's Universal Data Container

Core data infrastructure for data of all types and sizes.

Mar is EarthFrame's archive format and data interaction toolkit. Mar improves on traditional archive formats like TAR and ZIP by adding efficient random access, modern compression algorithms, built-in checksums, good defaults with user customization, and more. As a core component of EarthFrame's Sovereign Data Ecosystem, Mar helps reduce cloud costs, enable GDPR compliance and right-to-be-forgotten, helps create cohorts in genomics studies, and so much more. Mar utilizes an easy-to-use, intuitive command line interface that serves both humans and agents without additional training.


Use Cases

Save on Cloud Storage and Egress (Up to 99%)

Mar supports a range of modern compression algorithms including ZSTD, GZIP, and BZIP2, as well as uncompressed archives. In addition, mar has advanced block organization schemes that allow end users to tune the tradeoff between retrieval time and compression ratio. Compared to collections of uncompressed text files (including CSVs, TSVs, markdown, and Word documents), mar archives are often 2-4x smaller.

Mar's design also includes a metadata header that enables random access into an archive without needing the archive itself. This means that, unlike other solutions, mar can retrieve data from anywhere within an archive in constant time, and it can do so without downloading the entire archive. On the cloud, this means you can list all the files in a mar archive and retrieve the one you want, without having to download all the rest.

As an example, say you have an archive of weather data with files for every day of a given year. In most other formats, you either need separate files (which gets messy), or you need to download the entire archive to disk before slicing out the file you want for the day of your birthday. Before mar, you'd pay egress for the entire archive and use local storage to get just the file you need. With mar, you can simply get the one file you want from the archive without downloading or modifying it. Subsequent requests to the cloud storage provider to list files can utilize the cached header to save even more on API requests.

Support GDPR Compliance and Right-to-be-Forgotten with Mar's built-in redaction capabilities

Mar supports built-in redaction capabilities for most of its preset schemes. This means individual files can have their data scrubbed from the archive permanently, leaving only the filename in the metadata index. If the filename must also be removed, mar supports slicing, enabling removal of files and paths from the archive at scale.

Redaction thoroughly overwrites the file data with zeroes without having to create a new archive, creating a clear chain of custody. Removing data is a single command in mar whether you use redact or slice.

Create Genomics Cohorts with Mar Slice

Mar slice also helps to subset archives. Imagine you have a large cohort of BAM and BAI files distributed as a single mar archive. With slice, you can easily select your cases and slice them into a new archive before doing the same with your controls to create a separate control archive. Creating subsets of data is super simple with mar:

Slice Archive
mar slice -o cases.mar cohort.mar sample_001.bam sample_001.bam.bai sample_002.bam sample_002.bam.bai

Archiving Your Data

Mar, much like TAR and ZIP, is at its core an archive format and command-line tool for interacting with that format. Mar uses a well-defined binary format that includes a header and one or more data blocks. Mar is often faster than TAR, and Mar archives are often the same size or smaller than tarballs compressed with GZIP or LZ4.

Create archives of your files with a simple command:

Create
mar create dataset.mar data/ metadata.csv

Compression and Space Savings

Mar supports modern compression algorithms including ZSTD and the highly-optimized libdeflate library for GZIP compression. Mar archives are usually the same size or smaller but much faster to create and compress.

List what's in your data

Mar archives enable listing files without unpacking any data blocks, meaning you do not need to decompress your files to disk to see what's inside them.

List
mar list <archive>

Mar list also supports a --table argument that allows you to peek the size and hash of a file before extracting it. Combined with standard linux tools like grep and sed, mar list makes it easy to see what's in an archive very quickly and select subsets for extraction. Most tool-calling LLMs can easily figure out how to use mar list.


Sharing Your Data

Mar makes it easy to share large collections of files as a single archive. Recipients can extract all files, unpack individual files by path, or even pipe data directly from the archive into other processes without extracting the rest.

Extract everything:

Extract All
mar extract my_archive.mar

Or extract specific files:

Extract Specific Files
mar extract my_archive.mar big_data/big_data_1.pq big_data/big_data_104.pq

Data Redaction

Mar supports data redaction within the archive, enabling data removal without having to fully extract and re-archive. Perfect for compliance and privacy workflows.

Redact Data
mar redact -o redacted_archive.mar my_archive.mar big_data/big_data_4.pq

Universal Accessibility

Mar archives store decompression information right in the archive itself, so recipients don't have to guess or trust your file extensions. By creating a strict specification, Mar makes it easy to reliably share your data.

  • Cross-platform – Supports Linux and macOS
  • Multi-architecture – Tested on x86 and ARM systems
  • Easy installation – Coming to package managers

Indexing and Searching

Mar's core format and high-speed core toolkit are 100% open-source under the Apache-2.0 license.

For advanced production pipelines, Mar Enterprise adds sidecar indexing support across specialized domains—including semantic vector search, full-text keyword indexing, genomic sequences (FASTA/BAM), time-series data, and email stores. Contact EarthFrame to explore Mar Enterprise capabilities.


Built for Agents

Mar's self-describing CLI makes it easy for agents and LLMs to figure out how to use it without needing a specialized MCP server or fine-tuning. Mar was designed from day one to be agent-driven and works great with modern tool-calling LLMs right out of the box.


A File Format for Data Sovereignty

At EarthFrame, Mar already powers our internal data sovereignty toolkit, stores versioned releases of our documentation, and allows us to easily share files and data with each other. Mar is the software core of our Sovereign Data Ecosystem.

Mar receives regular open-source updates, with enterprise support also offered.


Get Started with Mar

Mar is available as open-source on GitHub under an Apache-2.0 License. Explore the full source code, documentation, and contribute to the project:

View Mar on GitHub →

Installation and detailed usage examples are available in the Mar GitHub repository.