Skip to main content

GitHub Repository SEO Optimizer 🔍 License: MIT Python 3.8+ Code Style: Black

AI-powered toolkit to enhance GitHub repository visibility through automated SEO optimization of READMEs, metadata, and content.

SEO Optimization Workflow Example workflow visualization

Features ✨

  • Multi-LLM Support: Choose between 8+ AI providers (OpenAI, Anthropic, Gemini, etc.) or local rule-based engine
  • Automated SEO Analysis: Comprehensive repository content evaluation
  • Smart Content Generation: Optimized READMEs, descriptions, and topics
  • GitHub Integration: Direct API interaction for seamless updates
  • Commit Message Optimization: AI-generated conventional commit messages
  • Pre-commit Hooks: Automatic optimization before commits
  • Multi-format Output: Support for Markdown, JSON, and YAML
  • Custom Rules Engine: Domain-specific optimization rules

Installation ⚙️

From PyPI (Recommended)

pip install repo-seo-optimizer

From Source

git clone https://github.com/chenxingqiang/repo-seo.git
cd repo-seo
pip install -e .

Development Installation

git clone https://github.com/chenxingqiang/repo-seo.git
cd repo-seo
pip install -e ".[dev]"

Usage 🚀

Basic Optimization

python -m repo_cli optimize \
  --repo-url https://github.com/yourusername/your-repo \
  --provider openai \
  --update-readme \
  --auto-commit

Advanced Configuration

# Local rules with custom config
python -m repo_cli optimize \
  --repo-url . \
  --provider local \
  --config-path seo-rules.yaml \
  --output-format markdown \
  --dry-run

Pre-commit Hook

Add to .pre-commit-config.yaml:

repos:
  - repo: https://github.com/yourusername/repo-seo
    rev: v0.1.0
    hooks:
      - id: repo-seo
        args: [--provider, local, --config-path, seo-rules.yaml]

Configuration ⚙️

Environment Variables

# .env file template
OPENAI_API_KEY=sk-your-key-here
GITHUB_TOKEN=ghp_your-token-here
ANTHROPIC_API_KEY=your-antropic-key
LOG_LEVEL=INFO

Configuration File (seo-rules.yaml)

rules:
  keywords:
    - github-seo
    - repository-optimization
  structure:
    required_sections:
      - Features
      - Installation
      - Usage
  metadata:
    min_description_length: 120
    max_topics: 10

API Documentation 📚

CLI Options

Option Description Default
--repo-url Repository URL or local path Required
--provider AI provider (openai, anthropic, local, etc) 'local'
--config-path Path to custom rules config 'seo-rules.yaml'
--output-format Output format (markdown, json, yaml) 'markdown'
--update-readme Automatically update README.md False
--auto-commit Auto-commit changes with optimized message False

Contributing 🤝

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Requirements:

  • Python 3.8+
  • Black code formatting
  • flake8 linting
  • pytest for testing

License 📄

This project is licensed under the MIT License - see the LICENSE file for details.

Support & Community 💬

For help, feature requests, or discussions:

Roadmap 🗺️

  • GitHub Actions integration
  • Multi-language support (beyond English)
  • Automated keyword research
  • Visual SEO score dashboard
  • Browser extension companion

Star History Chart


This README includes:
1. Visual hierarchy with clear section headers
2. Multiple usage scenarios with code examples
3. Configuration details for different environments
4. API documentation in table format
5. Contribution guidelines with development requirements
6. Support channels and community links
7. Interactive roadmap and star history
8. Badges for quick project status overview
9. Visual placeholder for workflow diagram (replace with actual image)
10. Clear licensing and compliance information

Metadata

Release files for github-repo-seo-optimizer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for github-repo-seo-optimizer 0.1.0
File Size Uploaded
github_repo_seo_optimizer-0.1.0.tar.gz 47.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for github-repo-seo-optimizer 0.1.0
File Interpreter ABI Platform
github_repo_seo_optimizer-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 77.4 kB

Release files / github_repo_seo_optimizer-0.1.0.tar.gz

Download URL github_repo_seo_optimizer-0.1.0.tar.gz
Size 47.0 kB
Tags Source
SHA-256 checksum
How to use checksums
27c156b63c82d4b6a8f26f8a9d8d4fe8613b8400c22f589d8e8c4a74238545ee
BLAKE2b-256 checksum
How to use checksums
070b3365e96d5f102a05d7a57adf7790fd23dbd35462efd0aaccf093feb4935f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release files / github_repo_seo_optimizer-0.1.0-py3-none-any.whl

Download URL github_repo_seo_optimizer-0.1.0-py3-none-any.whl
Size 30.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9b19f8c58bc10fb8a8b81813745f14c289a9639eb4231e11e3f7e2624f6f0b4
BLAKE2b-256 checksum
How to use checksums
2addd71d44785112f81f5e46b11555a8b70d68c5932e936d73e8602cad3c4b73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page