A modern web application that allows you to browse and share your Google Drive files through a clean, responsive web interface. This project creates a public index of your Google Drive folders that can be deployed on Cloudflare Workers.
- Multiple Drive Support: Index multiple Google Drive accounts
- Modern UI: Clean, responsive design with Bootstrap 5
- Search Functionality: Search through your indexed files
- Mobile Friendly: Responsive design that works on all devices
- Authentication: Password protection for accessing the index
- File Preview: Support for various file types including:
- Documents (PDF, DOC, TXT)
- Images (JPG, PNG, GIF, etc.)
- Videos (MP4, AVI, etc.)
- Audio files
- Code files
- Archives (ZIP, RAR, etc.)
- Fast Loading: Optimized for speed with pagination
- CDN Ready: Designed to work with Cloudflare Workers
- Frontend: HTML5, CSS3, JavaScript (ES6+)
- Styling: Bootstrap 5
- Backend: Cloudflare Workers
- API: Google Drive API v3
- Authentication: Google Service Accounts
google-drive-index/
├── app.js # Main frontend application logic
├── worker.js # Cloudflare Worker backend code
├── assets/
│ └── homepage.js # Homepage rendering logic
├── images/
│ ├── Google Logo 1x 150x54dp.png
│ ├── Google Logo 2x 150x54dp.png
│ └── robot.png
└── README.md
- My Drive is
root
, eg. Drive of Simple Gmail Account. - Shared Drive ID is Team/Shared Drive IDs Root.
"roots":[
{
"id": "root",
"name": "Drive One",
"protect_file_link": false,
},
]};
- Add this code for each drive. see cloud flare workers code for more info. (requires common sense)
"roots":[
{
"id": "root",
"name": "Drive One",
"protect_file_link": false,
},
{
"id": "root",
"name": "Drive Two",
"protect_file_link": false,
},
]};
- Multiple Service Accounts are supported.
- set
"service_account": false
to"service_account": true
- Replace {} with data from service account
file.json
- Password protection for the entire index
- Session-based authentication
- Encrypted tokens for secure access
- Service account isolation
- No direct file access without authentication
- Base Source:
- CSS: Bootstrap and Bootswatch
- API: Google Drive API
- jQuery
- PDF Viewer: pdf.js
- CDN: jsDelivr
- Obfuscator: JavaScript Obfuscator Tool
- Made for: Cloudflare Workers
- Several Different Fixes by
- This project is not associated with Google, this project uses Google Drive API to Index Files and Folders.
- This Repo was imported from Bhadoo and then modified for personal use.
- BTC
1KzTb2FSX98ykNXpSjtUzTY4g5AGDKqzMe
- USDT/(TRC20)
TYMSgzFNpxZEjR3FLSjDHPW6ugTfm2y1HT