この紹介文は現在英語版のみです。

A powerful Google Drive Index built with Vue.js running on CloudFlare Workers
🌟 Features
- Modern UI: Built with Vue.js for a responsive and interactive experience
- Media Friendly: Integrated image viewer and video player with subtitle support (SRT)
- Document Preview: Online PDF and EPUB reader
- Authentication: HTTP Basic Auth support for securing your index
- Multi-Drive Support: Connect multiple Google Drive accounts (personal, team drives)
- Lightweight Option: Simple directory listing mode for command-line applications
- Easy Deployment: Deploy to CloudFlare Workers with minimal configuration
🔄 Comparison with Similar Projects
GDIndex is a complete rewrite of GOIndex with several improvements:
| Feature | GDIndex | GOIndex |
|---|---|---|
| Frontend Framework | Vue.js | Plain JS |
| Image Viewer | Integrated (no new page) | Opens new page |
| Video Player | With subtitle support | Basic |
| Document Preview | PDF, EPUB | Limited |
| Password Protection | HTTP Basic Auth | Directory-level (.password) |
| Multiple Drives | ✅ | ❌ |
| Lite Mode | ✅ | ❌ |
🚀 Deployment
Option 1: Automatic Setup (Recommended)
- Visit https://gdindex-code-builder.maple3142.net/
- Follow the on-screen instructions to generate your code
- Deploy the generated code to CloudFlare Workers
Option 2: Manual Setup
- Install rclone
- Configure Google Drive access: https://rclone.org/drive/
- Run
rclone config fileto locate yourrclone.conffile - Extract the
refresh_tokenand optionallyroot_folder_idfrom yourrclone.conf - Copy the content of worker/dist/worker.js to CloudFlare Workers
- Configure the script by filling in your
refresh_token,root_folder_id, and other options - Deploy the worker
Option 3: Using Service Accounts
- Create a service account and key from the Google Cloud Platform console
- In the configuration, set
service_accounttotrueand paste the service account JSON intoservice_account_json - Ensure the service account has access to the folder specified in
root_folder_id - Deploy to CloudFlare Workers
🔧 Lite Mode
Lite mode provides a simple nginx-like directory listing, perfect for command-line applications or minimal interfaces.
Enabling Lite Mode:
- Permanent: Change
lite: falsetolite: truein the script configuration - On-the-fly: Include the HTTP header
x-lite: truein your requests
📝 Configuration Options
const config = {
// Required
refresh_token: "",
// Optional
root_folder_id: "root",
service_account: false,
service_account_json: {},
// Features
lite: false,
enable_cors: true,
// Authentication
auth: false,
username: "",
password: "",
// UI Customization
title: "GDIndex",
favicon: "https://i.imgur.com/PpXXSw3.png"
}