Introduction

Vela is a self-hosted file store. It pairs a Go server, velad, with a command-line client, vela, and gives you a REST API, a public directory index, expiring signed links, scoped API keys and a recoverable trash. The whole state lives in one data directory.

Meet Vela

Most teams end up with files scattered across ad-hoc static hosting: an nginx root here, a bucket with public ACLs there, a folder someone rsyncs to on Fridays. Vela puts all of that behind one careful service. It owns file contents, metadata, permissions, expiring links and cleanup, while its CLI works equally well in your terminal and in your CI pipeline.

A typical session looks like this:

vela put report.pdf docs/q3/ --public            # publish a file
vela put -r ./site docs/site/ --public           # publish a whole directory
vela share private/contract.pdf --ttl 2h --copy  # temporary access to a private file
vela mv docs/q3/ archive/2026/q3/                # atomic rename of a directory
vela rm -r drafts/                               # into the trash, recoverable for 14 days

What you get

How it fits together

Vela runs as one velad process, usually in a single Docker container behind a TLS reverse proxy you already operate. Inside, it keeps two kinds of state:

  • Metadata in SQLite — logical paths, visibility, titles, tags, API key hashes, signed links, trash entries, directory policies and web session hashes.
  • Contents as immutable blobs — stored under random IDs, either on the local filesystem or in a private R2/S3 bucket. A blob's name has nothing to do with its path, so renames and moves are pure metadata updates.
client ──HTTPS──► reverse proxy ──HTTP──► velad ──► SQLite        (paths, metadata, keys, links)
(browser, vela,     (nginx, Caddy,         │
 Go client, curl)    TLS, logging)         └──► blobs         (filesystem or R2/S3)
Fig. 1 — Request pathGo makes every access decision

Every request — whether it is an API call, an anonymous download from a direct URL or a signed link — is authorized by Go. The proxy only terminates TLS and moves bytes. Even with the optional nginx accel optimization, nginx serves a file only after velad has decided it may.

The two binaries

BinaryRuns onPurpose
veladYour server (Docker image xchunk/vela)Serves the API, the public side and the index. Also administers API keys, signing keys, backups, the janitor and storage migration through local subcommands.
velaYour workstation or CITalks to /api/v1 with an API key. Uploads, downloads, moves, shares and organizes files.

Both are static, cgo-free Go binaries built from the same module, go.xchunk.org/vela. The API contract and the Go client are public packages, so you can integrate without the CLI. See the Go client guide.

What Vela is not

Vela is deliberately small. These are non-goals, not missing features:

  • No user accounts or ACLs. Access is granted with API keys that have a scope and an optional path prefix.
  • No web management UI. Uploading and managing files happens through the API and the CLI. The browser sees the read-only public index — and, with the optional web sign-in, a read-only view of what your key can see.
  • No versioning, deduplication, previews, thumbnails or full-text search.
  • No compose files, Kubernetes manifests or external database. One container and one data directory.
  • No static-site hosting mode. An index.html in a directory is an ordinary file; directories always show the generated index.

Unlisted is not access protectionAnyone who has (or guesses) the URL of an unlisted file can download it. Use private files and signed links for anything sensitive.

Where to go next

Vela is open source under the MIT license. The source lives at github.com/x-chunk/vela and release images are published to Docker Hub for linux/amd64 and linux/arm64.