Skip to content

0xZETAX/goindex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


goindex
goindex-license GitHub Release Date GitHub last commit GitHub repo size

Overview

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.

What’s in this repo

  • workers.js - the Cloudflare Worker script.
  • Theme is loaded via jsDelivr (you can point the CDN to your own repo; see “Host assets yourself”).

Download Latest Version

workers.js

Quick start

  1. 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.
  1. 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.

  1. 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 bar tips

  • 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.

Optional configuration notes

  • 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).

Credits

goindex-theme-acrou - Achrou

GDIndex - maple3142

goindex - donwa

goindex - alx-xlx

About

Index your Google Drive

Topics

Resources

Stars

Watchers

Forks

Languages

  • JavaScript 79.7%
  • Vue 12.3%
  • HTML 7.0%
  • SCSS 1.0%