Core Concepts
A handful of ideas explain almost everything Vela does. This page introduces them; each section links to the guide that covers it in depth.
Objects
An object is a logical file: a path, a set of metadata and a reference to a blob holding its bytes. This is what the API returns for every file:
{
"id": "01m4tscd50ry5wfktp4mx4r7c4",
"path": "docs/handbook/hello.md",
"name": "hello.md",
"kind": "file",
"size": 8,
"sha256": "90f8ec5669cd34183b9b0fdf8b94f5efb4c3672876330f4aa76088c2b4ad17be",
"content_type": "text/markdown; charset=utf-8",
"disposition": "inline",
"visibility": "public",
"effective_visibility": "public",
"target": null,
"title": "Hello guide",
"description": "First steps",
"tags": ["intro", "guide"],
"created_at": "2026-10-13T14:06:38Z",
"updated_at": "2026-10-13T14:06:45Z",
"expires_at": null,
"expired": false,
"revision": 3,
"url": "https://store.example.com/docs/handbook/hello.md"
}
idis a lower-case ULID. It stays the same across renames, moves, overwrites and a trip through the trash.revisionincreases with every change to content or metadata and powers optimistic locking (If-Match: "r3").urlis the public URL, ornullfor private objects.
See Metadata & Expiry for every field.
Symlinks
A symlink ("kind": "symlink") is an object without content of its own that serves another file, referring to it by ID. Renames and moves of the file keep it working, overwrites change what it serves, and deleting the file leaves it broken until the file is restored. It has its own path and metadata, and anonymous visitors get the stricter of its and its file's visibility — the effective_visibility. See Symlinks.
Paths
A path such as docs/math/q1/test.pdf identifies an object. Paths are case-sensitive, have no leading slash (one is stripped if you type it), and are normalized to Unicode NFC. A trailing slash means “directory” in commands that accept both, like ls, mv and rm.
| Rule | Detail |
|---|---|
| Length | At most 1024 bytes per path and 255 bytes per segment. |
| Segments | No empty segments (a//b), no . or .., no leading or trailing spaces, no all-space segments. |
| Characters | No backslash, NUL or control characters (U+0000–U+001F, U+007F). |
| Reserved first segment | api, s, _vela, _blobs, healthz, robots.txt, favicon.ico (case-insensitive) — these URLs belong to Vela itself. |
| Case | A.pdf and a.pdf are different objects. |
In URLs each segment is percent-encoded separately, so reports/Q1 summary.pdf is served at /reports/Q1%20summary.pdf. The API rejects non-canonical paths with 400 invalid_path instead of silently cleaning them.
Directories
Directories are implicit. docs/ exists while at least one object has a path starting with docs/; there are no empty directories and no mkdir. As in a real filesystem, a path cannot be a file and a directory at once:
- you cannot create
a/bwhile an objectaexists; - you cannot create
awhile anything exists undera/.
Create, upload, move and restore all enforce this and fail with 409 path_conflict.
Blobs
A blob is the immutable stored content of one object version. Blobs are named by random IDs, never by path or hash, and live either under blobs/<shard>/<id> on the filesystem or under a prefix in a private bucket. Consequences:
- Renames and moves never touch file contents: they are atomic, single-transaction metadata updates.
- Every upload creates a new blob; there is no deduplication.
- Overwriting a file gives it a new blob but keeps its object ID, metadata and signed links.
- Old blobs are deleted later by a durable garbage collector, never in the middle of a request.
Visibility
Each object has one of three visibilities. It can be changed at any time and takes effect on the next request.
| In the HTML index | Direct URL | API with key | Signed link | |
|---|---|---|---|---|
| public | yes | yes | yes | yes |
| unlisted | no | yes | yes | yes |
| private | no | 404 | yes | yes |
New objects default to unlisted unless the client or the server's VELA_DEFAULT_VISIBILITY says otherwise. Read Visibility for headers and caching.
API keys and scopes
Every /api/v1 request carries an API key in Authorization: Bearer vela_<id>_<secret>. A key has a name, a scope and an optional path prefix:
| Scope | Allows |
|---|---|
| ro | List, stat and download through the API; read directory policies. |
| rw | Everything in ro, plus create, upload, move, delete to trash, restore, metadata, signed links, trash listing and directory policies. |
| admin | Everything in rw, plus permanent deletion (purge) and emptying the trash. |
A key restricted to ci/ sees and changes only paths under ci/. Keys are created and revoked on the server with velad key — never over HTTP. See API Keys & Scopes.
Tags
Tags are short lower-case labels on an object. Besides being shown in the index, they work as a selection: --by-tag and --by-tags make most commands act on every object with certain tags instead of on paths, after showing the plan for anything beyond metadata. See Tag Selection.
Signed links
A signed link looks like https://store.example.com/s/<link-id>/report.pdf?exp=…&sig=… and grants access to one object until exp. The signature is an HMAC over the link ID and expiry. Links are bound to the object ID, so they survive renames; they stop working when revoked, when the object is trashed, or when they expire. They cannot be permanent and cannot be extended by editing the URL. See Signed Links.
Trash
Deleting moves objects into the trash, where they stay for VELA_TRASH_RETENTION (14 days by default). Restoring brings back the same object ID — and with it every signed link. Purging deletes permanently and requires an admin key. See Trash & Recovery.
Object expiry
An object can carry an expires_at time — a self-destructing file. From that moment it is gone from the public side: its URL, signed links and the index all behave as if it did not exist. Through the API it stays readable (marked "expired": true) until the next janitor pass moves it to the trash, giving you a window to rescue it.
The janitor
The janitor is a background job inside velad. It first runs one minute after startup and then every VELA_JANITOR_INTERVAL (24 hours). It removes old link records, trashes expired objects, purges old trash, retires unused signing keys, deletes stale temporary files and orphaned blobs, and collects unreferenced content. See Janitor & Cleanup.
Directory policies
Separately from files, a directory policy controls how a directory appears on the public side: whether its index page exists, whether it is listed in its parent, whether crawlers are told noindex, and what title and description it shows. Policies never change who can download a file. See Directory Policies.
Web sessions
A web session is an optional, read-only browser sign-in with an API key, enabled with VELA_WEB_AUTH=on. It is not a new credential: the session follows its key, sees the anonymous view plus everything under the key's prefix, and ends when the key is revoked. Signed-in index pages mark what anonymous visitors cannot find. See Web Sign-In.
Delivery modes
How bytes reach the client is a deployment choice that never changes access rules:
- FS direct (default) — Go streams files from disk.
- FS accel — Go authorizes, then nginx serves the blob through
X-Accel-Redirect. - R2 proxy — Go streams contents from the bucket.
- R2 redirect — Go answers with a short-lived presigned bucket URL.