Turn your code into professional Docsify documentation with AI analysis.
This project, including the core logic and parts of this documentation, is fully vibe coded. It serves as a living experiment on how far natural language and AI (GitHub Copilot, Gemini) can take a production-ready web application.
- AI-powered code analysis using Groq's Llama 3.3 70B
- One-click export to fully functional Docsify documentation
- Custom theme colors and design variations
- Responsive glassmorphism UI built with Tailwind CSS
- Generate complete documentation in ~30 seconds
- Automatic sidebar navigation
- Download as ready-to-deploy ZIP package
Frontend: Next.js 14, TypeScript, Tailwind CSS, Framer Motion
Backend: Next.js API Routes, Node.js, Groq Cloud SDK
Export: JSZip, Docsify, Markdown
Prerequisites:
- Node.js 18+
- Groq API key from https://console.groq.com
Installation:
git clone https://github.com/yourusername/devreadme.git
cd devreadme
npm installConfiguration:
Create .env.local:
GROQ_API_KEY=your_groq_api_key_hereDevelopment:
npm run dev
# Open http://localhost:3000Production:
npm run build
npm start- Enter your project name and optional description
- Paste your README, code snippets, or project overview
- Choose theme color and sidebar preference
- Click "Generate Documentation"
- Wait for AI analysis (~30 seconds)
- Download the ZIP package and extract it
- Deploy to GitHub Pages, Vercel, Netlify, or any static host
# To test locally:
unzip MyProject-docs.zip
npx http-serverPipeline: User Input → Groq Analysis → Markdown Generation → Template Processing → ZIP Export
API Endpoint: POST /api/generate
{
"projectName": "MyProject",
"description": "Brief description",
"codeInput": "Your README or code...",
"accentColor": "#D4AF37",
"includeSidebar": true
}Response: Complete Docsify package with HTML, CSS, and Markdown files
app/ - Next.js App Router
lib/ - Groq, template processing, exports
types/ - TypeScript definitions
hooks/ - React hooks
example-docs/ - Docsify templates
Change theme color: Edit tailwind.config.ts
Modify AI generation: Update lib/groq-service.ts
Add templates: Place files in example-docs/ and update lib/template-processor.ts
Deploy the generated ZIP to any static host:
- Vercel / Netlify - Connect GitHub, auto-deploy on push
- GitHub Pages - Upload extracted files to gh-pages branch
- Self-hosted - Run
npm run build && npm start
See DEPLOYMENT.md for detailed instructions.
GROQ_API_KEY - Required for AI analysis
- "API Key not found" - Check
.env.local - Generation timeout - Reduce code input size
- ZIP not downloading - Check browser console
- Styling broken - Clear cache and restart dev server
MIT
For deployment steps, see DEPLOYMENT.md
For development details, see DEVELOPER.md