Package Exports
- r2-explorer
- r2-explorer/dist/umd/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (r2-explorer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
R2-Explorer
A Google Drive Interface for your Cloudflare R2 Buckets!
This project is deployed/self-hosted in your own Cloudflare Account as a Worker, and no credential/token is required to start using it.
You can see an live example, in read-only mode, in your browser at https://r2-explorer.massadas.com/
Features
- Very quick bucket/folder navigation
- pdf, image, txt, markdown, etc in-browser preview
- Drag-and-Drop upload
- Create folders
- Rename files
- Download files
- Delete files
- Right click in file for extra options
FAQ
Q. Is there any Authentication for r2-explorer?
A. No. If you want authenticated access, you must setup Cloudflare Access in your account. Access is free up to 50 users.
Getting Started
Run this command to get an example project setup
npx r2-explorer my-r2-explorerChange into the newly created directory and install the packages
cd my-r2-explorer
npm installUpdate the wrangler.toml with your R2 Buckets (tip: you can setup as many Buckets as your want)
- wrangler.toml -
...
[[r2_buckets]]
binding = 'my-bucket-name'
bucket_name = 'my-bucket-name'
preview_bucket_name = 'my-bucket-name'If you want to be able to upload/modify your buckets, you must update the readonly flag in src/index.ts file.
After that just run publish and the project will be up and running for you and everyone you invite to use the Buckets
wrangler publishTODO
- Integration with cloudflare access
- allow bucket names with spaces
- Search files
- CSV Previewer
- Upload folders
- Rename folders
- Delete folders
- Image thumbnail's using Cloudflare workers
- Tooltip when hovering a file with absolute time in "x days time ago" format
- Upload folders with files
- Automatically load more files, when the bottom is reached (current limit is 1000 files)
- Download files bigger than 2gb with presigned url's
Known issues
- Rename files with special characters is not possible with current sdk issue here
Images
Home Page

Image Previewer

Pdf Previewer

New Folder

Uploading Files

Compiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildLints and fixes files
npm run lint