Automatic, AI-powered documentation generation for your GitHub repositories.
DocuAgent is an agentic AI assistant that automatically generates, updates, and manages high-quality technical documentation for your repositories. Connect your GitHub repo once, and let AI handle the rest — documentation is generated intelligently on every PR merge and webhook trigger.
Maintaining up-to-date technical documentation is a persistent challenge for development teams. Documentation often falls behind code changes, leading to outdated APIs, unclear setup instructions, and poor knowledge transfer. DocuAgent solves this by automating documentation generation directly from your codebase, ensuring docs always reflect your latest code.
- 🤖 AI-Powered Generation — Uses Groq's Llama 3.3 to intelligently analyze code and generate professional documentation
- 🔄 Automatic Updates — Docs regenerate automatically when you push code via GitHub webhooks
- 📑 Five Specialized Agents — API Reference, Architecture Guide, Deployment Guide, PR Summaries, Changelog
- 🌐 GitHub OAuth — Seamless integration; no API keys exposed to users
- ✅ Multi-Language — JavaScript, TypeScript, and Python projects supported
- 📱 Fully Responsive — Dark theme dashboard built with Tailwind CSS (mobile-first)
- 🎪 Demo Mode — Try the full experience without authentication
- 🚀 Production-Ready — Docker support, comprehensive error handling, teal accent theme
| Component | Technology |
|---|---|
| Backend Runtime | Node.js 20 (ES Modules) |
| Backend Framework | Express.js |
| AI/LLM | Groq SDK with Llama 3.3 |
| GitHub Integration | Octokit + GitHub REST API |
| Frontend Framework | React 18 |
| Frontend Tooling | Vite 5 |
| Styling | Tailwind CSS 4 |
| UI Components | Lucide React icons, React Hot Toast |
| Markdown | react-markdown + rehype-highlight |
- Node.js 18+ installed
- GitHub account with OAuth app credentials
- Groq API key (free at console.groq.com)
-
Clone repository:
git clone https://github.com/your-username/DocuAgent.git cd DocuAgent/backend -
Install dependencies:
npm install
-
Configure environment:
cp .env.example .env
Edit
.envwith:PORT=3001 FRONTEND_URL=http://localhost:5173 # Groq API (free tier at console.groq.com) GROQ_API_KEY=your_groq_api_key_here # GitHub OAuth App (from github.com/settings/developers) GITHUB_CLIENT_ID=your_client_id GITHUB_CLIENT_SECRET=your_client_secret GITHUB_CALLBACK_URL=http://localhost:3001/auth/github/callback # Optional: Demo mode fallback GITHUB_ACCESS_TOKEN=your_github_pat_optional
-
Run development server:
npm run dev
Backend available at
http://localhost:3001
-
Open new terminal:
cd DocuAgent/frontend -
Install dependencies:
npm install
-
Start dev server:
npm run dev
Frontend available at
http://localhost:5173
- Navigate to GitHub Settings → Developer settings → OAuth Apps
- Click New OAuth App
- Fill in:
- Application name:
DocuAgent - Homepage URL:
http://localhost:5173 - Authorization callback URL:
http://localhost:3001/auth/github/callback
- Application name:
- Copy Client ID and Client Secret into
.env - Done! The OAuth flow works automatically.
- Connect Repository — GitHub OAuth login, select a repo
- Analyze Codebase — Backend fetches file structure and code samples
- Generate Docs — Five specialized agents create:
- 📖 API Reference — Functions, parameters, return types
- 🏗️ Architecture — Project structure and module relationships
- 🚢 Deployment — Setup and deployment instructions
- 📝 PR Summaries — Pull request change summaries
- 📋 Changelog — Version history and features
- Auto-Update — GitHub webhooks trigger regeneration on push/PR
cd backend
docker build -t docuagent-backend:latest .
docker run -p 3001:3001 --env-file .env docuagent-backend:latest- Vercel:
vercel deploy - Netlify: Connect GitHub repo, auto-deploys on push
- GitHub Pages:
npm run build→ static hosting - Self-hosted: Any Node.js or static host
No login required!
- Click "Try Demo" on the landing page
- Explore pre-generated docs for DocuAgent repository
- See all five agent outputs in action
- Perfect for judges and evaluators
This project is licensed under the MIT License — See LICENSE file for details.
/backend
/src
/agents ← AI agent logic for each doc type
/routes ← Express endpoints (OAuth, docs, webhooks)
/services ← GitHub API integration
index.js ← Server entrypoint
Dockerfile ← Container image definition
/frontend
/src
/pages ← Landing, Dashboard, DocsViewer
/components ← Reusable UI components
/context ← Auth context management
vite.config.js ← Vite configuration
tailwind.config.js ← Tailwind theme settings
Built for developers. Powered by AI. Made with ❤️ for the Hackathon.