Skip to content

GitHub Clear 一站式 GitHub/Gitee 仓库管理 & 主页美化工具

License

Notifications You must be signed in to change notification settings

A2Data/github-clear

Repository files navigation

GitHub Clear

GitHub Clear

All-in-one GitHub/Gitee Repository Manager & Profile Beautifier

一站式 GitHub/Gitee 仓库管理 & 主页美化工具

Stars Forks Issues License

Python FastAPI Docker

FeaturesQuick StartDockerScreenshotsContributing

🇨🇳 中文文档


✨ Features

Preview

Front Page:

Dashboard:

Warehouse Management:

Homepage beautification:

Set up:

Token Configuration Common commands:

📦 Repository Management

  • View all repositories (public / private / forked)
  • Multiple sorting and filtering options
  • Batch delete repositories
  • Batch archive repositories
  • Leave collaboration repositories

🎨 Profile Beautifier

  • Visual editor with real-time preview
  • 100+ preset skill badges
    • Programming: Python, JavaScript, Go, Rust, Java, TypeScript...
    • Big Data: Hadoop, Spark, Hive, Kafka, Flink, Airflow...
    • Visualization: Tableau, Power BI, ECharts, Grafana...
    • AI/ML: TensorFlow, PyTorch, Pandas, HuggingFace...
    • Cloud: AWS, GCP, Azure, Alibaba Cloud...
  • Custom skills - Add any skill badge
  • Custom social links - Support Chinese labels (Discord, 知乎, Bilibili...)
  • GitHub Stats card with customizable service URL
  • Streak Stats contribution card
  • Typing animation header
  • 30+ themes to choose from
  • One-click deploy to GitHub

📊 Dashboard

  • Account overview
  • Repository statistics
  • Async loading for fast response

⚙️ Settings

  • Token management (GitHub / Gitee)
  • SSH Key viewer
  • Stats service URL configuration

🚀 Quick Start

Prerequisites

  • Python 3.10+
  • uv (recommended) or pip

1. Clone the repository

git clone https://github.com/A2Data/github-clear.git
cd github-clear

2. Install dependencies

# Using uv (recommended)
uv sync

# Or using pip
pip install -e .

3. Configure Token

cp .env.example .env

Edit .env file:

GITHUB_TOKEN=your_github_token_here
GITEE_TOKEN=your_gitee_token_here  # Optional

Get your Token:

4. Start the application

uv run uvicorn main:app --reload --port 8000

Visit http://localhost:8000


🐳 Docker Deployment

Quick Start with Docker

# Build image
docker build -t github-clear .

# Run container
docker run -d -p 8000:8000 \
  -e GITHUB_TOKEN=your_token \
  --name github-clear \
  github-clear

Docker Compose

# Copy and edit environment file
cp .env.example .env

# Start services
docker-compose up -d

For detailed deployment guide, see DOCKER_DEPLOYMENT.md


📸 Screenshots

Click to expand screenshots

Dashboard

Quick overview of your account and recent repositories

Repository Management

Batch manage, delete, and archive repositories

Profile Beautifier

Visual editor for Profile README with real-time preview

Settings

Token and service configuration


🛠️ Tech Stack

Category Technology
Backend Python, FastAPI, Uvicorn
Frontend Jinja2, HTML5, CSS3, JavaScript
API GitHub REST API, Gitee API
Styling Custom CSS (Dark theme)
Deployment Docker, Docker Compose

📁 Project Structure

github-clear/
├── main.py                   # FastAPI main entry
├── pyproject.toml            # Project configuration
├── docker-compose.yml        # Docker Compose config
├── Dockerfile                # Docker image config
├── .env.example              # Environment variables example
├── config/
│   └── settings.py           # Settings management
├── core/
│   ├── github_api.py         # GitHub API wrapper
│   ├── gitee_api.py          # Gitee API wrapper
│   ├── profile_generator.py  # Profile README generator
│   └── token_manager.py      # Token management
├── templates/                # Jinja2 templates
│   ├── base.html             # Base template
│   ├── index.html            # Home page
│   ├── dashboard.html        # Dashboard
│   ├── repositories.html     # Repository management
│   ├── profile.html          # Profile beautifier
│   └── settings.html         # Settings
└── static/                   # Static assets
    ├── css/style.css         # Global styles
    ├── js/app.js             # JavaScript
    └── favicon.svg           # Favicon

🌐 i18n Support

GitHub Clear supports multiple languages:

  • 🇨🇳 Chinese (中文)
  • 🇺🇸 English

Language can be switched using the toggle button in the bottom-left corner.


❓ FAQ

Q: Profile preview images fail to load?

A: This is usually a network issue and doesn't affect actual deployment. GitHub loads images from the server side.

Solutions:

  1. Click "Deploy to GitHub" directly - it will work on GitHub
  2. Expand "Service URL Config" and click "Test Connection"
  3. Try using mirror service URLs
  4. Enable VPN and refresh the page

Q: How to self-host Stats services?

A: See these projects:


🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

For detailed guidelines, see CONTRIBUTING.md


📄 License

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


👤 Author

JackFeng - @A2Data


🌟 Star History

Star History Chart


If you find this project helpful, please consider giving it a ⭐️

Made with ❤️ by JackFeng

About

GitHub Clear 一站式 GitHub/Gitee 仓库管理 & 主页美化工具

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors