Giter Site home page Giter Site logo

vmdao / r2-explorer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from g4brym/r2-explorer

0.0 0.0 0.0 7.54 MB

A Google Drive Interface for your Cloudflare R2 Buckets

Home Page: https://r2-explorer.massadas.com/

License: MIT License

Shell 0.11% JavaScript 6.84% TypeScript 2.79% HTML 0.19% Vue 10.45% SCSS 79.62%

r2-explorer's Introduction

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/

This project is still in development, and there are definitely going to be some weird issues sometimes, but when you find something please open an new issue for it to get solved.

Features

  • Very quick bucket/folder navigation
  • pdf, image, txt, markdown, csv, etc in-browser preview
  • Drag-and-Drop upload
  • Multiple files and folder uploads
  • Create folders
  • Rename files
  • Download files
  • Delete files
  • Right click in file for extra options
  • Multipart upload for big files

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.


Q. Can i upload files bigger than 100MB?

A. Yes! R2-Explorer now support's Multipart Upload, that splits the files you are uploading in about 95MB chunks for uploading within the Cloudflare 100MB uploading limit.

Getting Started

Run this command to get an example project setup

npx r2-explorer my-r2-explorer

Change into the newly created directory and install the packages

cd my-r2-explorer
npm install

Update 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 publish

Upgrading your installation

In order to update to the latest version you just need to install the latest r2-explorer package from npm and re-deploy your application

npm install r2-explorer@latest --save
wrangler publish

TODO

  • Integration with cloudflare access
  • allow bucket names with spaces
  • Search files
  • Rename folders
  • Delete folders
  • Image thumbnail's using Cloudflare workers
  • Tooltip when hovering a file with absolute time in "x days time ago" format
  • Automatically load more files, when the bottom is reached (current limit is 1000 files)
  • Download files bigger than 2gb with presigned url's
  • set file navigation in the url to allow direct share of a specific file
  • only support previews to files under 100mb

Known issues

  • Rename files with special characters is not possible with current sdk issue here

Images

Home Page Home

Image Previewer Home

Pdf Previewer Home

New Folder Home

Uploading Files Home

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

r2-explorer's People

Contributors

g4brym avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.