Skip to main content
BlobRouter v0.1 · Last updated: August 2026 · Architecture version: 2.0
Server-side SDK for Node.js 18+. Not for browser use (API keys must stay on the server).

Install

Constructor

upload(file, options)

Uploads via init → direct PUT to provider → complete. BlobRouter never sees file bytes.
Parameters Returns UploadResult

Retry behavior

  • Retries control-plane calls (/v1/upload/init, /v1/upload/complete, get, delete) on network failures and 5xx / 408 / 429 with exponential backoff
  • Does not retry other 4xx responses
  • Does not retry the provider presigned PUT

get(fileId)

Returns a time-limited presigned download URL.

delete(fileId)

Deletes the object on the provider and marks the file deleted in BlobRouter.

Errors

Common code values:

Local API