Git Product home page Git Product logo

gatsby-source-itchio's Introduction

gatsby-source-itchio

A source plugin for GatsbyJS to query game information from the 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:

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).

How to query

See API documentation for the endpoint here.

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,
        }
      }
    }
  }
`;

gatsby-source-itchio's People

Contributors

ashley avatar dependabot[bot] avatar erickzhao avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

muscarian-games

gatsby-source-itchio's Issues

Add Gatsby peer dependency version

Running into this npm warning when running a command:

npm WARN [email protected] requires a peer of gatsby@ but none is installed. You must install peer dependencies yourself.

I think this could be solved by adding a version to the Gatsby peer dependency of the plugin. Glanced at the package.json and the version is blank. I'm using gatsby@^2.20.3 and it's working great.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.