Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
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 {
© 2023 Gatsby, Inc.