alepha@docs:~/docs/packages/alepha$
cat bucket.md1 min read
Last commit:
#Alepha - Bucket
#Installation
Part of the alepha package. Import from alepha/bucket.
npm install alepha
#Overview
Unified file storage abstraction across multiple backends.
Features:
- File storage buckets with constraints
- Unified API across all storage backends
- MIME type validation
- File size limits
- Upload/download/delete operations
- TTL-based file expiration
- Providers: Memory (testing), Local filesystem, AWS S3 / Cloudflare R2 / MinIO, Azure Blob Storage, Vercel Blob
#API Reference
#Primitives
$bucket— Creates a bucket primitive for file storage and management with configurable validation.
#Providers
CloudflareR2Provider— Cloudflare R2 storage provider.