# sanity-plugin-google-drive

> Sanity plugin for Google Drive integration

Latest version **1.1.0** (published 2023-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install sanity-plugin-google-drive
pnpm add sanity-plugin-google-drive
yarn add sanity-plugin-google-drive
bun add sanity-plugin-google-drive
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2023-02-12 |
| First published | 2023-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14 |
| Dependencies | 5 |
| Unpacked size | 46.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Noah Gentile |
| Maintainers | nkgentile |
| Keywords | sanity, sanity-plugin |

## Links

- npm: https://www.npmjs.com/package/sanity-plugin-google-drive
- Repository: https://github.com/nkgentile/sanity-plugin-google-drive
- Homepage: https://github.com/nkgentile/sanity-plugin-google-drive#readme
- Issues: https://github.com/nkgentile/sanity-plugin-google-drive/issues
- npm.io page: https://npm.io/package/sanity-plugin-google-drive

## Dependencies (5)

- [@sanity/ui](https://npm.io/package/@sanity/ui.md) ^1.0.11
- [react-icons](https://npm.io/package/react-icons.md) ^4.7.1
- [@sanity/icons](https://npm.io/package/@sanity/icons.md) ^2.2.1
- [react-google-drive-picker](https://npm.io/package/react-google-drive-picker.md) ^1.2.0
- [@sanity/incompatible-plugin](https://npm.io/package/@sanity/incompatible-plugin.md) ^1.0.4

## Recent versions

- 1.1.0 (latest) — 2023-02-12
- 1.0.1 — 2023-01-04

## README

# sanity-plugin-google-drive

> This is a **Sanity Studio v3** plugin.

## Installation

```
npm install --save sanity-plugin-google-drive
```

## Usage

There are two plugins in this package:

- `googleDrive` - use this if you intend to use references to assets in Google Drive
- `googleDriveAssetSource` - use this if you intend to pick assets from Google Drive and import into Sanity

Add it as a plugin in sanity.config.ts (or .js):

```
import {defineConfig} from 'sanity'
import {googleDrive, googleDriveAssetSource} from 'sanity-plugin-google-drive'

export const defineConfig({
  //...
  plugins: [
    googleDrive({
      apiKey: API_KEY,
      clientId: CLIENT_ID,
    }),
    googleDriveAssetSource({
      apiKey: API_KEY,
      clientId: CLIENT_ID,
    })
  ]
})
```

## License

[MIT](LICENSE) © Noah Gentile

## Develop & test

This plugin uses [@sanity/plugin-kit](https://github.com/sanity-io/plugin-kit)
with default configuration for build & watch scripts.

See [Testing a plugin in Sanity Studio](https://github.com/sanity-io/plugin-kit#testing-a-plugin-in-sanity-studio)
on how to run this plugin with hotreload in the studio.

### Release new version

Run ["CI & Release" workflow](https://github.com/nkgentile/sanity-plugin-google-drive/actions/workflows/main.yml).
Make sure to select the main branch and check "Release new version".

Semantic release will only release on configured branches, so it is safe to run release on any branch.

---
_Source: https://npm.io/package/sanity-plugin-google-drive · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
