Combining the power of Cloudflare Workers and Google Drive will allow you to index your files on the browser on Cloudflare Workers.
- π€ Dark Theme: https://dark-demo.dudoo.workers.dev
- π€ Light Theme: https://light-demo.dudoo.workers.dev
- π Search function also works for folder root type
- ποΈ Support for duplicated file and folder names
- π€ Files and folders with the same name
- π Files and folders with the same name but different cases
- β Ability to force index to load (can be disabled)
- π Quick actions tab (can be disabled):
- π₯ Direct Download
βοΈ Open link in a new tab- π Copy link to the clipboard
- π File id encryption
- π’ File size in 1024 bytes system
- π₯ Support for multiple (unlimited) username/password pairs
- π Ability to download files of Google Workspace apps in all available formats:
- π Google Documents - ( docx | odt | rtf | pdf | plain text | html | html/zipped | epub )
- π Google Spreadsheets - ( xlsx | ods | csv | pdf | html/zipped )
- π¨βπ« Google Presentations - ( pptx | odp | pdf | plain text )
- π Google Drawings - ( pdf | jpg | png | svg )
- β Google Jamboards - ( pdf )
- π Google Apps Scripts - ( json )
- πGoogle Forms - ( html/zipped )
- ποΈ Ability to change the order which files are listed in
- π Ability to access/download shortcuts of files and folders
- π¦ Ability to download files which Google has flagged as a virus (can be disabled)
- ποΈ Ability to download trashed files (can be disabled)
- π‘ Support for all characters including slashes('/', '\') and emojies in file/folder names
- π Shows modified date & time in your local time
- π Modified time displaying issue on Safari browser and browsers on iOS has been fixed
- π₯ 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
- π 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
- Adding all expected tasks to the to-do list
- Adding Plyr video player (almost completed)
- Implementing service accounts feature
Note: The Wiki will be added soon. Until then, you can check this out: https://dudoo.me/wikis.
If you are comfortable reading comments in the code, here you go: goindex-extended/index.js. (Note: Don't edit the code after the line:123 unless you need to develop.)
Note: If you need the latest version, use index.js, which is in the root of the repo: goindex-extended/index.js.
- The Latest version of index.js will be added to the generator soon. Until then, you can use the generator for creating auth credetials, and then you can add them manually to the latest code which you can get from the file mentioned above.
- Open the below Colab notebook in a new tab
- Fill the fields in it on your choice and run the cell
- Download the txt file with the code generated by the notebook
- Deploy the code to Cloudflare Workers
- If you added any folder to the index and you want the search function to work with folders as well, then check this out: Configure Search Functionality for Folders
- Go enable Google Drive API
- 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)
- Click Enable button to enable Google Drive API
- Click Create Credentials
- Select "Google Drive API" from the 1st dropdown and select "Other UI" from the 2nd dropdown
- Select "User data" from radio buttons
- Click "What credentials do I need" then, a pop-up will appear saying that you need to set up the Consent Screen.
- click "set up consent screen". it will take you to a new tab
- Select "External" as the user type and click create
- Provide app name, User support email, and developer contact information which are required for the consent screen. then finish creating the consent screen.
- After creating the consent screen, click publish app. (This option can be found under Publishing status)
- Head back to the previous tab to continue creating credentials
- Click on refresh and create OAuth client ID then click Done
- Click on newly created OAuth Client ID to see client id and secret
- Open the below Colab notebook(which is made for the ones who wish to use their own credentials) in a new tab
- Copy your client id and client secret into the Colab notebook and fill the fields in it on your choice and run the cell
- Download the txt file with the code generated by the notebook
- Deploy the code to Cloudflare Workers
- If you added any folder to the index and you want the search function to work with folders as well, then scroll down a bit and check the below section
If you added any folder to the index and you want the search function to work with folders as well, then the below steps need to be followed. Otherwise, the Search function will not be worked properly.
Note: If you didn't add any folder ids to the roots section in your index, then you don't need to go through this.
- Open the following Colab notebook in a new tab
- Run the cell which is highlighted; then a text box will be appeared
- Copy the entire index code from your Worker in Cloudflare and paste it into the provided text box
- Then this notebook will generate an encrypted folder id list for your index
- This may take some time. So, you can have a coffee until this finishes up
- Get the folder id list by copying it to the clipboard or downloading it as a text file
- Next, host that folder id list in a text file (publicly) on GitHub or somewhere else you prefer
- GitHub is recommended
- You can make the file available public since it is fully encrypted
- Sample folder id list file can be found here: goindex-extended/sample-files/sample-folder-id-list.txt
- Get the raw link to that file and put it in the index code: 9th line
- CDN URLs can also be used (jsDeliver.com, raw.githack.com)
- finally, redeploy the code; now search function will start working with folder Root type as well
- donwa : for writing such a great script
- yanzai & all initial contributors : for contributing to the project
- 5MayRain : for implementing Nexmoe theme
Β Β Β Β Took some stuff from their repos for setting up the README.md file and the Wiki. So thanks! π
GoIndex - Extended by Cheems(AKA Dudu) is licensed under the MIT License, which you can find in the goindex-extended/LICENSE file.