Storage client

GitHub

Abstract storage client contract for presigned uploads, object uploads, and deletion.

Installation

bash
pnpm dlx shadcn@latest add @cs/storage-client

Usage

tsx
import { StorageClient } from "@/lib/cs/storage-client"
tsx
class CustomStorageClient extends StorageClient {
  // Implement presetFile, uploadFile, and deleteFile.
}