DocuGen is a fullstack web app that generates intelligent documentation for GitHub repositories based on selected personas (Beginner, Intermediate, Expert). It also supports real-time chat-based refinement of generated docs using GPT.
- Frontend: React (inside
src/) - Backend: Express (
servernew.js) - ML Service: Calls a hosted API to extract summaries from GitHub code
- AI: OpenAI GPT-4 (via
/generate-docsand/chatroutes)
- Submit any public GitHub repo URL
- Choose your learning persona
- Get contextual project documentation
- Chat with the AI to refine/clarify the docs
- Get a SetUp Guide to help you run the code locally
- Compare branches and their differences in a repo
servernew.js: Main Express backend file (routes, GPT & ML API calls)src/: All React components and logicApp.js: Core frontend logic – UI layout, API calls, chat interfacepublic/: Static HTML template and assetsbuild/: Auto-generated production build (served via Express)
- Backend and frontend are served from the same Render app
- All
fetch()calls use relative paths like/generate-docs - Static React app is served using js:
npm install
npm run build
npm start
node servernew.js