
Product
Socket Brings Supply Chain Security to skills.sh
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.
fetch-github-repositories
Advanced tools
Fetch github repositories for a given user (or organization)
Fetch github repositories for a given user (or an organization).
users and orgs endpoints with the kind option.This package is available in the Node Package Repository and can be easily installed with npm or yarn.
$ npm i fetch-github-repositories
# or
$ yarn add fetch-github-repositories
const { fetch, fetchLazy } = require("fetch-github-repositories");
async function main() {
const repos = await fetch("fraxken", {
fetchUserOrgs: true // if you want an equivalent of "repos"
});
// or use lazy API
for await (const repo of fetchLazy("fraxken")) {
console.log(repo.full_name);
}
}
main().catch(console.error);
Return an Array of repositories (the interface can be found in index.d.ts).
Options:
| name | default value | description |
|---|---|---|
| agent | "fetch-github-repo" | User-Agent header (required by github) |
| token | undefined | github token for private repositories |
| kind | "users" | can be either users or orgs |
| fetchUserOrgs | fetch users organizations repositories when the kind is equal to users |
Same arguments as fetch.
MIT
FAQs
Fetch github repositories for a given user (or organization)
We found that fetch-github-repositories 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.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.