Google Drive Index — Generator

Fill in the form below to generate your ready-to-deploy worker.js.

v2.5.9
1
Choose Authentication Method
How will your index access Google Drive?
👤
Personal Account (OAuth)
Access your own Google Drive using your Google account. Most common setup — requires a Client ID, Client Secret and a one-time authorization.
🤖
Service Account
Best for Shared Drives. Uses a JSON key file — no browser sign-in needed. Share the drive with the service account email and paste the JSON below.
2
Google Credentials
Enter your OAuth credentials and authorize access to your drive.
First time? Quick setup:
  1. Go to Google Cloud Console → Credentials. Create a project if needed.
  2. Click + CREATE CREDENTIALS → OAuth client ID. Set up consent screen if prompted (External, add https://www.googleapis.com/auth/drive scope, add your email as test user).
  3. Application type: Web application. Add redirect URI: http://localhost
  4. Copy the Client ID and Client Secret below, then click Authorize.
  5. After authorizing, your browser shows an error page — that's normal. Copy the full URL from the address bar and paste it below.
Paste the full URL from your browser address bar after Google redirects, or just the code= value.
Already have a refresh token?
3
Configure Your Index
Set up your site name, drives, and optional features.
🌐 Site Settings Required
💾 Drives At least one
Use root for your personal Google Drive. For Shared Drives, paste the ID from the drive URL (e.g. 0AOM2i7Mi3uWIUk9PVA).
🔐 Encryption Keys Auto-generated
These keys encrypt your session cookies. Generated randomly each time — you can click New to regenerate. Keep them secret.
🔒 Login / Password Protection
Optional
Require visitors to sign in before accessing the index.
⚙️ Advanced Options Optional
🎨 UI Options Optional
© gdi.js.org  ·  Privacy  ·  Your credentials are never stored on our servers.