A simple API to return a list of keys on a Cloudflare R2 bucket.
- Sign up for Cloudflare Workers. The free tier is more than enough for most use cases.
- Clone this project and install dependencies with
bun install
. Alternatively, delete thebun.lockb
file and usenpm install
if you prefer. - Setup the bindings in
wrangler.toml
. Use thewrangler.example.toml
file as a template. - Run
wrangler login
to login to your Cloudflare account in wrangler - Run
wrangler deploy
to publish the API to Cloudflare Workers
Run wrangler remote
to start the project in a way that will allow you to access the bucket remote bucket.