Reposizer

GitHub repository CLI

Check repository size before you clone.

reposizer shows size, stars, and language in one command, so you can avoid heavyweight repos and make faster technical decisions.

$ npx reposizer torvalds/linux

Repository: torvalds/linux
Size: 6.02 GB
Stars: 230.8k
Language: C

Zero setup

Run with npx. No global install required.

Automation ready

Use --json output in scripts and CI checks.

Works with private repos

Set GITHUB_TOKEN to inspect private repositories.

Documentation

Use reposizer in minutes

Install options

# recommended
npx reposizer owner/repo

# optional global install
npm install -g reposizer

Common commands

# single repo
reposizer openai/gym

# compare multiple repos (table + optional sort)
reposizer vercel/next.js facebook/react --sort stars

# approximate directory sizes (no clone)
reposizer vercel/next.js --analyze

# approximate lines of code (no clone)
reposizer vercel/next.js --loc

# detect current repo from .git/config
reposizer

Organization scan

reposizer org openai
reposizer org openai --limit 50 --json

Scriptable JSON output

reposizer vercel/next.js --json

{
  "repository": "vercel/next.js",
  "size_mb": 2491.76,
  "stars": 139160,
  "language": "JavaScript"
}

Private repository access

export GITHUB_TOKEN=your_token
reposizer your-org/private-repo

Node.js requirement

# Node.js >= 18
node -v