Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
March 20, 2022 09:12
March 20, 2022 01:35
March 20, 2022 09:12
March 20, 2022 01:35
March 20, 2022 01:35
March 20, 2022 01:35
March 20, 2022 01:35
March 20, 2022 01:35
March 20, 2022 01:35
December 15, 2022 18:31
March 20, 2022 01:35
March 20, 2022 01:35
March 20, 2022 01:35
March 20, 2022 01:35
March 20, 2022 01:35
March 20, 2022 01:35
March 20, 2022 01:35


Combining the power of Cloudflare Workers and Google Drive will allow you to index your Google Drive files on the browser.

go2index/index.js is the content of the Workers script.

This theme's goindex is currently based on yanzai/goindex.


๐Ÿš€ Go to:

๐Ÿ›  Quick Development: here/


  • ๐Ÿ‘‘ Page-level caching,browser forward and backward without reloading (MAC users have a better experience with the trackpad)
  • ๐Ÿ—‚ Multi drive switching
  • ๐Ÿ” Http Basic Auth
  • ๐ŸŽจ Grid view mode(File Preview)
  • ๐ŸŽฏ Paging load
  • ๐ŸŒ I18n(multi-language)
  • ๐Ÿ›  Markdown/Html render (Maybe it can be your blog)
  • ๐Ÿ–ฅ Video Online(.vtt subtitle)
  • ๐Ÿ•น Support for custom video player (API)
  • ๐ŸŽง Audio Online
  • ๐Ÿš€ Faster speed


  • More file format preview
  • Let goindex be more than just a directory index

Quick Deployment

  1. Open the following link
  1. Auth and get the code
  2. Deploy the code to Cloudflare Workers

Manual Deployment

  1. Open Google Drive API
  2. Create a OAuth client ID
  3. Install rclone software locally
  4. Get refresh_token with rclone
  5. Download index.js in and replace client_id,client_secret,refresh_token for what you just got.
  6. Deploy the code to Cloudflare Workers



Option Type Default Description
api String '' External video player api. When this value is not null, all of the following options do not work
autoplay Boolean true When set to true, the video plays automatically, depending on whether the browser supports the
invertTime Boolean false Display the current time as a countdown rather than an incremental counter.
controls Array, Function or Element ['play-large', 'restart', 'play', 'progress', 'current-time', 'duration', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'download', 'fullscreen'] Which buttons are displayed in the control bar. See more
settings Array ['quality', 'speed', 'loop'] You can specify which settings to show in the menu

For more option, see plyr options


Option Type Default Description
container String .aplayer No support for changes
fixed Boolean true No support for changes
autoplay Boolean false audio autoplay
loop String 'all' player loop play, values: 'all', 'one', 'none'
order String 'list' player play order, values: 'list', 'random'
preload String 'auto' values: 'none', 'metadata', 'auto'
volume Number 0.7 default volume, notice that player will remember user setting, default volume will not work after user set volume themselves
audios Array [] Playlists can be preset. FAQ

For more option, see APlayer options

Change log


  • Fix image file actions does not work
  • Fix misjudged file to image format
  • Fix more than 10 drive not working
  • Fix some of the operation functions in the search list cannot be used
  • Fix text cache content not refreshing
  • Add video default player(plyr)
  • Add audio player (APlayer)
  • Add copy button to video page
  • Add NProgress
  • Add language cache cleanup
  • Add shortcut can't download tip
  • Markdown displays rendered html by default
  • CLI Delete prefetch preload of lazy load module
  • Delete fontawesome5

Fixed issues

  • Add clean file cache

  • Support for custom video player (API)

  • Beautify: the grid mode file shows icon when no preview is shown

  • Beautify: Adjust the render position

  • Solve the problem that files that can't be previewed can't be downloaded directly by clicking

  • Solve the problem that the file name cannot be opened

  • Solve the problem that switching pages will fall back in the current page loading

  • Program changed to SPA(single page application)

  • Add page level cache(Browser forward and backward do not refresh seconds to load, and Mac users have a better experience of using touch pad)

  • Add http basic auth(Each drive letter can be configured with a user name and password separately, which can protect all sub files and sub folders under the drive)

  • Add grid view mode(File preview)

  • Add paging load

  • Add i18n

  • Add html render

  • Add render folder/file description

  • Add optional configuration

  • Support quick deployment

  • Support PDF Online preview

  • Replace text editor

  • Solve the problem of URL encoding

  • Solve other known problems

  • Support multi disk switching

  • Add version detection

  • Optimize search results

  • Optimize page display