Skip to content
talelboussettaPublic

About

AI multi-agent hackathon project generator

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

HackFarmer banner

HackFarmer corn logo

Deploy Status: Beta Python 3.11 React + Vite FastAPI License: MIT

Overview

HackFarmer is a multi-agent AI platform that transforms a project brief (text, PDF, or DOCX) into a full hackathon-ready codebase.
It orchestrates specialized agents (analysis, architecture, code generation, integration, validation, publishing) using LangGraph and streams real-time progress to the UI.

Key Features

  • Multi-agent pipeline with live status graph
  • Frontend + backend code generation from product specs
  • Architecture diagram and business artifacts generation
  • GitHub repository creation + iterative refine-and-push workflow
  • Secure auth and per-user provider key management via Appwrite
  • File browser and code preview for generated repositories

Architecture

graph TD
    A[User Input] --> B[Analyst]
    B --> C[Architect]
    C --> D[Frontend Agent]
    C --> E[Backend Agent]
    C --> F[Business Agent]
    D --> G[Integrator]
    E --> G
    F --> G
    G --> H[Validator]
    H -->|score >= 70 or retries >= 3| I[GitHub Agent]
    H -->|score < 70 and retries < 3| G
Loading

Production architecture overview:

HackFarmer Full System Architecture

Tech Stack

Layer Stack
Frontend React 18, Vite, Tailwind CSS, Framer Motion
Backend FastAPI, Python 3.11
Orchestration LangGraph
BaaS Appwrite (Auth, DB, Realtime, Storage)
AI Providers OpenAI-compatible routing (Gemini, Groq, OpenRouter, etc.)
Automation n8n (optional)

Quick Start

1) Clone

git clone https://github.com/talelboussetta/HackFarm.git
cd HackFarm

2) Backend setup

cd backend
pip install -r requirements.txt
python scripts/setup_appwrite.py

3) Configure environment

# backend
cp backend/.env.example backend/.env

# frontend
cp frontend/.env.local.example frontend/.env.local

Generate a Fernet key:

python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"

4) Run locally

docker-compose up

Core API

Method Endpoint Purpose
GET /health Service health
GET /api/jobs List jobs
POST /api/jobs Create generation job
GET /api/jobs/{id} Job detail + runs
POST /api/jobs/{id}/refine Refine existing project
DELETE /api/jobs/{id} Cancel/delete job

Security & Operations

  • Provider API keys are configured per user in Settings and encrypted server-side using Fernet.
  • Authentication and user-scoped data access are managed through Appwrite.
  • Job progress is streamed in real time, with retry-aware validation in the orchestration loop.
  • Production deployment is supported via docker-compose.prod.yml and CI/CD workflow automation.

Repository Layout

HackFarm/
├─ frontend/   # React + Vite dashboard and generation UI
├─ backend/    # FastAPI services, agents, and orchestration
├─ docs/       # Architecture diagrams and technical documentation
└─ images/     # Visual assets and branding

Roadmap Snapshot

  • Expanded agent specialization and quality scoring
  • Stronger eval/benchmark coverage for generated projects
  • More provider presets and model routing controls
  • Team collaboration and shared project workspaces

Contributing

  1. Fork the repository
  2. Create a branch: git checkout -b feat/your-change
  3. Commit: git commit -m "feat: your change"
  4. Push and open a PR

Please run tests/lint checks relevant to your change before submitting.

License

MIT

About

AI multi-agent hackathon project generator

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages