Skip to content

Aditya3815/mini_App-Langgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛠️ LangGraph App Builder

An AI-powered application generator that converts natural language descriptions into functional projects using a multi-agent LangGraph architecture.


🏗️ Architecture

  • Planning Agent – Creates a project plan with tech stack and features
  • Architect Agent – Breaks down the plan into detailed implementation tasks
  • Coding Agent – Executes tasks and generates actual code files

Agent Graph Visualization


🚀 Quick Start

Prerequisites

Installation

# Create virtual environment
uv venv
.venv\Scripts\activate  # Windows
source .venv/bin/activate  # Linux/Mac

# Install dependencies
uv pip install -e .

# Setup environment
cp .sample_env .env
# Add your GEMINI_API_KEY to .env

Running the App

python agent/graph.py

Enter your project description when prompted. Examples:

  • "Create a simple login page with colorful design"
  • "Build a to-do list app using HTML, CSS, and JavaScript"
  • "Create a FastAPI blog with SQLite database"

📁 Project Structure

agent/
  ├── graph.py      # Main LangGraph orchestration
  ├── prompts.py    # Agent prompts
  ├── states.py     # Pydantic models
  ├── tools.py      # File I/O tools
  └── visualize.py  # Graph visualization
main.py            # Entry point
pyproject.toml     # Dependencies

⚙️ Configuration

Key settings in agent/graph.py:

llm = ChatGoogleGenerativeAI(
    model="gemini-2.0-flash-exp",
    temperature=0.2
)

tested opensource models with limited use because of Tokens per minute limit:

  • openai/gpt-oss-20b
  • gemini-2.0-flash
  • gemini-1.5-pro (higher accuracy, slower)

📸 Example Projects

1. Calculator Web App

Generated simple calculator with HTML, CSS, and JavaScript.

Calculator Screenshot

2. Login Page

Beautiful login interface with responsive design.

Login Page Screenshot

3. Portfolio Website

Personal portfolio with multiple sections and responsive layout.

Portfolio Screenshot 1 Portfolio Screenshot 2 Portfolio Screenshot 3


🐛 Troubleshooting

Issue: "Tool choice is required" error

  • Solution: Model does not support structured outputs. Try a different model with better tool-use support.

Issue: API quota exceeded

  • Solution: Google Gemini has rate limits. Wait before retrying or use a different model.

Issue: Generated project won't run

  • Solution: Check generated_project/README.md for specific setup instructions.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published