Toolpal

@toolpal/github-repo

public

v2.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.

Example

Verified from build

Real input and sandbox-captured output from this version.

Inspect a public repository

Input
{
  "repo": "facebook/react"
}
OutputSandbox run
{
  "url": "https://github.com/react/react",
  "forks": 51974,
  "stars": 252837,
  "topics": [
    "declarative",
    "frontend",
    "javascript",
    "library",
    "react",
    "ui"
  ],
  "license": "MIT",
  "archived": false,
  "fullName": "react/react",
  "homepage": "https://react.dev",
  "watchers": 6626,
  "createdAt": "2013-05-24T16:15:54Z",
  "languages": [
    {
      "name": "JavaScript",
      "percent": 48.9
    },
    {
      "name": "Rust",
      "percent": 26.3
    },
    {
      "name": "TypeScript",
      "percent": 22.7
    },
    {
      "name": "HTML",
      "percent": 1
    },
    {
      "name": "CSS",
      "percent": 0.8
    },
    {
      "name": "CoffeeScript",
      "percent": 0.2
    },
    {
      "name": "Shell",
      "percent": 0.1
    }
  ],
  "lastPushAt": "2026-11-20T23:24:01Z",
  "description": "The library for web and native user interfaces.",
  "defaultBranch": "main",
  "latestRelease": {
    "tag": "v19.3.1",
    "url": "https://github.com/react/react/releases/tag/v19.3.1",
    "name": "19.3.1 (October 14th, 2026)",
    "publishedAt": "2026-10-14T17:06:15Z"
  },
  "openIssuesAndPullRequests": 1575
}

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.com only.
  • 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

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
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"
    }
  }
}