VARVE / OPEN SOURCE

Go preview · unreleased on main

swath

Parallel listing and inventory for large object stores and filesystems.

swath is an open-source command-line tool that lists files and objects in local and mounted filesystems, S3, GCS, and Azure Blob Storage (flat namespace). It can summarize sizes by directory or prefix (du) and write sorted Parquet inventories.

This page describes the unreleased Go implementation on main. The latest published release is Java v0.3.2; its downloads do not provide the Go commands below.

Live listing

Use swath when you need a current listing or inventory of a large tree, bucket, or container.

Existing inventory

If an existing inventory has the fields and freshness you need, querying it usually avoids the cost of another scan.

A live listing is not a point-in-time snapshot of a source that changes during the run. Cloud listings make billable API requests.

Build the Go preview.

These commands build unreleased code from main, not the Java v0.3.2 release. You need Git and Go 1.26 or later; the module selects its Go toolchain.

du reports apparent file sizes by default. Local --allocated and --count-links-once options select allocated bytes and count hard-linked files once where platform metadata supports them. Mounted filesystems work through their local paths.

Go guide →
git clone https://github.com/varveio/swath.git
cd swath/go
./build.sh -o swath
./swath du . -d 2

Write a local inventory to a new output directory outside the tree being listed:

./swath list . -o /tmp/swath-local-inventory
./swath show /tmp/swath-local-inventory

Local list requires dataset output. show summarizes a dataset or interrupted run; it is not a query engine.

List cloud metadata

For cloud sources, list without an output path prints a table on a terminal or TSV when piped. It reads metadata, not object contents.

./swath list s3://bucket/prefix/
./swath list gs://bucket/prefix/
./swath list az://account/container/prefix/

Provider scope and credentials

Summarize sizes

Use du to see totals by directory or prefix without writing an inventory.

./swath du /path/to/tree -d 2
./swath du s3://bucket/prefix/ -d 1

S3 supports versions and delete markers; GCS supports generations. Azure supports current blobs in flat-namespace accounts, not HNS or version listings.

Write an inventory

A swath dataset is sorted Parquet parts committed by a manifest, in the SeekParquet format. Read it with DuckDB or other Parquet tools.

./swath list s3://bucket/prefix/ \
  -o /tmp/swath-cloud-inventory
./swath show /tmp/swath-cloud-inventory

Dataset format and reading

Resume a cloud dataset.

Eligible journaled S3, GCS, and Azure dataset runs can resume after interruption. Local scans and text output cannot resume. Windows refuses durable journal and resume operations.

Output and recovery details →
./swath resume /tmp/swath-cloud-inventory

Resume uses the recorded source and settings. Supply required credentials again. A committed dataset with complete coverage has nothing left to resume.

Java v0.3.2 documentation

The historical Java field guide explains the Java engine and its recorded S3 runs. Its architecture, commands, and measurements do not describe the Go preview.

Java v0.3.2 downloads · Java getting started

Documentation for swath 0.3.2.

Historical Java recordings (not Go benchmarks)

These recordings predate the Go preview. The trace capture's version is unknown; the CLI demo identifies Java 0.2.1. Neither is evidence of Go behavior or a v0.3.2 benchmark.

36-second visualization39.7M objects · 68.6s trace event span
One live listing of a 39.7-million-object public bucket whose retained trace events span 68.6 seconds (68,592.2 ms), from first event to last. That is not a listing wall clock reported by swath. The initial keyspace split created 513 ranges. One contained 68% of the objects, and swath split that range as idle workers asked for more work. The video is a 36-second rendered visualization of run noaa-gestofs-pds-field-guide-trace, played at a pace chosen for viewing, not on the run's clock. View the trace report and provenance →
What the visualization shows, and what is known about the run

Each band is one key range being drained by one worker, colored by which initial range it descends from; a range splits when a worker steals from it or its own worker sheds work ahead of itself. The picture was generated by tools/explainer from the run's --trace event log. The raw event log was not retained, and this is not a terminal recording, so there is no on-screen command to transcribe.

Provenance: the swath version, commit, capture date, and command are unknown in retained evidence. The retained generated report preserves figures derived from the trace (objects, ranges, splits, and the first-to-last event span), but the raw trace and run summary were not retained. The provenance table lists exactly which evidence survives. This is a separate capture from the v0.2.1 recording in the project README (39,585,029 objects); a live bucket changes between runs, so the two are identified separately rather than treated as one number rounded two ways.

36-second CLI demolist / resume / DuckDB
A recorded Docker workflow: start a listing, interrupt it, resume it from its output directory, and query the Parquet parts with DuckDB. Captured with swath 0.2.1 (commit 505ae26e6019, read from the video's own opening swath --version frame); the capture date and machine are unknown in retained evidence, and the file entered this site's history on 2026-08-20 (commit 34a6c63), a lower bound on publication rather than a capture date.
Read the commands and result shown in the video

Transcribed from the video's own opening frames (its poster image, which is a still from the recording itself):

swath $ swath --version
swath 0.2.1
Built by Varve: https://varve.io
Source: https://github.com/varveio/swath
Commit: 505ae26e6019
Runtime: 25.0.3+9-LTS
swath $ swath list s3://noaa-gestofs-pds/ \
    --no-sign-request --region us-east-1 \
    --concurrency 128 \
    --format parquet -o /out/noaa-gestofs-pds
→ writing parquet dataset to /out/noaa-gestofs-pds
  listing · 4,002 objects · 3,999 keys/s (avg 3,999) · 5 pages

That is the command and the state visible at the video's start; the remainder — interrupting, resuming, and the DuckDB query — plays out in the recording itself and was not separately transcribed here. The command, version, and commit match run noaa-gestofs-pds-2026-08-03-505ae26 — the README's recorded full-scale run (39,585,029 objects) — but this video's own final object count was not independently confirmed from retained evidence, so treat it as a related capture sharing that run's identity, not as separately verified proof of its ending numbers.

Latest published release: Java swath 0.3.2. Go preview: unreleased on main.