{"_id":"@aaquibbot/index","_rev":"2-ebc92b8498e071199e5c3ebf786a91bf","name":"@aaquibbot/index","dist-tags":{"latest":"2.0.24"},"versions":{"2.0.24":{"name":"@aaquibbot/index","version":"2.0.24","description":"A Google Drive Index to List, Watch and Download Files using a Beautiful UI.","main":"README.md","keywords":["google-drive-index, aaquib, gdrive-index"],"author":{"name":"aaquibbot"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Aaquibbot/index.git"},"bugs":{"url":"https://gitlab.com/Aaquibbotl/index/issues"},"homepage":"https://gitlab.com/Aaquibbot/index/-/blob/master/README.md","_id":"@aaquibbot/index@2.0.24","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-gRB/CN0XAluhF31Ah9duvTsSH5TAk4QPk1I8zj8TZqdGXOw1d3SklE2MfaYZ9h1yL3jsa3/illvILHoEx1a1YA==","shasum":"8cfb1c111b5d8993f8eed0b0e00c2c7d365bc2df","tarball":"https://registry.npmjs.org/@aaquibbot/index/-/index-2.0.24.tgz","fileCount":136,"unpackedSize":10975183,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuxq2CRA9TVsSAnZWagAAXmQP/i7/3E5C6ofplzkDC+Bo\nL5o+RfUQeHL2+L1SzsaSiJur1KVxWhHJQmim+VKD2PE3aSM27agTzdGF9yEM\niydQoa/8+4RlDoO1zQX9ve8njHZWGfatXOsvH1sJ17B+DNUSW5bYRPJv1s0T\n3j2iCVjnqE0EpDju8i3YBSG8M3YBX/GFFFgdcCRr1X4W6e/4pyakLJrwbjVY\nR72o5iNdnmt22V74i+0W6UZi9S39eV7f0bCSvmLFvHaOhEnCtld+mYrN1IGa\nM+aKerR4TGfRl+dpxN7MI/xYYfhWCGn+PrR05B3wW2pvwLkO4D0YPPJtKprO\nO+UAm6CcrSS8CQLMjB0IUkMbCTf7TWkUP6itfIN3SwG8qzhcFHo/yIOkQ15h\nS3Rp3Hx6ctNtsi0A36Cf7NC+b8gi38+BRjMg4gQv4iJPzT36vdkZDBrexf49\ni+WKghYX5rTOvD6lvvfYn/tppcQmHbc0mAnpalz9rFK6kx9g17z3rjGPEM3P\nW9WQdyE8BKk3awPwRDr1qt7rhqxjiQi8iPb1nBVSSbx6Bz1bCIB38X4Zae2l\nlHsOKnLXp7xB3DItyzp2sxCBDhn4NYq0D1cWpGMwiUdJnVQrC5qLreFrBV7Z\nQmaiLJpZzvFNHby3t7kVVT/8LQIQQvRb2D7eXydQxTaAi+m6rkF5dKcANnky\nm2NY\r\n=FNQU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICWD5mkU6/qzFR/nD6nweXJvyvNIljnJul8GETpsHrz3AiEA8kH9GZ+KSovNSrASOYXbsFXn5oemb3l1XqXYxYef31o="}]},"_npmUser":{"name":"aaquib","email":"Aaquibabrar2@gmail.com"},"directories":{},"maintainers":[{"name":"aaquib","email":"Aaquibabrar2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/index_2.0.24_1633088921424_0.7225317835705138"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-01T11:48:41.369Z","2.0.24":"2021-10-01T11:48:41.665Z","modified":"2022-04-04T10:55:22.494Z"},"maintainers":[{"name":"aaquib","email":"Aaquibabrar2@gmail.com"}],"description":"A Google Drive Index to List, Watch and Download Files using a Beautiful UI.","homepage":"https://gitlab.com/Aaquibbot/index/-/blob/master/README.md","keywords":["google-drive-index, aaquib, gdrive-index"],"repository":{"type":"git","url":"git+https://github.com/Aaquibbot/index.git"},"author":{"name":"aaquibbot"},"bugs":{"url":"https://gitlab.com/Aaquibbotl/index/issues"},"license":"MIT","readme":"# Google Personal/Shared Drive Index\n\n[![Year](https://data.jsdelivr.com/v1/package/npm/@googledrive/index/badge/rank)](https://www.jsdelivr.com/package/npm/@googledrive/index)\n[![Year](https://data.jsdelivr.com/v1/package/npm/@googledrive/index/badge/year)](https://www.jsdelivr.com/package/npm/@googledrive/index)\n[![Month](https://data.jsdelivr.com/v1/package/npm/@googledrive/index/badge/month)](https://www.jsdelivr.com/package/npm/@googledrive/index)\n[![Week](https://data.jsdelivr.com/v1/package/npm/@googledrive/index/badge/week)](https://www.jsdelivr.com/package/npm/@googledrive/index)\n[![Day](https://data.jsdelivr.com/v1/package/npm/@googledrive/index/badge/day)](https://www.jsdelivr.com/package/npm/@googledrive/index)\n[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://gitlab.com/ParveenBhadooOfficial/Google-Drive-Index&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://www.npmjs.com/package/@googledrive/index)\n\n\n## Full White label and Customizable Index | One of a kind\n\n* Supports Both My and Team/Shared Drives with Dark Mode.\n* Click https://bdi-generator.hashhackers.com to make yours or watch https://youtu.be/Ihk4Gm3DPvg.\n\n## Read Wiki of Index before asking How to Do What...\n\n* [Getting-Started-with-Google-Drive-Index](https://gitlab.com/ParveenBhadooOfficial/Google-Drive-Index/-/wikis/Getting-Started-with-Google-Drive-Index)\n\n[![Screenshot](https://gitlab.com/ParveenBhadooOfficial/Google-Drive-Index/-/raw/master/images/themes/vapor.png)](https://youtu.be/Ihk4Gm3DPvg)\n\n[![Screenshot](https://gitlab.com/ParveenBhadooOfficial/Google-Drive-Index/-/raw/master/images/themes/darkly.png)](https://youtu.be/Ihk4Gm3DPvg)\n\n`Note: The Changes in your workers config can effect later due to cache. Use incognito mode every time to open the worker URL to overcome that issue.`\n\n## How to\n\n* Stable Release `2.0.24`\n* Beta Version (Latest) - [bdi-generator](https://bdi-generator.hashhackers.com) (For Dark Theme use darkly)\n* If you want to deploy main drive leave the option ROOT as it is.\n* If you want to deploy your Team Drive/Shared Drive/Folder then copy the ID and replace it with ROOT.\n* Eg. if you open this shared drive `https://drive.google.com/drive/u/0/folders/0AOM2i7MQiuWIUk9PVA` - `0AOM2i7MQiuWIUk9PVA` is its ID.\n* Authenticate and copy the code from Google and paste it into Authorization Code Box.\n* Click on Get Code to Generate Code and Copy it for later use.\n* Now Create Cloud flare account and verify email or login with existing account.\n* Find Workers and Open it.\n* Create your sub-domain or continue if already done.\n* Select the Free Plan.\n* Click on Create a Worker.\n* You can rename the workers at top of the page.\n* Now paste the code you copied before.\n* Click on Save and Deploy.\n* Done. (May take time for some users due to new account or cache issues)\n* [Watch Video](https://youtu.be/Ihk4Gm3DPvg)\n\n## Basic Config\n\n````\n    \"roots\":[\n      {\n          \"id\": \"root\",\n          \"name\": \"Drive One\",\n          \"protect_file_link\": false,\n         // \"auth\": {\"username\":\"password\"} /* Remove double slash before \"auth\" to activate id password protection */\n      },\n    ]};\n````\n\n## Multiple ID Config\n\n* Add this code for each drive. see cloud flare workers code for more info. (requires common sense)\n\n````\n    \"roots\":[\n      {\n          \"id\": \"root\",\n          \"name\": \"Drive One\",\n          \"protect_file_link\": false,\n         // \"auth\": {\"username\":\"password\"} /* Remove double slash before \"auth\" to activate id password protection */\n      },\n      {\n          \"id\": \"root\",\n          \"name\": \"Drive Two\",\n          \"protect_file_link\": false,\n         // \"auth\": {\"username\":\"password\", \"username1\":\"password1\"} /* Remove double slash before \"auth\" to activate id password protection */\n      },\n    ]};\n````\n\n## Service Account\n\n* Multiple Service Accounts are supported.\n* set `\"service_account\": false` to `\"service_account\": true`\n* Replace {} with data from service account `file.json`\n\n## Multiple Users Password\n\n* For single user\n\n````\n            // \"auth\": {\"username\":\"password\"} /** remove double slash at starting of this line to use password. */\n````\n\n* For multiple users (unlimited users)\n\n````\n      {\n          \"id\": \"\",\n          \"name\": \"Drive Two\",\n          \"protect_file_link\": false,\n          // \"auth\": { \"user1\":\"pass1\", \"user2\":\"pass2\", }  /** remove double slash at starting of this line to use password. */\n      },\n````\n\n* where `\"user1\":\"pass1\"` and `\"user2\":\"pass2\"` are combinations.\n* if users adds `\"auth\":{\"\":\"\"}` empty values then the site will ask for authentication but user can enter without entering any data by clicking submit.\n\n## Use of .password File\n\n* This is directory encryption added by the original author.\n* Add a .password file your required password in your folder which you want to protect, each folder should have its own .password file.\n* The password is stored inside the Google Drive Folder, not the index and the .password file is hidden an cannot be accessed using Index.\n* Example use https://bit.ly/3tBxXJN and password is `thispassword`\n\n## Brand Customization\n\n* In Latest Release, you can rebrand the Index as per your needs.\n* Each line has its own custom feature. Edit as per your needs.\n* You can remove credit option but we request you not to.\n* See Below code to understand Customization.\n\n````\nconst uiConfig = {\n  \"theme\": \"slate\", // switch between themes, default set to vapor, select from https://www.npmjs.com/package/@googledrive/index\n  \"version\": \"2.0.24\", // don't touch this one. get latest code using generator at https://bdi-generator.hashhackers.com\n  // If you're using Image then set to true, If you want text then set it to false\n  \"logo_image\": true, // true if you're using image link in next option.\n  \"logo_height\": \"\", // only if logo_image is true\n  \"logo_width\": \"100px\", // only if logo_image is true\n  \"favicon\": \"https://cdn.jsdelivr.net/npm/@googledrive/index@2.0.24/images/favicon.ico\",\n  // if logo is true then link otherwise just text for name\n  \"logo_link_name\": \"https://cdn.jsdelivr.net/npm/@googledrive/index@2.0.24/images/bhadoo-cloud-logo-white.svg\",\n  \"fixed_header\": true, // If you want the footer to be flexible or fixed.\n  \"header_padding\": \"60\", // Value 60 for fixed header, Value 20 for flexible header. Required to be changed accordingly in some themes.\n  \"nav_link_1\": \"Home\", // change navigation link name\n  \"nav_link_3\": \"Current Path\", // change navigation link name\n  \"nav_link_4\": \"Contact\", // change navigation link name\n  \"fixed_footer\": false, // If you want the footer to be flexible or fixed.\n  \"hide_footer\": true, // hides the footer from site entirely.\n  \"header_style_class\": \"navbar-dark bg-primary\", // navbar-dark bg-primary || navbar-dark bg-dark || navbar-light bg-light\n  \"footer_style_class\": \"bg-primary\", // bg-primary || bg-dark || bg-light\n  \"css_a_tag_color\": \"white\", // Color Name or Hex Code eg. #ffffff\n  \"css_p_tag_color\": \"white\", // Color Name or Hex Code eg. #ffffff\n  \"folder_text_color\": \"white\", // Color Name or Hex Code eg. #ffffff\n  \"loading_spinner_class\": \"text-light\", // https://getbootstrap.com/docs/5.0/components/spinners/#colors\n  \"search_button_class\": \"btn btn-danger\", // https://getbootstrap.com/docs/5.0/components/buttons/#examples\n  \"path_nav_alert_class\": \"alert alert-primary\", // https://getbootstrap.com/docs/4.0/components/alerts/#examples\n  \"file_view_alert_class\": \"alert alert-danger\", // https://getbootstrap.com/docs/4.0/components/alerts/#examples\n  \"file_count_alert_class\": \"alert alert-secondary\", // https://getbootstrap.com/docs/4.0/components/alerts/#examples\n  \"contact_link\": \"https://telegram.dog/Telegram\", // Link to Contact Button on Menu\n  \"copyright_year\": \"2050\", // year of copyright, can be anything like 2015 - 2020 or just 2020\n  \"company_name\": \"Bhadoo Cloud\", // Name next to copyright\n  \"company_link\": \"https://telegram.dog/Telegram\", // link of copyright name\n  \"credit\": true, // Set this to true to give us credit\n  \"display_size\": true, // Set this to false to hide display file size\n  \"display_time\": false, // Set this to false to hide display modified time for folder and files\n  \"display_download\": true, // Set this to false to hide download icon for folder and files on main index\n  \"disable_player\": false, // Set this to true to hide audio and video players\n  \"custom_srt_lang\": \"\", // Subtitle Language Code for Custom .vtt language.\n  \"disable_video_download\": false, // Remove Download, Copy Button on Videos\n  \"second_domain_for_dl\": false, // If you want to display other URL for Downloading to protect your main domain.\n  \"downloaddomain\": \"https://testing.fetchgoogleapi.workers.dev\", // If \"second_domain_for_dl\": true then enter downloaddomain otherwise keep empty. eg. https://workers.workersname.workers.dev No Trailing '/'\n  \"poster\": \"https://cdn.jsdelivr.net/npm/@googledrive/index@2.0.24/images/poster.jpg\", // Video poster URL or see Readme to how to load from Drive\n  \"audioposter\": \"https://cdn.jsdelivr.net/npm/@googledrive/index@2.0.24/images/music.jpg\", // Video poster URL or see Readme to how to load from Drive\n  \"jsdelivr_cdn_src\": \"https://cdn.jsdelivr.net/npm/@googledrive/index\", // If Project is Forked, then enter your GitHub repo\n  \"render_head_md\": true, // Render Head.md\n  \"render_readme_md\": true, // Render Readme.md\n  \"display_drive_link\": false, // This will add a Link Button to Google Drive of that particular file.\n  \"plyr_io_version\": \"3.6.4\", // Change plyr.io version in future when needed.\n  \"plyr_io_video_resolution\": \"16:9\", // For reference, visit: https://github.com/sampotts/plyr#options\n  \"unauthorized_owner_link\": \"https://telegram.dog/Telegram\", // Unauthorized Error Page Link to Owner\n  \"unauthorized_owner_email\": \"abuse@telegram.org\", // Unauthorized Error Page Owner Email\n  \"arc_code\": \"jfoY2h19\", // arc.io Integration Code, get yours from https://portal.arc.io\n  \"search_all_drives\": false // turn this on to switch this to gdrive search application\n};\n````\n## Second Domain Systems\n\n* set second_domain_for_dl to `true` first.\n* set downloaddomain to ur new index you're going to make below.\n* then make separate index on different cloudflare account with worker-beta-second-domain.js code.\n* change only refresh_token or SA and Drive IDs, don't touch anything else.\n* It's done.\n\n## arc.io Integration\n\n* arc.io is embedded in code to support gdi.js.org\n* if you have approved arc.io account, use your code.\n* incase you don't have arc account and want to support us, please keep our arc.io code in your index.\n* if anyone doesn't want to support us and want to remove arc, remove L140 line from the workers code.\n\n## Themes\n\n* There are 25 Themes from [bootswatch](https://github.com/thomaspark/bootswatch) official [Bootstrap](https://getbootstrap.com) Themes.\n* You can check Theme from [bootswatch.com](https://bootswatch.com) before selecting.\n* To Change theme, first generate the code, paste in Cloud flare Workers and then select one theme code from below and paste it in line 61 of worker script.\n\n| Themes    |         |         |         |        |          |\n|-----------|---------|---------|---------|--------|----------|\n| cerulean  | cosmo   | cyborg  | darkly  | flatly | journal  |\n| litera    | lumen   | lux     | materia | minty  | pulse    |\n| sandstone | simplex | sketchy | slate   | solar  | spacelab |\n| superhero | united  | yeti    | vapor   | morph  | quartz   |    \n| zephyr    |\n\n## Audio and Video\n\n* Poster for Video is added as default.\n* Fetch Video Poster from Google Drive, uses default if none available.\n\n## Search Limitations\n\n* Search only works if you use Shared Drive ID or root.\n* Search won't work or the bar won't appear if you're using Folder ID inside from root or Shared Drive.\n\n## Sorting by Name or Modified Time\n\n* Find `params.orderBy` in workers code L623 and L710.\n* use `params.orderBy = 'folder,name,modifiedTime desc';` to sort by File and Folder Name.\n* use `params.orderBy = 'folder,modifiedTime desc,name';` to sort by Modified Time.\n* A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.\n\n## Making your own repo, editing and making changes\n\n* Fork this Repo or Import.\n* Make your changes in `app.js` and `workers-beta.js` files.\n* Make a new release in GitHub.\n* Change jsDelivr CDN URL and version code in `workers-beta.js`.\n* Deploy in Cloud flare Workers.\n\n## Get Google_Client_ID and Secret and Generate Token\n\n* Open [Google Dev Credentials Site](https://console.developers.google.com/apis/credentials).\n* Create a Project, name as you like.\n* Enable [Drive API](https://console.developers.google.com/apis/library/drive.googleapis.com)\n* In [Credentials Page](https://console.developers.google.com/apis/credentials) Click `Create Credentials` and then Click `OAuth Client ID`.\n* Click Configure Consent Screen.\n* Select External.\n* Fill your APP Details\n* Select Scope as `https://www.googleapis.com/auth/drive` (wait few hours if Google Drive is not showing up if you've just enabled the scope) or\n* You can also enter manual scope `https://www.googleapis.com/auth/drive` and click on add to table and then save or update.\n* Proceed with Save and Continue.\n* Add your email id you want to use as test user, up to 100 emails maximum. (Because you are not verified)\n* In [Credentials Page](https://console.developers.google.com/apis/credentials) Click `Create Credentials` and then Click `OAuth Client ID`.\n* Select Desktop App.\n* Now you have your own CLIENT ID and CLIENT SECRET.\n* Copy your details and save for future use.\n* Copy worker-generator.js code.\n* Replace Line 20 and 21 with your own CLIENT ID and CLIENT SECRET.\n* Paste this code in Cloud flare Workers and follow the site.\n\n## Upcoming Changes\n\n* Adding More Features from other Indexes.\n\n## Other Indexes\n\n* List of Few [Indexes](https://github.com/alx-xlx/goindex)\n\n## Credits\n\n* Source: [maple3142](https://github.com/maple3142/GDIndex)\n* Source: [yanzai](https://github.com/yanzai/goindex)\n* New Design: [Bootstrap](https://getbootstrap.com)\n* Cloud flare: Workers\n\n## Disclaimer\n\n* This project is not associated with Google, this project uses Google Drive API to Index Files and Folders.\n* These Index's are written by someone else, possibly by donva and [maple3142](https://github.com/maple3142/GDIndex).\n* Beta Version is redesigned using Bootstrap from Alpha Version by [Parveen Bhadoo](https://twitter.com/ParveenBhadoo).\n* This Repo was imported from [yanzai](https://github.com/yanzai/goindex) and then modified for personal use.\n\n## Support this Project\n\n[![Support](https://cdn.buymeacoffee.com/buttons/v2/default-white.png)](https://www.buymeacoffee.com/bhadoo)\n\n### Donate by Crpto\n\n* ETH `0xaf25cdc7967213172a745453a64e8a0b59686729`\n* BTC `3BgSznxLB5u4WiuVERb1dKWeTqSSwK9NPW`\n* BAT `0xaf25cdc7967213172a745453a64e8a0b59686729`\n","readmeFilename":"README.md"}