gatsby-source-steam

0.2.1 • Public • Published

gatsby-source-steam

This is a source plugin for GatsbyJS to pull information from the Steam API.

Installation

Install as a dependancy from npm.

npm install gatsby-source-steam --save

Configuration

Adjust your gatsby-config.js as follows:

module.exports = {
  plugins: [
    {
    resolve: "gatsby-source-steam",
      options: {
        api_key: "<<YOUR STEAM API KEY>>", //key
        user_id: "<<A USER STEAM ID TO FOLLOW>>" // steamid
         }
    },
    ...
  ]
...
}

Provided Queries

{
  allSteamGame {
    edges {
      node {
        id
        name
        playtime_2weeks
        playtime_forever
        img_icon_url
        img_logo_url
      }
    }
  }
}

Package Sidebar

Install

npm i gatsby-source-steam

Weekly Downloads

8

Version

0.2.1

License

MIT

Unpacked Size

4.93 kB

Total Files

7

Last publish

Collaborators

  • jamesdanylik