Skip to content

joganubaid/github-trending-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

54 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”₯ GitHub Trending Agent v2.2

Smart agent for discovering, analyzing, cloning, and RUNNING trending GitHub repositories.

No more auto-downloading everything! Clone β†’ Run β†’ Preview in seconds.

✨ Features

Feature Description
πŸ” GitHub-Like Filters Language, date range, spoken language, stars, topics
🧠 Smart Filtering Skips enterprise updates, focuses on interesting projects
πŸ“ AI Summaries Ollama-powered explanations (with rule-based fallback)
🎯 Interest Scoring Repos ranked by relevance to your preferences
πŸš€ Auto-Run & Preview Clone β†’ Install β†’ Run β†’ Get preview URL
πŸ”§ Dependency Check Detect missing Go/Node/Python/Docker with install commands
🌐 Dual UI System Developer UI + Agent UI (for Ollama)
πŸ“¦ CLI Skills Python scripts callable by Claude or other agents
πŸ”Œ MCP Server Claude Desktop integration with 10 tools
πŸ”— REST API Integrate with n8n, Telegram, or any automation tool

πŸš€ Quick Start

1. Start the Server

# One-click
start.bat

# Or manual
cd C:\github-trending-agent\api
pip install -r requirements.txt
python main.py

2. Open the Dashboard

UI URL Purpose
API Docs http://localhost:8000/docs Swagger docs
Dashboard Run separately: cd dashboard && npm run dev Modern Vite + Tailwind UI

πŸš€ Auto-Run & Preview (NEW!)

Clone a repo and start it with one command:

# Clone first
python skills/clone_repo.py langchain-ai/langchain

# Run it (auto-detects, installs, starts server)
python skills/run_repo.py langchain-ai/langchain

# Output:
# βœ… Project is running!
#    πŸ“ Preview URL: http://localhost:3000

Supported: Node.js, Python (FastAPI/Flask/Streamlit/Gradio), Docker, Go, Rust


πŸ”§ Dependency Check (NEW!)

# Check all dependencies
python skills/check_deps.py

# Check for specific project type
python skills/check_deps.py --for go

# Get install command
python skills/check_deps.py --install go
# Output: winget install GoLang.Go

See Dependencies Documentation for full documentation.


πŸ” GitHub-Like Filters

Filter API Param CLI Flag
Language ?language=python --language python
Time Range ?since=weekly --since weekly
Min Stars ?min_stars=100 --min-stars 100
Topic ?topic=llm --topic llm

πŸ“¦ CLI Skills

# Fetch trending
python skills/fetch_trending.py --language python --format summary

# Analyze a repo
python skills/analyze_repo.py owner/repo --format markdown

# Clone a repo
python skills/clone_repo.py owner/repo

# Run a repo
python skills/run_repo.py owner/repo

# Check dependencies
python skills/check_deps.py --for nodejs

πŸ”Œ MCP Server (Claude Desktop)

Setup

Add to %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "github-trending": {
      "command": "python",
      "args": ["C:\\github-trending-agent\\mcp\\server.py"]
    }
  }
}

Available Tools

Tool Description
github_trending Fetch trending with filters
github_analyze AI analysis of repo
github_clone Clone to workspace
github_interests Manage keywords
github_history View clone history

πŸ”Œ REST API Endpoints

Endpoint Method Description
/api/trending GET Trending repos with summaries
/api/filters GET Available filter options
/api/analyze POST Analyze a specific repo
/api/clone POST Clone a repo
/api/interests GET/PUT Manage interests
/webhook/trending GET For n8n/Telegram

🎣 Webhook Integration

# JSON format
GET http://localhost:8000/webhook/trending?format=json&limit=5

# Markdown for Telegram
GET http://localhost:8000/webhook/trending?format=markdown&limit=5

# Clone via webhook
POST http://localhost:8000/webhook/clone?repo_name=owner/repo

βš™οΈ Configuration

Edit data/interests.json:

{
  "include_keywords": ["llm", "ai", "agent", "mcp", "rag"],
  "exclude_keywords": ["supabase", "enterprise"],
  "preferred_languages": ["python", "typescript", "rust"],
  "hide_enterprise": true
}

πŸ“ Project Structure

/
β”œβ”€β”€ README.md                ← Main documentation
β”œβ”€β”€ QUICK_START.md           ← Getting started
β”œβ”€β”€ LICENSE
β”œβ”€β”€ config.json              ← Configuration
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ docker-compose.yml
β”‚
β”œβ”€β”€ docs/                    ← Organized documentation
β”‚   β”œβ”€β”€ architecture.md      ← Architecture guide
β”‚   β”œβ”€β”€ mcp-guide.md         ← MCP integration
β”‚   └── integration.md       ← Integration guide
β”‚
β”œβ”€β”€ agent.py                 ← Main CLI entry point
β”œβ”€β”€ core/                    ← Core business logic
β”œβ”€β”€ mcp/                     ← MCP Server (Python)
β”œβ”€β”€ api/                     ← FastAPI backend
β”œβ”€β”€ dashboard/               ← Frontend (Vite + Tailwind)
β”œβ”€β”€ utils/                   ← Utilities
β”œβ”€β”€ tests/                   ← Tests
β”œβ”€β”€ docker/                  ← Docker configs
β”œβ”€β”€ data/                    ← Data files
└── skills/                  ← Skills (CLI scripts)

πŸ§ͺ AI Summary (Ollama)

For better AI-powered summaries:

# Install Ollama from https://ollama.ai
ollama pull llama3
ollama serve

Falls back to rule-based analysis if Ollama unavailable.


πŸ“š Documentation


πŸ’‘ Tips

  • First run: Click "Refresh" to fetch fresh data
  • Interests: Mark repos "Not Interested" to improve filtering
  • Cloned repos: Go to C:\github-trending-workspace\
  • Claude: Use /trending workflow or MCP tools

Built with ❀️ for developers who want to stay on the cutting edge!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages