Github Repository Analyzer avatar
Github Repository Analyzer

Pricing

Pay per usage

Go to Apify Store
Github Repository Analyzer

Github Repository Analyzer

Analyze any GitHub repo: quality scores, bus factor, tech stack, dependencies, activity metrics & AI insights. Perfect for due diligence, hiring, and OSS evaluation. Supports Node, Python, Go, Rust, Java.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

CQ

CQ

Maintained by Community

Actor stats

0

Bookmarked

5

Total users

1

Monthly active users

9 days ago

Last modified

Share

Comprehensive GitHub repository analysis with security scanning, code quality metrics, contributor bus factor, dependency audit, license compatibility, trends analysis, and AI-powered insights.

Perfect for technical due diligence, hiring decisions, and open source evaluation.

โœจ Features

Core Analysis

  • Basic Info: Stars, forks, license, topics, archive status
  • Tech Stack: Languages, frameworks, build tools, package managers
  • Contributors: Bus factor, contribution distribution (Gini coefficient), top contributors
  • Dependencies: Package count, lock file detection, transitive dependencies
  • Activity: Commit frequency, staleness score, release history
  • Quality: Tests, CI/CD, linting, documentation scores

Extended Analysis

  • Security: Dependabot alerts, code scanning, secret scanning, security advisories
  • Code Quality: Coverage integration (Codecov, Coveralls), complexity estimates
  • Issues & PRs: Resolution time, merge velocity, stale issue count
  • Trends: Star history, fork patterns, commit activity, momentum score
  • Branches: Protection rules, branching strategy detection
  • Monorepo: Lerna, Turborepo, Nx, workspaces detection
  • License Compatibility: GPL/MIT/Apache/LGPL conflict detection
  • AI Insights: Executive summary, strengths, concerns, risk assessment

๐Ÿ†• New Features

๐Ÿ“Š Repository Comparison

Compare multiple repositories side-by-side with automated winner detection:

{
"repositories": ["facebook/react", "vuejs/vue", "sveltejs/svelte"],
"compareMode": true
}

๐Ÿท๏ธ Badge Generation

Get embeddable shields.io-style badges for your README:

  • Quality Score badge
  • Bus Factor badge
  • Security Score badge
  • Activity/Staleness badge
  • Coverage badge
  • Overall Health Grade (A+ to F)

๐Ÿ“ˆ Historical Tracking

Track metrics over time with automatic trend detection:

  • Quality score trends
  • Security score changes
  • Bus factor evolution
  • Activity patterns
  • Degradation alerts

๐Ÿ”” Webhook Monitoring

Get notified when metrics cross thresholds:

  • Slack integration
  • Discord integration
  • Generic JSON webhooks
  • Customizable alert thresholds

๐Ÿค– MCP Server

Model Context Protocol integration for AI assistants (Claude, Cursor, etc.):

  • analyze_repository - Full repository analysis
  • compare_repositories - Side-by-side comparison
  • get_security_report - Security vulnerability scan
  • get_issue_analytics - Issue/PR metrics
  • get_trends - Historical trend data
  • get_branch_analysis - Branch and protection rules
  • get_code_quality - Quality metrics
  • check_monorepo - Monorepo structure detection
  • check_license_compatibility - License conflict detection

๐Ÿš€ Quick Start

Basic Analysis

{
"repositories": ["facebook/react"],
"analysisDepth": "deep"
}

Compare Frameworks

{
"repositories": [
"vercel/next.js",
"facebook/react",
"vuejs/vue",
"sveltejs/svelte"
],
"compareMode": true,
"analysisDepth": "standard"
}

Security Audit with Alerts

{
"repositories": ["your-org/main-app"],
"analysisDepth": "deep",
"githubToken": "ghp_xxxxxxxxxxxx",
"webhookUrl": "https://hooks.slack.com/services/xxx",
"webhookFormat": "slack",
"alertThresholds": {
"securityScore": { "warning": 80, "critical": 60 },
"criticalVulns": { "warning": 0, "critical": 1 }
}
}

Scheduled Monitoring

Set up a scheduled run to monitor your dependencies:

{
"repositories": [
"your-org/frontend",
"your-org/backend",
"your-org/shared-lib"
],
"trackHistory": true,
"webhookUrl": "https://discord.com/api/webhooks/xxx",
"webhookFormat": "discord"
}

๐Ÿ“‹ Input Parameters

ParameterTypeRequiredDescription
repositoriesarrayYesRepository URLs or owner/repo format
analysisDepthstringNoquick, standard, or deep (default: deep)
compareModebooleanNoGenerate comparison for multiple repos
generateBadgesOutputbooleanNoCreate embeddable badges (default: true)
trackHistorybooleanNoSave results for trend tracking (default: true)
webhookUrlstringNoURL for alert notifications
webhookFormatstringNojson, slack, or discord
alertThresholdsobjectNoCustom thresholds for alerts
alwaysNotifybooleanNoSend webhook on every run
includeAiSummarybooleanNoGenerate AI insights (default: true)
openaiApiKeystringNoRequired for AI summaries
githubTokenstringNoFor higher rate limits and security data
maxConcurrencyintegerNoParallel repos (default: 3, max: 10)

๐Ÿ“ค Output

Dataset (per repository)

Full analysis results with all metrics, badges, and alerts.

Key-Value Store

KeyDescription
SUMMARYRun summary with all repo scores
COMPARISONSide-by-side comparison (if compareMode=true)
BADGESAll generated badges for easy access
HISTORY_owner_repoHistorical data for each repository

Example Output

{
"repositoryUrl": "https://github.com/facebook/react",
"owner": "facebook",
"name": "react",
"basicInfo": {
"stars": 220000,
"forks": 45000,
"license": "MIT"
},
"quality": {
"overallScore": 95
},
"security": {
"securityScore": 85,
"vulnerabilities": { "critical": 0, "high": 1 }
},
"contributors": {
"busFactor": 12,
"total": 1600
},
"badges": {
"qualityScore": {
"markdown": "![Quality Score](https://img.shields.io/badge/quality-95%2F100-brightgreen)",
"svg": "..."
},
"health": {
"markdown": "![Health](https://img.shields.io/badge/health-A-brightgreen)"
}
},
"alerts": [],
"aiInsights": {
"summary": "React is a mature, actively maintained UI library...",
"maintenanceRisk": "low"
}
}

๐Ÿ“Š Key Metrics Explained

Bus Factor

Minimum contributors responsible for 50% of commits. Low values (1-2) indicate risk.

Staleness Score (0-100)

  • 0-10: Active (< 30 days)
  • 10-50: Moderate (30-180 days)
  • 50-80: Stale (6-12 months)
  • 80-100: Abandoned (> 1 year)

Quality Score (0-100)

Composite of: README (30%), Tests (20%), CI/CD (15%), Linting (10%), TypeScript (10%), Docs (15%)

Security Score (0-100)

Based on: No critical vulns (+40), Security policy (+15), Dependabot (+15), Code scanning (+15), Secret scanning (+15)

๐Ÿ”ง MCP Server Setup

Add to your Claude/Cursor configuration:

{
"mcpServers": {
"github-analyzer": {
"command": "npx",
"args": ["-y", "github-repository-analyzer", "--mcp"],
"env": {
"GITHUB_TOKEN": "ghp_xxx",
"OPENAI_API_KEY": "sk-xxx"
}
}
}
}

Or run locally:

$npm run mcp

๐Ÿ’ฐ Pricing

Pay per result:

  • $0.03 per repository (quick)
  • $0.05 per repository (standard)
  • $0.10 per repository (deep)

Plus OpenAI API costs if using AI summary (~$0.01-0.02 per repo).

โšก Rate Limits

TokenRateRepos/hour
None60/hour~5-7
GitHub PAT5000/hour~400+

Get a token: https://github.com/settings/tokens

Required scopes: repo (private repos), security_events (security data)

๐Ÿ“ Changelog

v1.2.0

  • Added repository comparison mode with winner detection
  • Added embeddable badge generation (shields.io style)
  • Added historical tracking with trend analysis
  • Added webhook notifications (Slack, Discord, JSON)
  • Added customizable alert thresholds
  • Added degradation detection

v1.1.0

  • Added security vulnerability scanning
  • Added code quality metrics with coverage
  • Added issue/PR analytics
  • Added license compatibility analysis
  • Added monorepo detection
  • Added MCP server for AI assistants

๐Ÿ†˜ Support

For issues or feature requests, please open an issue on the actor's GitHub repository or contact us through Apify.


Built for developers who need to make informed decisions about open source dependencies.