What is Unpkg ?
Unpkg is a free third-party service to connect your google drive. It allows you to quickly and easily use google drive files on blogs, websites, apps or any other platforms, just a URL like:
https://unpkg.net/@:email/
Examples
- unpkg.net/@openflake/
- unpkg.net/@openflake/big-picture.jpg
- unpkg.net/@openflake/big-picture.jpg?s220
- unpkg.net/@openflake/lib/md5@2.18.0.js
- unpkg.net/@openflake/七步还原六面魔方.pdf
Options
- Adding
{ "accept": "application/json" }
in request header will return metadata in json format. - Adding
{ "authorization": "YOUR_TOKEN" }
in request header to access your private folders. - Adding parameters querystring-like to an image URL to get the image size that
you want. e.g.
url?s220
. For details, see https://developers.google.com/people/image-sizing, note that you need to change the=
to?
.
Security
- We have not implemented Google oauth consent screen verification, so there will be an insecure warning when authorizing, but it does not affect the continuation.
- The authorization of Google Drive we requested from you is read-only scopes, so no files can be modified or deleted.
- You can revoke the authorization of Unpkg in your Google account at any time.
Privacy
We are committed to using the Google Drive services more convenient and have no intention of collecting and disclosing your personal information. However, in the process of providing services, some information in your Google Account will inevitably be collected, it is limited to google email, and we will not disclose your email address to any third party.
As for the files on Google Drive, your authorization means anyone can access through unpkg (your specified folder only and read-only), its privacy depends on your choice. We will not and cannot collect such huge amounts of data. In fact, we recommend that you use Unpkg to connect to public static resources on Google Drive, such as js, css, fonts, icons, photos, figures etc.
About
For now, Unpkg is a small hobby project built and maintained by individuals. It's not affiliated with or supported by Unpkg.com or Google Inc. In any way, please do not contact them for help with Unpkg drive connector. Instead, reach out to @openflake with any questions or concerns.