NEWv0.9 · Tag views that keep their metadata fresh

Your files, under your own sails.

Vela is a self-hosted file store with a REST API, a scriptable CLI, expiring signed links, scoped API keys, symlinks, a recoverable trash and a public directory index. One Go binary. One data directory. Local disk or Cloudflare R2.

$ go install go.xchunk.org/vela/cmd/vela@latest
SHEET 01 · vela CLI session API v1 · BEARER AUTH
~/work — vela
1 binary
Static, cgo-free Go server in a distroless image
3 visibilities
public, unlisted and private — per file
2 backends
Local filesystem or private R2 / S3 bucket
0 passwords
Keys only — even the optional browser sign-in
Visibility model

Every file knows who may see it.

Pick a visibility per file and change it at any time — the change takes effect on the very next request. Private files never reveal that they exist.

publicVIS-01

Published

Listed in the public directory index and served to anyone at its direct URL. Perfect for downloads, docs and assets.

  • ✓ Listed in the index
  • ✓ Direct URL works
  • ✓ Cached for five minutes
unlistedVIS-02 · DEFAULT

Link only

Served at its direct URL but never listed, and marked noindex for crawlers. Not access control — just out of sight.

  • ✕ Hidden from the index
  • ✓ Direct URL works
  • ✓ X-Robots-Tag: noindex
privateVIS-03

Locked

Readable only with an API key, a signed link or a browser signed in with a key. Its public URL answers 404, exactly like a file that does not exist.

  • ✕ Direct URL returns 404
  • ✓ API key or signed link
  • ✓ private, no-store caching
Feature manifest

Everything a file store needs. Nothing it doesn't.

No database server, no compose file, no web dashboard to secure. Just a careful server and a CLI built for humans and scripts alike.

01

Streaming, atomic uploads

Uploads stream to disk or multipart S3, are hashed on the fly, verified against your SHA-256 and published atomically. No half-written files, ever.

02

Expiring signed links

HMAC-signed URLs with a lifetime baked in. Revoke them anytime, rotate signing keys, and keep them working across renames.

03

Scoped API keys

Read-only, read/write or admin keys, optionally locked to a path prefix. Give CI a key for ci/ and nothing else.

04

Recoverable trash

Deleting moves files to the trash for 14 days. Restore them with the same ID — and their signed links come back to life.

05

An index for them — and for you

A fast, JavaScript-free directory listing with light and dark modes and hidden entrances. Sign in with your key to see private and hidden files too, read-only.

06

One file, many places

Symlinks serve a file from as many paths as you like without copying it, and survive renames. Link everything with a tag — and keep the view in sync.

07

Filesystem or R2

Keep blobs on local disk, or in a private Cloudflare R2 or S3-compatible bucket. Migrate between them with one verified command.

08

A CLI made for scripts

Stable --json output, documented exit codes, retries, progress bars and dynamic completion of remote paths.

09

Secure by construction

Constant-time secret checks, 404 instead of 403, keys never in URLs, query-free logs and explicit file permissions.

How it works

Go decides. Bytes just flow.

Every request — API, direct URL or signed link — is authorized by velad. Metadata lives in SQLite; contents are immutable blobs with random IDs, so renames are instant and never touch the bytes.

CLIENTS Browserindex · /s/ · sign-in vela CLIprofiles · --json Go client / CIgo.xchunk.org/vela/client HTTPS TLS proxy nginx · Caddy · any query-free logs OPERATOR-OWNED HTTP velad auth · sessions · scopes paths · visibility signed links · trash index · janitor delivery policy SQLite (WAL)paths · metadata · keys · links Filesystemblobs/<shard>/<id> R2 / S3private bucket ONE BACKEND OPTIONAL NGINX ACCEL — X-ACCEL-REDIRECT, NGINX READS FS BLOBS AFTER GO AUTHORIZES ALL ACCESS DECISIONS
Fig. 02 — Request pathScale: not to scale
Four ways in

Use it from the terminal, from code, or from curl.

The CLI is a thin layer over a documented HTTP API and a public Go client — anything you can do in one, you can automate in the others.

# upload a whole directory, publicly
vela put -r ./site docs/site/ --public

# a private backup that deletes itself after a week
pg_dump app | vela put - backups/app.sql --private --expires 7d

# give someone two hours of access to a private file
vela share backups/app.sql --ttl 2h --note "for Dana" --copy

# hide a folder from the index but keep it reachable by URL
vela dir hide docs/drafts/
Security invariants

Boring, on purpose.

Vela's security rules are written down, enforced in one place and checked by tests — including a real nginx in Docker.

§01

404, never 403

Private, expired, trashed and missing files look identical from the outside. Existence is never disclosed.

§02

Keys never in URLs

API keys travel in Authorization: Bearer — or once, in the body of the optional sign-in form. The cookie holds a random session ID, never the key.

§03

Constant-time everything

Key hashes, link signatures and upload checksums are compared in constant time.

§04

Links can't be extended

The expiry in a signed URL must match the stored one. Editing exp gets you a 404.

§05

Query-free logs

Access logs omit query strings, so signatures never land on disk — in velad, nginx and Caddy.

§06

No keys over HTTP

API keys are created and revoked only with velad key on the server. There is no escalation path.

Raise the sails in five minutes.

Clone, run make dev, paste the printed key into vela login — and you have a working store on localhost.