# gatsby-source-twitch

> Gatsby source to fetch data from the Twitch API

Latest version **1.0.2** (published 2019-07-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install gatsby-source-twitch
pnpm add gatsby-source-twitch
yarn add gatsby-source-twitch
bun add gatsby-source-twitch
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-07-14 |
| First published | 2017-11-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Jedidiah Broadbent |
| Maintainers | jedidiah |
| Keywords | gatsby, gatsby-plugin, gatsbyjs, twitch |

## Links

- npm: https://www.npmjs.com/package/gatsby-source-twitch
- Repository: https://github.com/jedidiah/gatsby-source-twitch
- npm.io page: https://npm.io/package/gatsby-source-twitch

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^0.17.1
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.5.4
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.4.4

## Recent versions

- 1.0.2 (latest) — 2019-07-14
- 1.0.1 — 2019-05-27
- 1.0.0 — 2017-11-23

## README

# gatsby-source-twitch

A [gatsby](https://www.gatsbyjs.org/) source plugin for fetching all the videos and channel info for a Twitch user ID.

Learn more about Gatsby plugins and how to use them here: https://www.gatsbyjs.org/docs/plugins/

## Install

`npm install --save gatsby-source-twitch`


## gatsby-config.js

```javascript
plugins: [
  {
    resolve: `gatsby-source-twitch`,
    options: {
      userID: '<<Twitch UserID eg. 6058227 >>',
      clientID: '<< Add your Twitch client_id here>>'
    },
  },
  ...
]
```

## Examples of how to query:

Get all the videos:

```graphql
{
  allTwitchvideo {
    edges {
      node {
        title
        url
        type
      }
    }
  }
}
```

Get the user/channel info:

```graphql
{
  twitchuser {
    display_name
    description
    profile_image_url
  }
}
```

---
_Source: https://npm.io/package/gatsby-source-twitch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
