Storage

File storage with global CDN delivery

Store and serve files with automatic optimization and CDN delivery.

Upload Files

import { storage } from '@demo/storage';

// Upload a file
const file = document.getElementById('file-input').files[0];
const result = await storage.upload('uploads/' + file.name, file);

console.log('File URL:', result.url);

Supported File Types

Images

Automatic resizing and format conversion for optimal delivery

Videos

Adaptive streaming with multiple quality levels

Documents

PDF, DOCX, and other document formats

Any File

Store any file type up to 5GB

Image Transformations

Apply transformations on-the-fly via URL parameters:

https://cdn.example.com/image.jpg?width=400&height=300&fit=cover
widthinteger

Resize width in pixels.

heightinteger

Resize height in pixels.

fitstring

Fit mode: cover, contain, or fill.

qualityinteger

Image quality from 1-100 (for JPEG/WebP).