Cloudflare R2 Object Storage

•
239
•

Manages Cloudflare R2 object storage, S3-compatible bucket operations, multipart uploads, CORS policies, and presigned URLs.

Cloudflare R2 Object Storage equips Claude Code with production-ready patterns, automation agents, and reference architectures for building with Cloudflare's S3-compatible, zero-egress object storage. It streamlines R2 bucket configuration via Wrangler, handles direct and presigned URL uploads, orchestrates chunked multipart uploads for large files, resolves CORS issues, and integrates modern R2 capabilities like Event Notifications, Apache Iceberg Data Catalogs, and R2 SQL querying directly within Cloudflare Workers.

Características Principales

01Automated bucket creation, TypeScript binding configuration, and deployment via Wrangler
02Optimized object operations including put, get, head, list, and batch deletions up to 1,000 keys
03Modern R2 capabilities including Event Notifications, R2 SQL querying, and Apache Iceberg Data Catalog
04Large file handling with multipart chunking orchestration, retry logic, and tus resumable uploads
05239 GitHub stars
06Secure client uploads with presigned URL signing via aws4fetch and automated CORS troubleshooting

Casos de Uso

01Generating secure presigned upload URLs for direct client-to-R2 file transfers
02Storing and serving user-generated media and static assets with custom cache headers
03Migrating data and serverless workloads from AWS S3 to Cloudflare R2 with zero egress fees