Skip to content

使用 AI 为你的 GitHub 仓库生成精美的极简图标。

Notifications You must be signed in to change notification settings

SimonGino/repoicon

Folders and files

NameName
Last commit message
Last commit date
Feb 5, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Feb 5, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025

Repository files navigation

RepoIcon

RepoIcon Logo

English | 简体中文

Generate beautiful, minimalist icons for your GitHub repositories using AI.

Features

  • 🎨 Generate minimalist, modern icons for GitHub repositories
  • 🤖 Powered by Tongyi AI for intelligent prompt generation
  • 🔄 Automatic analysis of repository content and purpose
  • 🎯 Language-specific design elements
  • ⚡ Fast and responsive interface
  • 🌐 Simple URL-based generation

Tech Stack

  • Frontend: React + TypeScript + Vite + TailwindCSS
  • Backend: FastAPI + Python
  • AI: Tongyi API (Text Generation + Image Generation)

Getting Started

Prerequisites

  • Node.js 16+
  • Python 3.9+
  • Tongyi API Key

Installation

  1. Clone the repository:
git clone https://github.com/SimonGino/repoicon.git
cd repoicon
  1. Install frontend dependencies:
npm install
  1. Install backend dependencies:
cd backend
pdm install
  1. Configure environment variables:
# In backend/.env
TONGYI_API_KEY=your_api_key_here

Development

  1. Start the backend server:
cd backend
pdm run start
  1. Start the frontend development server:
npm run dev

The application will be available at http://localhost:5173

Usage

  1. Visit the application in your browser
  2. Enter a GitHub repository URL
  3. Click "Generate Icon"
  4. Wait for the AI to analyze the repository and generate an icon
  5. Download the generated icon

Deployment

Using Docker (Recommended)

  1. Install Docker and Docker Compose on your system

  2. Clone the repository:

git clone https://github.com/SimonGino/repoicon.git
cd repoicon
  1. Create a .env file in the root directory (you can copy from .env.example):
cp .env.example .env
  1. Configure your environment variables in .env:
# Required
TONGYI_API_KEY=your_api_key_here

# Optional - change these if the default ports are in use
API_HOST=localhost
BACKEND_PORT=8000
FRONTEND_PORT=5173
  1. Build and start the containers:
docker-compose up --build

The application will be available at:

  • Frontend: http://localhost:{FRONTEND_PORT} (default: 5173)
  • Backend: http://localhost:{BACKEND_PORT} (default: 8000)

To use different ports, simply change the values in your .env file.

To stop the containers:

docker-compose down

Manual Installation

Contributing

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

License

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

Acknowledgments

About

使用 AI 为你的 GitHub 仓库生成精美的极简图标。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published