Blob runtime API
Reference for `blob`, `ensureBlob()`, and the core Blob types.
Use this page when you need the Blob surface area. For a guided first run, start with Quickstart.
Runtime exports
| Export | Use it for |
|---|---|
blob | The active storage handle for put, get, list, serve, delete, upload, and multipart flows. |
ensureBlob(blob, options?) | Validate file size and content type before storage. |
Common handle methods
The blob handle exposes the common runtime methods:
put()to store file contentget()to read file contentlist()to list stored objectsserve()to stream a stored object through an H3 routedel()to remove an objecthandleUpload()for form-based uploads
Core types
| Type | Description |
|---|---|
BlobStorage | The runtime storage handle type. |
BlobPutOptions | Options for writes such as content type and naming behavior. |
BlobListOptions | Options for listing and pagination. |
BlobEnsureOptions | Validation rules for size and content type. |
BlobObject | Metadata about a stored blob. |