Documentation · v0.5.0

Shape JSON into tables you can read

shapeshift streams JSON and JSONL into Parquet or a self-contained Apache Iceberg v2 table under one small declarative spec. It is one static Rust binary, or a set of crates you embed: no JVM, no catalog server, no Python, no row cap, no telemetry. These pages cover installing it, the spec, every command, and operating the tables it writes.

Install

Three ways in. The spec and the commands are the same in all of them; what differs is which optional features the binary carries.

Release binary — Linux x86_64, static musl
$ V=0.5.0; F=shapeshift-$V-x86_64-unknown-linux-musl
$ curl -LO https://github.com/lucheeseng827/shapeshift/releases/download/v$V/$F
$ curl -LO https://github.com/lucheeseng827/shapeshift/releases/download/v$V/$F.sha256
$ sha256sum -c $F.sha256
$ install -m 0755 $F /usr/local/bin/shapeshift
$ shapeshift --version
shapeshift 0.5.0

A shapeshift-v* tag builds this binary from the default feature set, asserts it is statically linked and boots, and attaches it with its .sha256 to the release. It writes to the local filesystem only, with Snappy or no compression.

Container — mancube/shapeshift, linux/amd64 and linux/arm64
# the same static binary on scratch; the working directory is /data
$ docker run --rm -v "$PWD:/data" mancube/shapeshift:0.5.0 \
    shape -i events.jsonl -o events.parquet

# or build the image yourself from the repository's Dockerfile
$ git clone https://github.com/lucheeseng827/shapeshift && cd shapeshift
$ docker build -t shapeshift .

The image is tagged with the version and latest. Like the release binary it is the lean build: no object-store output, no zstd, no console. The image has no shell, so the entrypoint is the binary and everything after the image name is its arguments.

From source — cargo, with the optional features
$ git clone https://github.com/lucheeseng827/shapeshift && cd shapeshift

# the lean binary: Snappy-only, C-free, local files
$ cargo build --release -p shapeshift-cli

# every optional feature: zstd, S3/GCS/Azure output, the local console
$ cargo build --release -p shapeshift-cli --features zstd,object_store,serve

# the static musl binary the release ships
$ rustup target add x86_64-unknown-linux-musl
$ cargo build --release --target x86_64-unknown-linux-musl -p shapeshift-cli
featurewhat it addscost
zstd--compression zstd for Parquet output and Iceberg data files (level 3). Without it, asking for zstd is a clear error.Links the zstd C codec.
object_store-o s3://…, gs://, az://, file:// for shape, and object-store URLs for inspect, compact and expire. Credentials from the standard AWS_* / GOOGLE_* / AZURE_* variables.Links the cloud clients and TLS; not part of the musl-static build.
serveshapeshift serve, a local single-user web console over infer, shape, inspect and cost.Pure Rust on std::net; the default binary is unchanged without it.

The workspace declares Rust 1.80 as its minimum; the repository's Dockerfile notes that one transitive dependency needs 1.85 or newer to build, so use a current stable toolchain.

The pages

What it is not

Going deeper

These pages are generated from, and checked against, the documents and code in the repository. The long-form sources: