{"id":16007907,"url":"https://github.com/erickzhao/gatsby-source-itchio","last_synced_at":"2025-03-17T20:30:52.112Z","repository":{"id":44152221,"uuid":"173757625","full_name":"erickzhao/gatsby-source-itchio","owner":"erickzhao","description":"🕹 itch.io server-side API as a data source for GatsbyJS","archived":false,"fork":false,"pushed_at":"2023-01-03T18:40:19.000Z","size":226,"stargazers_count":3,"open_issues_count":10,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T03:41:44.657Z","etag":null,"topics":["gamedev","gatsby","gatsby-source-plugin","itchio","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erickzhao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-04T14:13:50.000Z","updated_at":"2023-03-04T05:01:57.000Z","dependencies_parsed_at":"2023-02-01T08:46:46.206Z","dependency_job_id":null,"html_url":"https://github.com/erickzhao/gatsby-source-itchio","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erickzhao%2Fgatsby-source-itchio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erickzhao%2Fgatsby-source-itchio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erickzhao%2Fgatsby-source-itchio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erickzhao%2Fgatsby-source-itchio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erickzhao","download_url":"https://codeload.github.com/erickzhao/gatsby-source-itchio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878486,"owners_count":20362433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gamedev","gatsby","gatsby-source-plugin","itchio","javascript"],"created_at":"2024-10-08T12:22:15.158Z","updated_at":"2025-03-17T20:30:51.796Z","avatar_url":"https://github.com/erickzhao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gatsby-source-itchio\n\nA source plugin for [GatsbyJS](https://www.gatsbyjs.org/) to query game information from the [itch.io](https://itch.io/) serverside API.\n\n## Install\n\n```\n# npm\nnpm install --save gatsby-source-itchio\n\n#yarn\nyarn add gatsby-source-itchio\n```\n\nThen add the following to your `gatsby-config.js`:\n\n```javascript\nmodule.exports = {\n  /* ... */\n  plugins: [\n    /* ... */\n    {\n      resolve: \"gatsby-source-itchio\",\n      options: {\n        key: // YOUR_API_KEY\n      }\n    }\n  ]\n};\n```\n\nTo 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)).\n\n## How to query\n\nSee [API documentation](https://itch.io/docs/api/serverside#reference/profilegames-httpsitchioapi1keymy-games) for the endpoint here.\n\n```javascript\nconst gameQuery = `\n  query GameQuery {\n    allItchioGame(limit: 10) {\n      edges {\n        node {\n          user {\n            display_name,\n            id,\n            url,\n            cover_url,\n            username\n          },\n          id,\n          url,\n          created_at,\n          title,\n          classification,\n          type,\n          short_text,\n          published,\n          published_at,\n          views_count,\n          can_be_bought,\n          min_price,\n          purchases_count,\n          p_osx,\n          p_android,\n          p_linux,\n          p_windows,\n          in_press_system,\n        }\n      }\n    }\n  }\n`;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferickzhao%2Fgatsby-source-itchio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferickzhao%2Fgatsby-source-itchio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferickzhao%2Fgatsby-source-itchio/lists"}