Now 100x Faster

Read the latest from Gatsby CTO Kyle Mathews Re-introducing Gatsby, a Reactive Site Generator

ContactSign Up for Free
Community Plugin
View plugin on GitHub


Source plugin for pulling pinned repositories into Gatsby from the GitHub GraphQL API.


npm install --save gatsby-source-github-pinned

How to use

Create API Token

You first need to go here and generate a read-only api token for your repositories:

alt text

Make sure to ONLY check the puclic_repo option.

Setup Gatsby

// In your gatsby-config.js
plugins: [
    resolve: `gatsby-source-github-pinned`,
    options: {

How to query

Get the name and url of all pinned repos:

query PinnedRepos {
  allPinnedRepo {
    edges {
      node {
© 2022 Gatsby, Inc.