A simple Node.js CLI tool that analyzes any public GitHub repository and returns structured JSON containing repository information, language statistics, commit data, and issue counts. This is an open source project use it however you like.
- Fetch repository details (stars, forks, description)
- Fetch language breakdown
- Count total commits
- Count open and closed issues
- Output everything in clean JSON format
- Works with any public GitHub repo
git clone https://github.com/xdevman1/git-repo-analyzer
cd git-repo-analyzernpm installnpm linknode bin/cli.js facebook/reactgit-repo-analyzer vercel/next.js{
"info": {
"name": "react",
"description": "The library for web and native user interfaces",
"stars": 223000,
"forks": 45000
},
"langs": {
"JavaScript": 1500000,
"TypeScript": 500000
},
"commits": {
"total": 14000
},
"issues": {
"open": 1100,
"closed": 32000
}
}git-repo-analyzer/
├── bin/cli.js
├── src/
│ ├── api/github.js
│ ├── analysis/
│ │ ├── repoInfo.js
│ │ ├── languages.js
│ │ ├── commits.js
│ │ └── issues.js
│ ├── utils/request.js
│ └── index.js
├── package.json
└── README.md
- Node.js 16+
- Internet connection (uses GitHub API)
MIT License