Challenge

Most image/video hosts either cost too much, give terrible embeds, or let anyone upload whatever they want. Needed something that could handle large files, generate nice-looking embeds for social platforms, and restrict access without being complicated.

Solution

Built the platform on Cloudflare R2 since it's significantly cheaper than other cloud storage, added API key middleware for simple but effective access control, and generate custom Open Graph tags for each upload so embeds look professional. Direct uploads to R2 mean the server doesn't bottleneck, and Cloudflare's CDN handles global distribution automatically.

Results & Impact

The platform's running in production with proper API key authentication and generates clean embeds across all major platforms. Hosting costs are minimal thanks to R2, and the CDN keeps load times fast regardless of where people are viewing from.