Github Code Auditor avatar
Github Code Auditor

Pricing

from $0.00 / repository analysis result

Go to Apify Store
Github Code Auditor

Github Code Auditor

GitHub Code Auditor is an AI-powered Apify Actor that analyzes GitHub repositories.

Pricing

from $0.00 / repository analysis result

Rating

0.0

(0)

Developer

Dev with Bobby

Dev with Bobby

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Share

AI-powered GitHub repository analyzer that provides comprehensive insights into any public repository. Perfect for due diligence, developer onboarding, competitive analysis, codebase audits, and detecting AI-generated slop code.

What it does

GitHub Code Auditor analyzes GitHub repositories and provides:

  • Repository Metadata - Stars, forks, issues, license, topics, and activity
  • Language Analysis - All programming languages used with percentages
  • Contributor Insights - Top contributors and their commit history
  • Dependency Analysis - Parses package.json, requirements.txt, and more (smart monorepo detection)
  • File Structure Analysis - Detects README, tests, CI/CD, Docker presence
  • Security Scanning - Basic vulnerability and sensitive file detection
  • Health Score - 0-100 score with letter grade (A-F) based on best practices
  • AI-Powered Insights - GPT-4 generated summary, strengths, concerns, and recommendations
  • AI Slop Detection - Identifies low-quality AI-generated repositories with confidence scoring

Use Cases

WhoUse Case
Engineering TeamsTech debt monitoring, onboarding new developers
VCs & InvestorsDue diligence on portfolio companies, detect AI-generated demos
Security TeamsVulnerability scanning across organizations
Open Source MaintainersProject health dashboards
RecruitersVerify candidate skills, detect AI-generated portfolio projects
Package MaintainersVet dependencies before adding to projects
ResearchersStudy trends in AI-generated code proliferation

Input

FieldTypeRequiredDescription
repoUrlsarrayYesList of GitHub repository URLs to analyze
githubTokenstringNoGitHub token for higher API rate limits (60/hour without, 5000/hour with)
openaiApiKeystringNoOpenAI API key for AI-powered insights
analysisDepthenumNoquick, standard (default), or comprehensive
includeSecurityScanbooleanNoEnable security vulnerability checks (default: true)
includeAiInsightsbooleanNoEnable AI-powered analysis (default: true)
maxFilesToAnalyzeintegerNoMaximum files for code analysis (default: 50)

Example Input

{
"repoUrls": [
"https://github.com/facebook/react",
"https://github.com/vercel/next.js"
],
"analysisDepth": "comprehensive",
"includeSecurityScan": true,
"includeAiInsights": true
}

Output

Each repository analysis produces a JSON object with:

{
"repoUrl": "https://github.com/facebook/react",
"repoName": "facebook/react",
"description": "The library for web and native user interfaces.",
"stars": 225000,
"forks": 46000,
"openIssues": 950,
"language": "JavaScript",
"languages": {
"JavaScript": 2500000,
"TypeScript": 150000,
"HTML": 50000
},
"topics": ["react", "javascript", "frontend", "ui"],
"license": "MIT License",
"contributors": [
{"login": "gaearon", "contributions": 2500},
{"login": "acdlite", "contributions": 1800}
],
"recentCommits": [
{"sha": "abc1234", "message": "Fix bug in hooks", "author": "gaearon"}
],
"fileStructure": {
"hasReadme": true,
"hasTests": true,
"hasCiConfig": true,
"hasDockerfile": false
},
"dependencies": {
"loose-envify": "^1.1.0",
"object-assign": "^4.1.1"
},
"codeMetrics": {
"healthScore": 92,
"grade": "A",
"factors": [
{"name": "Community Interest", "score": 15},
{"name": "Documentation", "score": 10},
{"name": "Test Coverage", "score": 15}
]
},
"aiSummary": "React is a declarative JavaScript library for building user interfaces...",
"aiInsights": {
"summary": "React is a declarative JavaScript library...",
"strengths": ["Massive community support", "Excellent documentation"],
"concerns": ["Large bundle size", "Steep learning curve"],
"targetUsers": "Frontend developers building interactive UIs",
"recommendation": "Highly Recommended",
"isAiSlop": false,
"aiSlopScore": 5,
"aiSlopIndicators": [],
"aiSlopVerdict": "Definitely Authentic"
},
"dependencyCount": 2,
"devDependencyCount": 45,
"totalDependencies": 47,
"isMonorepo": true,
"analyzedAt": "2024-01-15T10:30:00.000Z"
}

AI Slop Detection

One of the most powerful features is the ability to detect "AI slop" - low-quality, AI-generated repositories that flood GitHub with shallow, non-functional code.

What It Detects

Red FlagDescription
Generic namingVague project names and descriptions that could apply to anything
Shallow READMESuspiciously polished docs with buzzwords but no real substance
No testsClaims "production-ready" but has zero test coverage
Commit bombing1-3 massive commits with entire codebase dumped at once
Ghost townNo forks, no issues, no community engagement
Template structureGeneric file layout that looks auto-generated
Dependency mismatchListed dependencies don't match the stated purpose
No CI/CDNo quality tooling or automation
Single contributorOne person with generic commit messages like "initial commit"

Output Fields

FieldTypeDescription
isAiSlopbooleantrue if likely AI-generated low-quality code
aiSlopScorenumber0-100 scale (0 = human-crafted, 100 = definitely AI slop)
aiSlopIndicatorsarrayList of specific red flags found
aiSlopVerdictstringHuman-readable verdict

Verdict Scale

VerdictScore RangeMeaning
Definitely Authentic0-15Clear signs of genuine human development
Likely Authentic16-35Mostly authentic with minor concerns
Possibly AI Slop36-65Mixed signals, warrants investigation
Likely AI Slop66-100Strong indicators of low-quality AI generation

Example: Detecting AI Slop

{
"repoUrls": ["https://github.com/suspicious-user/ai-todo-app"],
"analysisDepth": "standard",
"includeAiInsights": true
}

Example output for a suspicious repo:

{
"aiInsights": {
"isAiSlop": true,
"aiSlopScore": 78,
"aiSlopIndicators": [
"Single commit with entire codebase",
"Generic README with buzzwords",
"No tests despite 'production-ready' claim",
"Zero community engagement after 6 months",
"Dependencies don't match stated purpose"
],
"aiSlopVerdict": "Likely AI Slop"
}
}

Analysis Depths

DepthWhat's IncludedSpeed
QuickMetadata only (stars, forks, description)~5 seconds
StandardMetadata + dependencies + file structure + contributors + AI insights~15 seconds
ComprehensiveEverything + security scan + AI insights~30 seconds

Note: AI insights (including AI slop detection) are now available on both standard and comprehensive depths when an OpenAI API key is provided.

Health Score Calculation

The health score (0-100) is calculated based on:

FactorMax PointsCriteria
Community Interest15Based on star count
Documentation10Has README file
License10Has license file
Test Coverage15Has test directory
CI/CD10Has .github directory
Recent Activity15Days since last push
Issue Management10Open issues to stars ratio
Containerization5Has Dockerfile

Grades: A (80+), B (60-79), C (40-59), D (20-39), F (<20)

Pricing

EventPriceDescription
Actor Start$0.00005/GBCharged once per run
Repository Result$0.001Per repository analyzed
AI Analysis$0.02Per repository with AI insights

Example Costs

  • 1 repo, standard analysis: ~$0.001
  • 1 repo, comprehensive with AI: ~$0.021
  • 10 repos, standard: ~$0.01
  • 10 repos, comprehensive with AI: ~$0.21

Rate Limits

Auth MethodRequests/Hour
No token60
With GitHub token5,000

For analyzing multiple repositories, we recommend providing a GitHub Personal Access Token.

Integrations

This Actor works great with:

  • Scheduled runs - Monitor repository health weekly/monthly
  • Webhooks - Trigger analysis on new releases
  • Zapier/Make - Connect to your workflow automation
  • API - Integrate directly into your applications

API Usage

curl -X POST "https://api.apify.com/v2/acts/YOUR_USERNAME~github-code-auditor/runs?token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"repoUrls": ["https://github.com/apify/crawlee"],
"analysisDepth": "comprehensive"
}'

Local Development

# Clone the repository
git clone https://github.com/YOUR_USERNAME/github-code-auditor.git
cd github-code-auditor
# Install dependencies
npm install
# Create input file
mkdir -p storage/key_value_stores/default
echo '{"repoUrls": ["https://github.com/apify/crawlee"]}' > storage/key_value_stores/default/INPUT.json
# Run locally
apify run
# View results
cat storage/datasets/default/*.json

Environment Variables

VariableDescription
OPENAI_API_KEYOpenAI API key for AI insights (can also be provided in input)

Tech Stack

  • Apify SDK - Actor lifecycle and storage
  • Crawlee - Dataset management
  • @octokit/rest - GitHub API client
  • OpenAI - GPT-4 powered insights

Limitations

  • Only analyzes public repositories (unless GitHub token has private repo access)
  • AI insights (including AI slop detection) require OpenAI API key
  • GitHub API rate limits apply (60/hour without token, 5000/hour with token)
  • Maximum 500 files analyzed per repository
  • AI slop detection is probabilistic - always verify findings manually for important decisions

Support

License

ISC License