Note
Original project: longern/FlareDrive
This is a totally rewritten version of FlareDrive by @dragon-fish
CloudFlare R2 storage manager with Pages and Workers. Free 10 GB storage. Free serverless backend with a limit of 100,000 invocation requests per day. More about pricing
- Drag-and-drop upload
- Multiple layouts: List, Grid, and Gallery
- File preview: Image, Video, Audio, PDF, and Text...
- Upload history (* currently on local storage)
Before starting, you should make sure that
- you have created a CloudFlare account
- your payment method is added
FlareDrive is almost ready to use out of the box. It only takes a few simple steps to install:
- Click this link to start the installation
- Paste
https://github.com/project-epb/flaredrive-rev
into the "Git repository URL" box and click Next. - Follow the prompts in the form to create a new project.
- Done!
(Optional) If you want a custom domain or CDN, check the control panel of the workers and the control panel of the R2 bucket you created in the previous step.
Check out the .env.sample
file for all the environment variables available for configuration!
Configuration example:
There is no built-in authentication support, yet. By default everyone can read and write your storage. But CloudFlare Zero Trust can be used to protect your data. Do these steps to enable authentication:
- Enable CloudFlare Zero Trust
- In Access->Applications, create a self-hosted application
- Set Path as
api/bucket/
to disable public write or leave it blank to disable public read - Create a policy which accepts your email only
Gallery Layout
Book Layout
Manga!
File Info
MIT License
Copyright (c) 2022 Siyu Long
Copyright (c) 2025 Dragon Fish