cloudflare-r2

Configure Cloudflare R2 S3-compatible storage with signed URLs and CORS.

Updated Aug 17, 2025
One-click install
npx skills add https://github.com/global-ministries/global-connect --skill cloudflare-r2-global-ministries
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-r2
Source: https://github.com/global-ministries/global-connect/tree/main/.agent/skills/cloudflare-r2
Command: npx skills add https://github.com/global-ministries/global-connect --skill cloudflare-r2-global-ministries

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @aws-sdk/client-s3, @aws-sdk/s3-request-presigner.

What problem does it solve?

This Skill addresses the challenge of managing cloud object storage costs, particularly egress fees, by leveraging Cloudflare's R2 service, offering a cost-effective alternative to traditional S3-compatible storage.

Core Features & Use Cases

  • S3-Compatible API: Integrates seamlessly with existing S3 SDKs.
  • Zero Egress Fees: Eliminates data transfer costs, ideal for high-volume assets.
  • CDN Integration: Leverages Cloudflare's global network for fast content delivery.
  • Use Case: Migrating large media assets from Supabase Storage to Cloudflare R2 to reduce monthly hosting bills.

Quick Start

Use the cloudflare-r2 skill to generate a signed URL for uploading a file named 'profile-picture.jpg' with content type 'image/jpeg'.

Frequently Asked Questions about cloudflare-r2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a signed URL for uploading files to Cloudflare R2?

Cloudflare R2 eliminates egress fees entirely, making it highly cost-effective for high-volume asset hosting and delivery compared to traditional S3-compatible storage that charges for data transfer.

How do I migrate large media assets from Supabase Storage to Cloudflare R2?

You can migrate large media assets from Supabase Storage to Cloudflare R2 by utilizing the S3-compatible API to transfer files directly, thereby reducing your monthly hosting bills and eliminating egress fees.

Can I use the AWS S3 SDK with Cloudflare R2 for a Next.js application?

Yes, you can use the AWS S3 SDK with Cloudflare R2 in a Next.js application by configuring the client to point to your R2 endpoint and setting up the necessary CORS rules for browser uploads.

What is the best way to configure CORS for Cloudflare R2 object storage?

The best way to configure CORS for Cloudflare R2 object storage is to establish bucket rules that explicitly permit cross-origin requests from your application domain, ensuring secure client-side uploads via signed URLs.

Does Cloudflare R2 support CDN integration for fast content delivery?

Yes, Cloudflare R2 supports optional CDN integration by leveraging Cloudflare's global network, which caches your high-volume assets at the edge to ensure fast content delivery to end users.