Skip to main content
@vertracloud/blob is the Blob Storage client for Node 18+, browsers and edge runtimes. It has no dependencies, uses the native fetch, and re-exports the payload types, so you import everything from one package.
Options: apiKey or uploadToken, baseUrl (default https://blob.vertracloud.app/v1, including the version), a custom fetch, partConcurrency (default 4), maxRetries (default 3) and timeout. Pass workspaceId to act on a workspace’s storage (Authentication). The options you pass are camelCase; the objects the SDK returns keep the API’s snake_case fields (obj.content_type, stats.used_bytes).

Uploading

put() chooses the simple, direct or multipart flow by file size and sends parts in parallel (4 by default) with a retry per part.
put() accepts the upload options in camelCase (overwrite, renameOnConflict, randomSuffix, cacheControl, contentDisposition, filename, expiresAt, metadata).

Files

Everything else

Errors

Failures throw a typed error with code and status:
The SDK retries only reads and individual upload parts. It never retries creating an upload, completing it or a 429, to avoid duplicates; handle RATE_LIMIT_EXCEEDED yourself by waiting err.retryAfter seconds. Codes are in the error catalog. Other languages: Python and Go. Routes: Blob API reference. General SDKs: Official SDKs.