# The Zero-Install Demo

A public Swarmfile repository (about 60 GiB of LFS payload) that answers the
question "how big can a git clone feel small?" with stock git over HTTPS - no
Swarmfile client, no account, no API key.

```sh
git clone --filter=blob:none --no-checkout https://git-demo.swarmfile.com/swarmfile/large-demo.git
cd large-demo
git sparse-checkout set sample
git checkout main
git lfs pull --include='sample/**'
```

The repository has a small `sample/` subtree (README, generated thumbnails, a
point sample and one LFS-tracked preview) and `large/` - tens of GiB of
synthetic tensor parts, every one of them a git-LFS pointer in the git history.

## What just happened

- The clone asked for **history and trees only** (`--filter=blob:none`), so it
  did not download the `large/` file bytes or even the sample file contents.
- `git sparse-checkout set sample` limited the working tree to `sample/`, and
  `git checkout` fetched just those files.
- `git lfs pull --include='sample/**'` fetched the sample preview's LFS object
  through the same gateway. Fetch one large part the same way:

```sh
git lfs pull --include='large/part-000.bin'
```

The 50-100 GiB of LFS payload is served by the origin and proxied per request;
the gateway's mirror holds only the git objects (the pointers). That is why the
clone is small and the bytes you ask for are the only bytes you wait for.

## Without git-lfs

The partial clone and sparse checkout work with plain git; the large files stay
pointers and the sample's inline files arrive:

```sh
git clone --filter=blob:none --sparse https://git-demo.swarmfile.com/swarmfile/large-demo.git
cd large-demo
git sparse-checkout set sample
git checkout main
```

Install [git-LFS](https://git-lfs.com/) when you want the preview or a large
part.

## Measured

| Step | Measured |
|---|---|
| First byte (`info/refs`, before the clone) | - |
| Clone (`--filter=blob:none --no-checkout`, before LFS) | - |
| Sparse checkout (`sample/`) | - |
| `git lfs pull --include='sample/**'` | - |
| Large-object LFS batch (`large/part-000.bin`) | - |
| Measurement date / runner region | - |

The numbers are produced from a clean runner by the same check that guards the
demo:

```sh
node scripts/ops/git-demo-canary.mjs \
  --url https://git-demo.swarmfile.com/swarmfile/large-demo.git \
  --region <runner-region> --json
```

The first byte is measured BEFORE the clone (so the clone does not warm the
gateway) and the clone's bytes BEFORE any LFS object is fetched; the LFS pull
is timed separately. The launch measurement records its date and runner region
with the numbers. Until that run is published the table is intentionally empty
rather than estimated.

## What it is not

- It is **read-only**: push is not served over HTTPS (push stays the
  [`swarmfile://` helper](https://swarmfile.com/docs/guides/git-clone#pushing)).
- It is **public plaintext**: the demo path is anonymous and the gateway only
  mirrors allowlisted public repositories. It is not a private, managed or
  end-to-end-encrypted repository and cannot be used as one.
- The data is **synthetic and clearly labeled** (deterministic generated
  bytes, no third-party dataset). It demonstrates throughput, not a model or a
  media collection.
- The demo is rate-limited and may be paused for maintenance. A temporary
  `429`/`503` is expected under heavy load or during a redeploy; retry shortly.
  A normal `git clone` failure is the honest signal.

See [Cloning a Repository with Git](https://swarmfile.com/docs/guides/git-clone) for the
`swarmfile://` clone and push paths, and [Git-LFS](https://swarmfile.com/docs/guides/git-lfs) for
using Swarmfile as an LFS server in a repository hosted elsewhere.
