Re-introducing Mar
In February, we announced the initial release of Mar (EarthFrame's free and open-source data archiver tool), which functioned as a faster, easier-to-use replacement for tar (the standard archive tool for most Linux and Mac OS X systems) with better performance, random access, modern compression, indexing + search, and a super-intuitive user interface. Over the past few months we've used Mar extensively internally and found it to be robust, fast, and a joy to use.
Even so, we realized that the potential for Mar was well beyond that of just an archive format: Mar's design proved flexible enough to store every type of data we threw at it. We had also developed a long wishlist of ways to improve the package. So we dedicated time to rewriting Mar, porting the code to Rust and making tons of tweaks to the core algorithms.
The result is a huge gain in both performance and capability, and we're excited to detail some of what Mar can do below.
Download the latest release
Mar is freely available at https://github.com/EarthFrame/mar. See the repository for download and installation instructions as well as more detailed usage.
Here's an example for all y'all on Mac OS X:
## Install with homebrew
brew tap earthframe/tap
brew install mar
## Download the v0.3.0 Mac OS X release
wget https://github.com/EarthFrame/mar/releases/download/v0.3.0/mar-macos-arm64
## Create some example files
echo "A test" > x.txt
echo "More test text." > y.txt
## Create a mar archive
### Note: you may need to add mar to the path, or call it via ./mar and not just mar
mar create test.mar x.txt y.txt
## List the files in our archive
## should print the files in the archive
mar list test.mar
## To show the table version of list with sizes and checksums:
mar list --header --table test.mar
## Extract the files in the archive to a folder named test-dir
mar extract -o test-dir test.mar
Mar is more than just the new Tar
Here at EarthFrame, we love to make art, and we love a good pun (after all, language is one of our prioritized data types). So, here's a little aside to create some new vocabulary.
There's a quote that floats around in the resource economics space that goes "water is the new oil." In the same way, we like to think of Mar, which is a homonym for the Spanish word for "sea," as the new Tar. Tar archives are often called "tarballs" for short, making it easy to say things like "send me a tarball with all the data from January." We call Mar archives "marbles," and we like to imagine they'd look like sea glass if they had physical form.
What is a Universal Data Container?
Data is most often stored in files, which hold some form of binary data (text is just binary data in a specific 8-bit range on most systems). There exist many specific types of binary formats for storing data (think CSV, xls, or Parquet files), each of which has advantages and disadvantages depending on the type of stored data and the hardware and software underneath the file. Choosing the right format can have a big impact on the data size and the performance of accessing the same data.
In archives like those produced by tar or mar, files are stored together into a single-file archive, making it easier to move them around and track their provenance. You can think of archives as "Data Containers;" imagine an archive as a glass jar and the files inside as tasty candies. It's easy enough to carry them around as one unit and then retrieve specific ones from the container.
Unix Tar stands for "tape archiver" and was designed for tape drives, storing data in a single linear strip mirroring the storage medium. This worked great for tapes and hard drives, and because tar was installed on every Linux computer, it became a common way of creating these data containers.
Today, the vast majority of computers use flash storage, and data access patterns are much less linear. We have faster CPUs, multiple cores per CPU, and much higher-bandwidth networks. Much of our data doesn't even reside on the same physical computer we work on - as we have moved more data to the cloud, more and more of our interactions involve a remote disk or flash drive and a network trip all coordinate by a local CPU. Tar, Zip, and other formats were never designed for efficient random access over a network, and they rarely take advantage of modern hardware. They're still useful data containers, but they just don't work as well in a networked world.
Mar was designed from the beginning to work just as well on a remote file system as a local one, whether the underlying hardware is disk or SSD. More than that, Mar supports different compression algorithms and block schemas that enable tuning every Mar archive to your data. Beyond adapting to all your hardware and all of your data, Mar also adapts to different users, even when they're not human - we've found it to be easily deployable by agentic LLMs even when they aren't trained to do so. Mar is meant to hold any data, anywhere, any time.
Case Study: using local LLMs and Mar to make the Texas Statutes more accessible
Here at EarthFrame we work on solutions for Earth's most precious data, and we think laws fit right into this - they're some of our most important, publicly-available data artifacts. So, to show off just how powerful Mar can be, we're going to let y'all play with a real dataset containing all the Texas Statutes.
We also used this opportunity to show off utilizing open-weights models, meaning we did everything here - including organizing the data and getting it into a marble - all using Qwen3.8-27B, a model that easily runs on all EarthFrame systems from our modified NVIDIA DGX Sparks to our Ember to the EF-1 node and multi-node systems. We think this is a great demonstration of just how powerful these small automative models can be.
Downloading the Texas Statutes
Texas provides its state constitution and all of its statutes free for public download at this link: https://statutes.capitol.texas.gov/download.aspx. I downloaded these by hand but we likely could have scripted it out.
Cleaning up the data with Qwen3.8-27B
Downloading the statutes as PDFs by chapter yields a bunch of zip files, each with some unknown number of PDFs within them, with coded names:
ls zips-texas-laws/
AG.pdf.zip BO.pdf.zip CR.pdf.zip EL.pdf.zip FI.pdf.zip HS.pdf.zip LA.pdf.zip OC.pdf.zip PW.pdf.zip TX.pdf.zip WL.pdf.zip
AL.pdf.zip CN.pdf.zip CV.pdf.zip ES.pdf.zip GV.pdf.zip I1.pdf.zip LG.pdf.zip PE.pdf.zip SD.pdf.zip UT.pdf.zip
BC.pdf.zip CP.pdf.zip ED.pdf.zip FA.pdf.zip HR.pdf.zip IN.pdf.zip NR.pdf.zip PR.pdf.zip TN.pdf.zip WA.pdf.zip
I wanted to reorganize these into a nice directory tree that mirrored the organization on the website (by statute, then chapter). So, I set Qwen loose on the task:
This directory contains a subdir with all the statutes of texas. Please review the zipped pdf files, and organize them according to their contents, which should be the different statutes in the state.
It looked through and did pretty well, but the model started to guess at each code rather than actually read the data. So, I stopped it and gave it a little more prompt:
Before guessing what each PDF contains, please be principled and get the actual information.
At this point, it downloaded and installed pypdf, then read the first page of each chapter. It then nailed the directory structure and made a mapping.
Then, I had it write a readme:
Write a README summary containing this information, how the data was extracted, that it was downloaded from this page: https://statutes.capitol.texas.gov/download.aspx on this date manually (PDF by chapter), and any other important information. Do not use emoji. Make the README professional and clean.
And finally, I had it wrap it in a mar archive (note, this is super lazy and done only to demonstrate that no training is needed for Qwen to use Mar):
Using the mar binary in this directory and the default settings, create a mar archive called Texas_Statutes.mar from the files in "organized" (which I have moved into a directory called Texas Statutes).
And finally, Qwen reported (after it ran the mar list and mar validate commands without further prompting):
Texas_Statutes.mar created at exas_Statutes.mar (682 MB), using mar create with all default settings (zstd, xxhash3 checksums, multiblock, 1MB blocks).
Verification:
5,022 entries: the 4,990 statute PDFs, 31 code subdirectories, and the organized/ root
mar validate passes (exit 0); POSIX metadata and BLAKE3 file hashes stored
I removed a stray Texas_Statutes/organized/.DS_Store macOS artifact before the final build so the archive contains only the statute content
But wait... it forgot the README we made:
Oops - include the README!
Texas_Statutes.mar created at Texas_Statutes.mar (682 MB), using mar create with all default settings (zstd, xxhash3 checksums, multiblock, 1MB blocks).
Verification:
5,022 entries: the 4,990 statute PDFs, 31 code subdirectories, and the organized/ root
mar validate passes (exit 0); POSIX metadata and BLAKE3 file hashes stored
I removed a stray Texas_Statutes/organized/.DS_Store macOS artifact before the final build so the archive contains only the statute content
This used about 400k input tokens and 12,000 output tokens, and while we're not so concerned about the cost (it doesn't even register on the meter), if we're working with sensitive, confidential, or residency-restricted data, or if we're working offline, it's nice to know that an LLM we can run entirely locally can handle it.
Try it out
We've helpfully provided this example data as a marble at the following address: https://public.earthframe.com/data/law/texas_statutes/Texas_Statutes.mar. You can download the entire file and use a local version of the mar utility to interact with it, including listing the files, validating the archive, and getting specific files from the marble.
Extracting subsets of a marble
Let's try it out. mar slice natively supports a few different ways to select only specific files and place them into a new marble. Here are a few:
## Method 1: Standard Unix-y Pipework
# Direct pipe from list -> grep -> slice
./mar list Texas_Statutes.mar | grep "Business" | ./mar slice Texas_Statutes.mar -o business_statutes.mar -T -
## Method 2: Make an explicit list file
# 1. Generate the file list
./mar list Texas_Statutes.mar | grep "Business" > business_statutes.txt
# 2. Slice the archive using the list
./mar slice --files-from business_statutes.txt Texas_Statutes.mar -o business_statutes.mar
## Method 3: Using globs
./mar slice Texas_Statutes.mar -o business_statutes.mar "**Business**"
# or
./mar slice Texas_Statutes.mar -o business_statutes.mar -i "**Business**"
We can also extract the files directly to disk in their original tree (rather than going through a sub archive):
# Extract only matching files using the file list
./mar extract -o ./business_statutes -T business_statutes.txt Texas_Statutes.mar
# Strip leading directory levels if desired (e.g., skip 'Texas_Statutes/organized/')
./mar extract -o ./business_statutes --strip-components 2 -T business_statutes.txt Texas_Statutes.mar
Saving on cloud costs: using pymar + http range requests to slice our Texas Statutes marble
The python version of mar includes the ability to interact with marbles on object storage and remote filesystems such as object stores. This means that with a single command, we can retrieve the marble's remote index, select the data blobs containing the files we want, and download them to our local file system as a repackaged marble.
The syntax for pymar is almost always 1:1 compatible with mar. To slice the business-related files out of our archive:
pymar slice --verbose -o remote_business.mar https://public.earthframe.com/data/law/texas_statutes/Texas_Statutes.mar **Business**
mar: inspecting remote archive https://public.earthframe.com/data/law/texas_statutes/Texas_Statutes.mar
mar: fetching 2-read index from remote server...
mar: downloaded mar header and index (141.9 KB; fixed header: 48 B, metadata index: 141.8 KB)
mar: cached index to ~/.cache/mar (5,024 files, 4,996 blocks)
mar: matched 167 of 5,024 files (21.96 MB) requiring 165 blocks
mar: coalesced 165 blocks into 1 range requests (21.84 MB to transfer)
mar: downloading with 1 worker thread...
mar: [batch 1/1] 21.84 MB / 21.84 MB (100.0%) - 32.0 MB/s
mar: writing destination archive remote_business.mar...
mar: completed in 0.92s (1 range requests, 21.84 MB transferred, 23.85 MB/s)
mar: successfully sliced https://public.earthframe.com/data/law/texas_statutes/Texas_Statutes.mar -> remote_business.mar
You can see we got the files we wanted and downloaded 21.84 MB (just 3%) of the total ~682 MB size of the full marble. This reduced our total data egress by 97%. The marble header is just 142 kilobytes, and we cache it so it only needs to be fetched once and subsequent calls to pymar list, pymar get, and pymar slice can reuse the on-disk cache, further saving two API requests per query.
pymar will be available on pip later this week.
Announcing Mar Enterprise
Lastly, we are excited to announce a licensed version of Mar to support more advanced uses. Again, mar's core functionality - which is a lot of functionality - remains free and open-source under the Apache 2.0 License. For users that want the most advanced indexing and search functionality, today we are announcing Mar Enterprise Licenses. These serve teams as small as one and allow indexing and query of mar archives using the following index types:
- Semantic (MinHash)
- Semantic (Embedding Vector)
- Keyword (BM25)
- Time Series
- Email (MIME)
- Genomics (FASTA)
Mar's indexing and search capabilities mean you can run native Retrieval Augmented Generation directly only your archives with just a Mar index sidecar file - no need to ingest your data into a vector database. A single archive can have multiple indices, and because the search and index interfaces are structured, they're super easy to query with your favorite Open Weights models running on EarthFrame hardware.
Just the beginning
Mar will form the basis for many of our future services. Stay tuned.
A big week for us
We're super proud every time we successfully launch anything because it's an uphill battle as a small team. This week we'll be at AISES 2026 and then ASHG 2026 to talk about storing all sorts of data - law, text, language, sensor data, genomic sequence, etc. - in Mar archives and how else EarthFrame can help bring your data back under your control. As always, reach out to Eric or Yousuf on LinkedIn if you have any questions or if we can help wrangle your data.