Turn your GitHub profile into a unique AI-generated creature! This project analyzes your GitHub activity and programming languages to create a personalized pixel art mascot using AI image generation.
CodeBeasts is a full-stack application built with modern technologies:
- Built with Lovable, a powerful AI-powered web application editor
- React + Vite for lightning-fast development
- Tailwind CSS for responsive, utility-first styling
- Shadcn UI for beautiful, accessible components
- Tanstack Query for efficient data fetching
- TypeScript for type-safe development
- Agentic AI powered by Langflow
- Flask Python web framework
- Advanced logging with Logfire for production-grade monitoring
- Integration with multiple AI providers:
- Stability AI for image generation
- OpenAI (DALL-E) as an alternative image generator
Visit CodeBeasts to try it out!
We've included the CODEBEASTS_v4.json
file (built with Langflow 1.2.0) which contains the Langflow AI workflow used in this project. To use it:
- Visit Langflow and follow the instructions to install (ensure you're using Langflow >=1.2.0)
- Click on "Upload a Flow"
- Upload the
CODEBEASTS_v4.json.json
file - You'll now have access to the complete AI workflow that powers CodeBeasts!
This workflow demonstrates how to create an agentic AI system with tool use that generates personalized mascots based on GitHub profiles and stores the results in a database.
- Agentic AI using Langflow
- GitHub profile analysis
- Programming language detection
- AI-powered image generation using Stability AI and Dall-E
- Downloadable and shareable mascot images
- Real-time progress updates
- Pixel art style mascots with unique personalities
/
├── src/ # Frontend React application
├── api/ # Backend Flask application
└── public/ # Static assets
# Install frontend dependencies
npm install
# Start the development server
npm run dev
# Navigate to the api directory
cd api
# Create a virtual environment
python -m venv venv
# Activate the virtual environment
# On Windows:
venv\Scripts\activate
# On Unix or MacOS:
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Copy the example env file
cp .env.example .env
# Update the .env file with your API keys and settings
# You'll need:
# - Stability API key for Stability AI
The frontend will be available at http://localhost:8080 The backend API will be available at http://localhost:5000
Create a .env
file in the root directory with the following variables:
# API Configuration
LANGFLOW_BASE_URL=your_langflow_base_url_here
LANGFLOW_FLOW_ID=your_langflow_flow_id_or_endpoint_namehere
# Image Generation API Configuration
OPENAI_API_KEY=your_openai_api_key_here (for Dall-E)
STABILITY_API_KEY=your_stability_api_key_here (for Stability AI)
# Vite Configuration
VITE_API_URL=http://localhost:5000
The application uses both Dall-E and Stability AI's latest model for image generation:
-
Stability AI SD3
- Uses Stability AI's latest model for image generation
- Advanced model optimized for pixel art generation
- Creates unique, personalized mascots
- Requires STABILITY_API_KEY
-
Dall-E 3
- Uses OpenAI's Dall-E model for image generation
- Requires OPENAI_API_KEY
Feel free to open issues and submit pull requests to help improve CodeBeasts!