Skip to content

Generate mind maps using Ollama local models and interact with them through an intuitive interface.

Notifications You must be signed in to change notification settings

TheMimikyu/mappa

Repository files navigation

Mappa - AI Powered Mind Map Visualization

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

demo.mp4

Features

  • Interactive mind map visualization
  • Node details sidebar
  • Export to Markdown or JSON
  • Local model support via Ollama

Getting Started

  1. Install dependencies:
npm install
  1. 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
  1. Start server:
npm run dev
  1. Access application:

Configuration

Mind map generation prompts are configured in prompts.ts under defaultLocalPrompt variable.

Usage

Creating a Mind Map

  1. Enter a topic in the input field
  2. Wait for the AI to generate the initial mind map
  3. Click nodes to view details in the sidebar
  4. Use the expand button (➡️) to generate subtopics
  5. Toggle subtopics using the arrow buttons

Navigation

  • 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

Exporting

  • Download as Markdown: Creates a hierarchical document
  • Download as JSON: Preserves full mind map structure

Project 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

About

Generate mind maps using Ollama local models and interact with them through an intuitive interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published