@toolpal/github-repo
publicv2.0published 2 downloads this weekMIT
Looks up live facts about a public GitHub repository: stars, forks, watchers, open issues, language breakdown, license, topics, latest release, and when it was created and last pushed to. Works without an API key; set GITHUB_TOKEN for higher rate limits.
Looks up live metadata for any public GitHub repository: stars, forks, watchers, open issues, language breakdown by bytes, SPDX license, topics, archived state, creation/push timestamps, and latest release.
Setup
Works without any credentials (60 unauthenticated requests/hour per IP). Optionally set GITHUB_TOKEN to raise GitHub's rate limit to 5,000 requests/hour.
Example
{
"repo": "facebook/react"
}Also accepts full GitHub URLs such as https://github.com/facebook/react.
Notes
- Calls
api.github.comonly. - Returns up to the top 8 languages sorted by share of bytes.
Input
Validated before the workflow runs.
- reporequiredstring
Repository as "owner/name" (e.g. facebook/react) or a github.com URL
max length 300
| Field | Type | Description |
|---|---|---|
| reporequired | string | Repository as "owner/name" (e.g. facebook/react) or a github.com URL max length 300 |
JSON Schema
{
"type": "object",
"required": [
"repo"
],
"properties": {
"repo": {
"type": "string",
"maxLength": 300,
"description": "Repository as \"owner/name\" (e.g. facebook/react) or a github.com URL"
}
}
}Output
Validated before your agent receives it.
- urlrequiredstring
- forksrequiredinteger
- starsrequiredinteger
- topicsrequiredstring[]
- licensestring
- archivedrequiredboolean
- fullNamerequiredstring
- homepagestring
- watchersrequiredinteger
- createdAtrequiredstring
- languagesrequiredobject[]
Share of code by bytes, largest first
- lastPushAtrequiredstring
- descriptionstring
- defaultBranchrequiredstring
- latestReleaseobject
- latestRelease.tagrequiredstring
- latestRelease.urlrequiredstring
- latestRelease.namestring
- latestRelease.publishedAtrequiredstring
- openIssuesAndPullRequestsrequiredinteger
| Field | Type | Description |
|---|---|---|
| urlrequired | string | - |
| forksrequired | integer | - |
| starsrequired | integer | - |
| topicsrequired | string[] | - |
| license | string | - |
| archivedrequired | boolean | - |
| fullNamerequired | string | - |
| homepage | string | - |
| watchersrequired | integer | - |
| createdAtrequired | string | - |
| languagesrequired | object[] | Share of code by bytes, largest first |
| lastPushAtrequired | string | - |
| description | string | - |
| defaultBranchrequired | string | - |
| latestRelease | object | - |
| latestRelease.tagrequired | string | - |
| latestRelease.urlrequired | string | - |
| latestRelease.name | string | - |
| latestRelease.publishedAtrequired | string | - |
| openIssuesAndPullRequestsrequired | integer | - |
JSON Schema
{
"type": "object",
"required": [
"fullName",
"url",
"stars",
"forks",
"watchers",
"openIssuesAndPullRequests",
"languages",
"topics",
"defaultBranch",
"archived",
"createdAt",
"lastPushAt"
],
"properties": {
"url": {
"type": "string"
},
"forks": {
"type": "integer"
},
"stars": {
"type": "integer"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"license": {
"type": "string"
},
"archived": {
"type": "boolean"
},
"fullName": {
"type": "string"
},
"homepage": {
"type": "string"
},
"watchers": {
"type": "integer"
},
"createdAt": {
"type": "string"
},
"languages": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"percent"
],
"properties": {
"name": {
"type": "string"
},
"percent": {
"type": "number"
}
}
},
"description": "Share of code by bytes, largest first"
},
"lastPushAt": {
"type": "string"
},
"description": {
"type": "string"
},
"defaultBranch": {
"type": "string"
},
"latestRelease": {
"type": "object",
"required": [
"tag",
"publishedAt",
"url"
],
"properties": {
"tag": {
"type": "string"
},
"url": {
"type": "string"
},
"name": {
"type": "string"
},
"publishedAt": {
"type": "string"
}
}
},
"openIssuesAndPullRequests": {
"type": "integer"
}
}
}