A simple web application that converts PDF documents into interactive mind maps using Google's Gemini Pro AI. Built with Next.js and React Flow.
📄 PDF Upload & Processing
- Drag & drop interface
- Support for PDFs up to 5MB
- Real-time processing feedback
🧠 AI-Powered Analysis
- Automatic key point extraction
- Context-aware organization
- Powered by Google's Gemini Pro
🗺️ Interactive Mind Maps
- Expandable/collapsible nodes
- Draggable interface
- Smooth animations
- Mini-map navigation
- Background grid for better visualization
- Framework: Next.js 14 with App Router
- Mind Map Visualization: React Flow
- AI Integration: Google Gemini and Vercel's AI SDK
- Styling: Tailwind CSS
- Clone the repository:
git clone https://github.com/floguo/mind-map.git
- Install dependencies:
npm install
# or
yarn install
- Create a
.env
file in the root directory with your Google AI API key:
GOOGLE_GENERATIVE_AI_API_KEY=your_api_key_here
- Run the development server:
npm run dev
# or
yarn dev
- Open http://localhost:3000 in your browser.
- Upload a PDF document using the drag & drop interface or file picker
- Wait for the AI to analyze the document
- Explore the generated mind map:
- Click nodes to expand/collapse branches
- Drag nodes to rearrange the layout
- Use the mini-map for navigation
- Zoom and pan to explore larger maps
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Vercel's AI SDK PDF Support for the PDF processing
- React Flow for the mind map visualization
- Google Generative AI for the AI-powered analysis
- Tailwind CSS for the styling