Skip to content

tushargururaj/github-repo-intel

Repository files navigation

GitHubRepoIntel

Author: tushargururaj
Version: 0.0.1
Type: Dify Plugin Tool

Description

GitHubRepoIntel is a comprehensive GitHub repository intelligence tool that provides advanced repository analysis, health scoring, technology stack extraction, contributor insights, and competitive analysis with optimized performance.

Features

Core Functionality

  • Advanced Repository Analysis: Health scores based on commit frequency, contributor diversity, and issue resolution time
  • Complete Tech Stack Extraction: Analysis of package.json, requirements.txt, Dockerfile, and other configuration files
  • Detailed Contributor Analysis: Code quality metrics, contribution distribution, and developer expertise levels
  • Competitive Repository Comparison: Side-by-side analysis of multiple repositories (up to 3)
  • Trending Analysis: Identification of popular and emerging repositories
  • Intelligent Rate Limiting: Request batching and priority queuing
  • Graceful Degradation: Fallback to simpler alternatives when approaching rate limits

Repository Search & Discovery

  • Basic repository search and discovery
  • Simple repository information (stars, forks, language)
  • Basic contributor counts
  • Lightweight developer profiles
  • Repository metadata analysis

Installation

  1. Clone or download this plugin to your Dify plugins directory
  2. Install dependencies:
    pip install -r requirements.txt
  3. Configure the plugin in Dify

Configuration

GitHub Personal Access Token (Optional)

To access enhanced features:

  1. Go to GitHub Settings > Developer settings > Personal access tokens
  2. Generate a new token with appropriate scopes
  3. Add the token to your plugin configuration

Note: The plugin works without authentication but with limited functionality.

Usage Examples

Basic Repository Search

Search for Python machine learning repositories

Detailed Repository Analysis

Analyze microsoft/vscode

Trending Analysis

Find trending repositories in AI

Repository Comparison

Compare facebook/react vs vuejs/vue

Auto-Detection Examples

microsoft/vscode                    # Auto-detects as repository analysis
machine learning python            # Auto-detects as repository search
trending repositories in web dev   # Auto-detects as trending analysis
react vs angular                   # Auto-detects as repository comparison

API Endpoints

The plugin automatically detects the type of analysis needed and uses the appropriate GitHub API endpoints:

  • /search/repositories - Repository search
  • /repos/{owner}/{repo} - Repository details
  • /repos/{owner}/{repo}/languages - Language statistics
  • /repos/{owner}/{repo}/contributors - Contributor information
  • /repos/{owner}/{repo}/commits - Commit history
  • /repos/{owner}/{repo}/issues - Issue tracking
  • /repos/{owner}/{repo}/contents - File contents

Rate Limiting

The plugin includes intelligent rate limiting and will gracefully degrade functionality when approaching limits.

Output Format

All responses include:

  • Structured JSON data optimized for AI processing
  • Confidence scores for analysis accuracy
  • Data freshness timestamps
  • Actionable insights and recommendations
  • Rate limit status

Performance Optimizations

  • Token-Efficient: Optimized descriptions and parameters to minimize context usage
  • Smart Caching: Intelligent request management to avoid redundant API calls
  • Efficient Comparison: Limited to 3 repositories for optimal performance
  • Graceful Fallbacks: Automatic degradation when rate limits are approached

Troubleshooting

Common Issues

  1. Rate Limit Exceeded: Wait for the rate limit to reset or upgrade to authenticated tier
  2. Repository Not Found: Verify the repository name format (owner/repo)
  3. Authentication Error: Check your GitHub Personal Access Token
  4. Network Timeout: Check your internet connection and try again

Error Messages

  • Clear error messages explain whether limitations are due to authentication tier or temporary API issues
  • Graceful fallback to simpler alternatives when complex queries fail

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

License

This project is licensed under the MIT License.

Support

For support and questions, please open an issue on the GitHub repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages