# gatsby-source-itchio

> A GatsbyJS source plugin for itch.io

Latest version **0.1.1** (published 2019-03-13) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-03-13 |
| First published | 2019-03-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Erick Zhao |
| Maintainers | erickzhao |
| Keywords | gatsby, gatsby-source, itch.io, itch |

## Links

- npm: https://www.npmjs.com/package/gatsby-source-itchio
- Repository: https://github.com/erickzhao/gatsby-source-itchio
- Homepage: https://github.com/erickzhao/gatsby-source-itchio#readme
- Issues: https://github.com/erickzhao/gatsby-source-itchio/issues
- npm.io page: https://npm.io/package/gatsby-source-itchio

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.18.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2019-03-13
- 0.1.0 — 2019-03-13

## README

# gatsby-source-itchio

A source plugin for [GatsbyJS](https://www.gatsbyjs.org/) to query game information from the [itch.io](https://itch.io/) serverside API.

## Install

```
# npm
npm install --save gatsby-source-itchio

#yarn
yarn add gatsby-source-itchio
```

Then add the following to your `gatsby-config.js`:

```javascript
module.exports = {
  /* ... */
  plugins: [
    /* ... */
    {
      resolve: "gatsby-source-itchio",
      options: {
        key: // YOUR_API_KEY
      }
    }
  ]
};
```

To use this plugin, you'll need a web API key for your itch.io account (get one [here](https://itch.io/user/settings/api-keys)).

## How to query

See [API documentation](https://itch.io/docs/api/serverside#reference/profilegames-httpsitchioapi1keymy-games) for the endpoint here.

```javascript
const gameQuery = `
  query GameQuery {
    allItchioGame(limit: 10) {
      edges {
        node {
          user {
            display_name,
            id,
            url,
            cover_url,
            username
          },
          id,
          url,
          created_at,
          title,
          classification,
          type,
          short_text,
          published,
          published_at,
          views_count,
          can_be_bought,
          min_price,
          purchases_count,
          p_osx,
          p_android,
          p_linux,
          p_windows,
          in_press_system,
        }
      }
    }
  }
`;
```

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