DocMagic is an AI-powered document generation platform that empowers users to create stunning, professional documents—such as resumes, CVs, cover letters, statements, and more—from a simple prompt. Built on the latest technologies including Next.js, Supabase, and Google’s Gemini 2.0 Flash model, DocMagic streamlines content creation for professionals, students, and businesses.
Why DocMagic?
Save hours on formatting and writing. Just describe what you need, and let the AI handle the rest—beautifully and intelligently.
- Next.js – Server-side rendering & frontend
- Supabase – Authentication and Postgres database
- Gemini 2.0 Flash – LLM backend for intelligent document generation
- Tailwind CSS – Sleek and customizable UI styling
- pptxgenjs – Export presentations in PowerPoint format
- LaTeX.js – In-browser LaTeX rendering for scientific and mathematical documents
Clone the repository and install dependencies:
git clone https://github.com/Muneerali199/DocMagic.git
cd DocMagic
npm installCreate a .env.local file in the root directory and configure your environment variables:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
GEMINI_API_KEY=your_gemini_api_key
# Add other required keys as neededRun the development server:
npm run devThe app will be running at http://localhost:3000.
- Sign up or login with your account.
- Enter a prompt describing the document you want (e.g., "A modern CV for a software engineer with 5 years of experience.").
- Let the AI generate your document draft.
- Preview, edit, and export to formats like PDF, DOCX, or PowerPoint.
- Use LaTeX rendering for scientific documents and equations.
- AI Document Generation: Create CVs, cover letters, statements, and more from natural language prompts.
- Export Options: Download as PDF, DOCX, or PowerPoint (PPTX) with one click.
- Live LaTeX Preview: Render and preview LaTeX equations and documents in-browser.
- User Authentication: Secure sign-in and document management via Supabase.
- Modern UI: Responsive, accessible, and customizable interface powered by Tailwind CSS.
- History Tracking: View and manage your previously generated documents.
We welcome contributions! To get started:
- Fork the repository.
- Create your feature branch:
git checkout -b feature/YourFeature - Commit your changes:
git commit -am 'Add cool feature' - Push to the branch:
git push origin feature/YourFeature - Open a pull request.
Reporting Issues:
If you find a bug or have a feature request, open an issue and describe it clearly. Please include steps to reproduce if applicable.
This project is licensed under the MIT License.
Empower your productivity and creativity with DocMagic. Let AI handle your documents, so you can focus on what matters most!


