R2 Static Worker

r2-static-server is a minimal Cloudflare Worker + R2 setup that serves static files directly from an R2 bucket. It maps request paths to objects in storage and handles index.html automatically for directory-style URLs.

It uses index.html for directory-style URLs and preserves each R2 object's stored content type. Updating content is as simple as uploading new files to R2.