Skip to content

A Google Drive Index Running on CloudFlare Workers.

Notifications You must be signed in to change notification settings

habephere/GDIndex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preview

Google Drive Index + Dark mode

Open Source Love GitHub repo size Generic badge

Combining the power of Cloudflare Workers and Google Drive will allow you to index your files on the browser on Cloudflare Workers.

This theme's goindex is currently based on yanzai/goindex

Features

  • Video Player - | mp4 | webm | avi | mpg | mpeg | mkv | rm | rmvb | mov | wmv | asf | ts | flv
  • Music Player - | mp3 | flac | wav | ogg | m4a
  • Document Viewer - | html | php | css | go | java | js | json | txt | sh | md | pdf
  • Image Viewer - | bmp | jpg | jpeg | png | gif
  • Multi-level Search within default and team/shared drives
  • Multi drive encryption
  • Mobile Friendly
  • Page-level caching, browser forward and backward without reloading
  • Dark Theme
  • Main Color:
    • red | pink | purple | deep-purple | indigo | blue | light-blue | cyan | teal | green | light-green | lime yellow | amber orange | deep-orange | brown | greyblue-grey
  • Accent Color:
    • red | pink | purple | deep-purple | indigo | blue | light-blue | cyan | teal | green | light-green | lime | yellow | amber | orange | deep-orange

Quick Deployment

  1. Open the below Colab notebook in a new tab
    Open In Colab
  2. Fill the fields in it on your choice and run the cell
  3. Download the txt file with the code generated by the notebook
  4. Deploy the code to Cloudflare Workers

Deployment

  1. Open https://console.cloud.google.com/marketplace/product/google/drive.googleapis.com
  2. Create a new project or use one of the existing projects if you already have created. (If you are using Google Cloud Platform for the 1st time: do this only if you want to give your project a custom name. otherwise, your project will be automatically created after the next step with the name "My First Project". If you don't care about the name of the project like me then just skip this step)
  3. Click Enable button to enable Google Drive API
  4. Click Create Credentials
  5. Select "Google Drive API" from the 1st dropdown and select "Other UI" from the 2nd dropdown
  6. Select "User data" from radio buttons
  7. Click "What credentials do I need" then, a pop-up will appear saying that you need to set up the Consent Screen.
  8. click "set up consent screen". it will take you to a new tab
  9. Select "External" as the user type and click create
  10. Provide app name, User support email, and developer contact information which are required for the consent screen. then finish creating the consent screen.
  11. After creating the consent screen, click publish app. (This option can be found under Publishing status)
  12. Head back to the previous tab to continue creating credentials
  13. Click on refresh and create OAuth client ID then click Done
  14. Click on newly created OAuth Client ID to see client id and secret
  15. Open the below Colab notebook(which is made for the ones who wish to use their own credentials) in a new tab
    Open In Colab
  16. Copy your client id and client secret into the Colab notebook and fill the fields in it on your choice and run the cell
  17. Download the txt file with the code generated by the notebook
  18. Deploy the code to Cloudflare Workers

Extra Options

const uiConfig = {
  .......
  "hide_madewithlove": false, // Set this to true if you want to hide made-with-love text at the bottom of the page.
  "helpURL": "", // Provide the URL of the help page(instructions for using the index). Leave this empty if you want to hide the help icon. Providing a URL will open the help page in a new tab. (You can use telegra.ph to write instructions)
  .......
};

Credits

About

A Google Drive Index Running on CloudFlare Workers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.6%
  • Jupyter Notebook 7.4%