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.

Network

Any host, including internal addresses. The code calls api.github.com.

  • uses fetchsrc/index.ts · dist/tool.mjs:4441
    const res = await fetch(`https://api.github.com${path}`, {

Environment variables

GITHUB_TOKEN

  • reads env GITHUB_TOKENsrc/index.ts · dist/tool.mjs:4440
    if (process.env.GITHUB_TOKEN) headers.authorization = `Bearer ${process.env.GITHUB_TOKEN}`;
  • reads env GITHUB_TOKENsrc/index.ts · dist/tool.mjs:4440
    if (process.env.GITHUB_TOKEN) headers.authorization = `Bearer ${process.env.GITHUB_TOKEN}`;

Everything else is denied: other environment variables, files outside its package, child processes, workers and native addons. Node's permission model enforces this, and it isn't a hard sandbox. Security model