GoIndex lets you browse and share the contents of Google Drive using a Cloudflare Worker. The Worker serves a simple, fast UI and direct links to your files without requiring a traditional server.
- workers.js - the Cloudflare Worker script.
- Theme is loaded via jsDelivr (you can point the CDN to your own repo; see “Host assets yourself”).
- Prepare Google API and rclone
- Enable “Google Drive API” in Google Cloud Console and create an OAuth Client ID.
- Install rclone and create a Drive remote. During setup, use your Client ID and Client Secret so you don’t hit shared quotas.
- Find rclone.conf with: rclone config file
- From rclone.conf note: refresh_token and either “root” (for My Drive) or your Team Drive ID.
- Configure workers.js Update the authConfig object with your values. Minimal examples:
My Drive (root):
{
"roots": [
{ "id": "root",
"name": "My Drive",
"user": "",
"pass": "",
"protect_file_link": false }
]
}
Team Drive:
{
"roots": [
{ "id": "YOUR_TEAM_DRIVE_ID",
"name": "Team Drive",
"user": "",
"pass": "",
"protect_file_link": false }
]
}
Important: use the Team Drive ID (e.g., 0AJOMLOnArqblUk9PVA), not a folder ID inside the drive.
- Deploy to Cloudflare Workers
- Create a Worker at https://workers.cloudflare.com/
- Paste the contents of workers.js into the editor and deploy.
- Open your Worker URL and you should see your drive index.
- Search works when the root is either “root” (My Drive) or a Team Drive ID.
- It does not work if you set a subfolder ID as the root.
- Basic Auth per drive: set user and pass in each item in roots to protect browsing. Set protect_file_link to true if you also want to protect direct file links.
- CORS for file downloads: enable_cors_file_down toggles Access-Control-Allow-Origin for media responses.
- .password files: set enable_password_file_verify to true if you want directory-specific passwords (introduces an extra API call per directory listing).
goindex-theme-acrou - Achrou
GDIndex - maple3142
goindex - donwa
goindex - alx-xlx