Thanks to visit codestin.com
Credit goes to github.com

Skip to content

This repository provides a Google Drive Index script that allows users to list and browse files from their Google Drive in a simple, accessible web interface. It supports search, direct file access, and easy navigation, making it useful for sharing and organizing cloud-stored files efficiently.

License

Notifications You must be signed in to change notification settings

kvnprdtyaa/google-drive-index

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Drive Index

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.

Features

  • 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

Tech Stack

  • Frontend: HTML5, CSS3, JavaScript (ES6+)
  • Styling: Bootstrap 5
  • Backend: Cloudflare Workers
  • API: Google Drive API v3
  • Authentication: Google Service Accounts

Project Structure

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

Drive ID Types

  • My Drive is root, eg. Drive of Simple Gmail Account.
  • Shared Drive ID is Team/Shared Drive IDs Root.

Basic Config

    "roots":[
      {
          "id": "root",
          "name": "Drive One",
          "protect_file_link": false,
      },
    ]};

Multiple ID Config

  • 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,
      },
    ]};

Service Account

  • Multiple Service Accounts are supported.
  • set "service_account": false to "service_account": true
  • Replace {} with data from service account file.json

Security Features

  • Password protection for the entire index
  • Session-based authentication
  • Encrypted tokens for secure access
  • Service account isolation
  • No direct file access without authentication

Credits

Disclaimer

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

License

Donate by Crypto Currency

  • BTC 1KzTb2FSX98ykNXpSjtUzTY4g5AGDKqzMe
  • USDT/(TRC20) TYMSgzFNpxZEjR3FLSjDHPW6ugTfm2y1HT

About

This repository provides a Google Drive Index script that allows users to list and browse files from their Google Drive in a simple, accessible web interface. It supports search, direct file access, and easy navigation, making it useful for sharing and organizing cloud-stored files efficiently.

Topics

Resources

License

Stars

Watchers

Forks