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.
$ 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.
# 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.
$ 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
| feature | what it adds | cost |
|---|---|---|
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. |
serve | shapeshift 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
Quickstart
Infer a spec from a ragged sample, shape it, inspect the output, land the same rows as an Iceberg table, and read both back in DuckDB. Every block is real output.
ReferenceDataset spec
Every field of the YAML or JSON spec, the seven logical types and how each value is coerced, the eight transforms, path selection, the reject and drift policies, partitioning, merge keys and the validation errors.
ReferenceCLI
Every subcommand and flag, from the binary's own argument definitions; exit codes,
including 75 for a write the commit guard refused; the --summary-json
document; environment variables.
Library & HTTP API
The public Rust API of each crate for embedding the engine, and the endpoints of the
serve console: method, path, request and response.
Iceberg tables
Appends and schema evolution, partitioning, upsert, compaction and expiry, what the commit guard does when writers race, object stores, time travel, and reading the tables from DuckDB.
What it is not
- Not an orchestrator. No DAG, no cron, no run history. shapeshift runs one shape and exits; schedule it with whatever already runs your jobs.
- Not a connector catalog. It does not reach into SaaS APIs or databases. It shapes JSON you already have, and it can upsert a delta you hand it.
- Not a query engine. It writes Parquet and Iceberg for DuckDB, Spark and Trino to read.
- Not a catalog. Tables are self-contained directories (or bucket prefixes). From 0.5 a build with the
object_storefeature can commit through an Iceberg REST catalog you run, but it does not run one.
Going deeper
These pages are generated from, and checked against, the documents and code in the repository. The long-form sources:
- docs/SPEC.md — the spec reference this site's spec page follows.
- ARCHITECTURE.md — crate boundaries, the shape pipeline, why the Avro encoder is hand-rolled.
- docs/DESIGN.md — coercion, inference and Iceberg-writer internals.
- BENCHMARKS.md — every figure, with the machine it was measured on, and the harness to rerun it.
- CHANGELOG.md — read its Upgrading notes before moving between versions.
- ROADMAP.md — what shipped per phase, and what is deliberately out of scope.