Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
gatsby-source-github-contributors
Advanced tools
Gatsby source that fetches all the contributors on a GitHub repository
A Gatsby source plugin for pulling all the contributors for a github repository.
via npm
npm install --save gatsby-source-github-contributors
or via yarn
yarn add gatsby-source-github-contributors
Getting data from two different tables:
// In gatsby-config.js
plugins: [
{
resolve: `gatsby-source-github-contributors`,
options: {
repo: "strawberry-graphql/strawberry"
}
}
];
Get all the contributors via GraphQL
{
allGitHubContributor {
nodes {
login
name
url
}
}
}
This source doesn't require API keys but, since GitHub throttles requests, it is recommended to use a token or app credentials.
// In gatsby-config.js
plugins: [
{
resolve: `gatsby-source-github-contributors`,
options: {
repo: "strawberry-graphql/strawberry",
token: process.env.GITHUB_TOKEN
}
}
];
For more authentication options, refer to github-base docs.
FAQs
Gatsby source that fetches all the contributors on a GitHub repository
The npm package gatsby-source-github-contributors receives a total of 5 weekly downloads. As such, gatsby-source-github-contributors popularity was classified as not popular.
We found that gatsby-source-github-contributors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.