Google-Drive-Directory-Index | Combining the power of Cloudflare Workers and Google Drive API will allow you to index your Google Drive files on the browser.

Overview

๐Ÿฟ Google-Drive-Directory-Index

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.

Demo

๐Ÿš€ Go to: https://chill.iitkgp.workers.dev/

๐Ÿ›  Quick Development: here/

โœจ Features

  • ๐Ÿ‘‘ 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

TODO

  • 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 https://github.com/Aicirou/goindex-theme-acrou/tree/master/go2index and replace client_id,client_secret,refresh_token for what you just got.
  6. Deploy the code to Cloudflare Workers

Options

Video

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 CONTROLS.md
settings Array ['quality', 'speed', 'loop'] You can specify which settings to show in the menu

For more option, see plyr options

Audio

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

v2.0.8

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

Lisense

MIT

You might also like...

Abusing Cloudflare Workers to establish persistence and exfiltrate sensitive data at the edge.

Abusing Cloudflare Workers This repository contains companion code for the blog post MITM at the Edge: Abusing Cloudflare Workers. malicious-worker/ c

Sep 16, 2022

A Cloudflare Workers service that fetches and renders Notion pages as HTML, Markdown, or JSON.

notion-fetch A Cloudflare Workers service that fetches and renders Notion pages as HTML, Markdown, or JSON. Powered by Durable Objects and R2. Usage P

Jan 6, 2023

A zero-dependency, strongly-typed web framework for Bun, Node and Cloudflare workers

nbit A simple, declarative, type-safe way to build web services and REST APIs for Bun, Node and Cloudflare Workers. Examples See some quick examples b

Sep 16, 2022

Combining R & Observable with Quarto

Quarto Examples Quarto is an open-source scientific and technical publishing system built on Pandoc. It allows to create dynamic content with Python,

Oct 17, 2022

The repos includes script for uploading bulk files in a directory to ipfs using nft.storage

Uploading Foloder to IPFS using nft.storage This repository includes script for uploading bulk files in a directory to ipfs using nft.storage Acknowle

Dec 17, 2022

A URL shortener that runs on Cloudflare Workers

ITP Works A URL shortener that runs on Cloudflare Workers. It stores the rules in Cloudflare KV storage and sends a 301 redirect when a matched pathna

Mar 4, 2022

Starting template for building a Remix site with CloudFlare Workers (ES Modules Syntax)

Starting template for building a Remix site with CloudFlare Workers (ES Modules Syntax)

May 20, 2022

Remix + Cloudflare Workers + DO + Turborepo

Remix + Cloudflare Workers + DO + Turborepo A starter to get you up and going with Remix on Cloudflare with all the latest and greatest. What's inside

Dec 12, 2022

Remix + Cloudflare Workers + Wrangler2 + Tailwind + ESLint + Prettier + Vitest + Playwright

Welcome to Remix! Remix Docs Development You will be running two processes during development: The Miniflare server (miniflare is a local environment

Dec 19, 2022
Comments
  • Video and Audio issue.

    Video and Audio issue.

    Is there any HTML player than can support x265/HEVC videos with no black screen/infinite loading and Audios having Dolby or 5.1 surround channel? Also if there any option to change audio language of a video.

    opened by anilabhadatta 0
  • [ImgBot] Optimize images

    [ImgBot] Optimize images

    Beep boop. Your images are optimized!

    Your image file size has been reduced by 5% ๐ŸŽ‰

    Details

    | File | Before | After | Percent reduction | |:--|:--|:--|:--| | /public/images/player/nplayer.png | 18.35kb | 6.41kb | 65.06% | | /dist/images/player/nplayer.png | 18.35kb | 6.41kb | 65.06% | | /public/images/player/thunder.png | 5.98kb | 2.89kb | 51.72% | | /dist/images/player/thunder.png | 5.98kb | 2.89kb | 51.72% | | /dist/images/eyes.png | 2.29kb | 1.32kb | 42.22% | | /public/images/eyes.png | 2.29kb | 1.32kb | 42.22% | | /public/images/player/iina.png | 13.91kb | 8.84kb | 36.41% | | /dist/images/player/iina.png | 13.91kb | 8.84kb | 36.41% | | /dist/images/player/vlc.png | 6.61kb | 4.25kb | 35.65% | | /public/images/player/vlc.png | 6.61kb | 4.25kb | 35.65% | | /dist/images/baidu-pan-logo.png | 6.30kb | 4.37kb | 30.62% | | /public/images/baidu-pan-logo.png | 6.30kb | 4.37kb | 30.62% | | /dist/images/player/potplayer.png | 9.68kb | 8.28kb | 14.48% | | /public/images/player/potplayer.png | 9.68kb | 8.28kb | 14.48% | | /dist/images/no-data.png | 61.79kb | 56.38kb | 8.75% | | /public/images/no-data.png | 61.79kb | 56.38kb | 8.75% | | /dist/images/airplane.gif | 500.74kb | 500.44kb | 0.06% | | /public/images/airplane.gif | 500.74kb | 500.44kb | 0.06% | | | | | | | Total : | 1,251.27kb | 1,186.37kb | 5.19% |


    ๐Ÿ“ docs | :octocat: repo | ๐Ÿ™‹๐Ÿพ issues | ๐Ÿช marketplace

    ~Imgbot - Part of Optimole family

    opened by imgbot[bot] 0
Releases(v2.0.8)
Owner
Aicirou
ๅผทใ•ไปฅๅค–ใฎ้šŽๅฑคใฏ็„กไพกๅ€คใงใ™๐Ÿ’€
Aicirou
Functional-style Cloudflare Durable Objects with direct API calls from Cloudflare Workers and TypeScript support.

durable-apis Simplifies usage of Cloudflare Durable Objects, allowing a functional programming style or class style, lightweight object definitions, a

Dabble 12 Jan 2, 2023
Index your Google Drive Easily and Free.

Google Personal/Shared Drive Index Full White label and Customizable Index | One of a kind Supports Both My and Team/Shared Drives with Dark Mode. Cli

Moto One Fusion + 26 Sep 22, 2021
Lightweight universal Cloudflare API client library for Node.js, Browser, and CF Workers

Cloudflare API Client Lightweight universal HTTP client for Cloudflare API based on Fetch API that works in Node.js, browser, and CF Workers environme

Kriasoft 15 Nov 13, 2022
Obsidian plugin that allows user to create a glossary of files, an index of files or both.

Obsidian Auto Glossary Auto Glossary is an Obsidian plugin to create a glossary, an index or a glossary with an index from the files you want. Feature

Ennio Italiano 29 Dec 30, 2022
This package generates a GraphQL API from a directory of Markdown files

This package generates a GraphQL API from a directory of Markdown files. Additional metadata like tags, descriptions, or custom fields can be added to the Markdown files in the form of YAML front matter, a simple schema at the top of each file. These fields will be indexed and available to query and filter by in the GraphQL API.

Tim Mikeladze 8 Dec 29, 2022
ๅŸบไบŽ gh-proxy + Jsdelivr+ cnpmjs + cloudflare workers ็š„ GitHub Serverless API ๅทฅๅ…ทใ€‚

better-github-api Better, Eazy, Access Anywhere ไป‹็ป ๅŸบไบŽ gh-proxy + Jsdelivr + cnpmjs + cloudflare workers ็š„ GitHub Serverless API ๅทฅๅ…ทใ€‚ cdn.js๏ผšไป…ๅซ gh-proxy

One Studio 11 Nov 23, 2022
Dead-simple CORS handling for any itty-router API (test with Cloudflare Workers, but works anywhere)!

Simple CORS-handling for any itty-router API. Designed on Cloudflare Workers, but works anywhere. Features Tiny. Currently ~600 bytes, with zero-depen

Kevin R. Whitley 6 Dec 16, 2022
A flexible gateway for running ML inference jobs through cloud providers or your own GPU. Powered by Replicate and Cloudflare Workers.

Cogflare (Working title) Cogflare is a Cloudflare Workers application that aims to simplify running distributed ML inference jobs through a central AP

NightmareBot 14 Dec 12, 2022
Solidity starter combining foundry and hardhat because both are great and I can't live without either...

Combination Pizza Hut & Taco Bell Foundry && HardHat starter template. Motivation I like them both. With this set-up we get: Unit tests written in sol

Cache Monet 32 Aug 23, 2022