A Next.js application for mind map visualization powered by React Flow. Built with shadcn and Magic UI.
Generate mind maps using Ollama local models and interact with them through an intuitive interface.
demo.mp4
- Interactive mind map visualization
- Node details sidebar
- Export to Markdown or JSON
- Local model support via Ollama
- Install dependencies:
npm install
- Configure Model:
- In
route.ts
, specify your Ollama model (default:llama3.2
) - Note: Local models are slower than cloud-based ones
- See Ollama docs for model setup
- Start server:
npm run dev
- Access application:
- Open http://localhost:3000
- Begin creating mind maps
Mind map generation prompts are configured in prompts.ts
under defaultLocalPrompt
variable.
- Enter a topic in the input field
- Wait for the AI to generate the initial mind map
- Click nodes to view details in the sidebar
- Use the expand button (➡️) to generate subtopics
- Toggle subtopics using the arrow buttons
- Pan: Drag empty space
- Zoom: Mouse wheel or pinch gesture
- Select: Click on nodes
- Move: Drag nodes (if enabled)
- Expand: Click arrow button on nodes
- Download as Markdown: Creates a hierarchical document
- Download as JSON: Preserves full mind map structure
├── README.md
├── app
│ ├── api
│ │ └── generate
│ │ └── route.ts
│ ├── components
│ │ ├── CreateMindMap.tsx
│ │ ├── CreateMindMapForm.tsx
│ │ ├── Credits.tsx
│ │ ├── Hero.tsx
│ │ ├── LoadingMindMap.tsx
│ │ ├── MindMap.tsx
│ │ ├── MindMapContainer.tsx
│ │ └── MindMapLegend.tsx
│ ├── favicon.ico
│ ├── fonts
│ ├── globals.css
│ ├── hooks
│ │ └── useMindMapData.ts
│ ├── layout.tsx
│ ├── lib
│ │ ├── prompts.ts
│ │ └── schemas.ts
│ └── page.tsx
├── components
│ └── ui
├── components.json
├── lib
│ └── utils.ts
├── next-env.d.ts
├── next.config.mjs
├── package-lock.json
├── package.json
├── postcss.config.mjs
├── public
│ └── demo.mp4
├── tailwind.config.ts
└── tsconfig.json