Interactive visualization of how notable people think, speak, and behave — powered by AI.
Enter any person's name (exists in wikipedia) and get a rich cognitive architecture map: themed nodes, weighted connections, life-phase trends, behavioural patterns, and more.
To simplyly view generated sample output, you can view here:
If you are interested in top 5 front tier llm's cognitive architecture and thinking patterns, view here:
demo.mp4
There are 3 main reasons I created this project:
Recent obsession of studying how transformer LLMs think and reason — understanding the latent structures that emerge when models process information about real people.
I used to keep an Excel file to list all the people who inspire me. I call them Great Inspirers. Now with AI, I can visualize how they think and behave.
For you, who share the same interest. Enjoy!
- Generate cognitive maps for any notable person via Wikipedia + LLM
- Wikipedia is only for validaton to verify the person is real
- Cognative architecture and patterns are pulled from the latent space via prompt call to the llm model
- Interactive force-directed graph with draggable nodes
- Cognitive architecture decision tree
- Thinking, speaking, and behaviour pattern analysis with samples, impact, outcomes, and audience influence
- Life-phase timeline animation
- Light and dark mode
- Export to standalone HTML or JSON
- Import/export person data for sharing
- Client: React + TypeScript + Vite
- Server: Node.js + Express + TypeScript
- Database: SQLite (via better-sqlite3)
- AI: OpenAI API (structured output)
- Data: Wikipedia API for biographical summaries
- Node.js 18+
- npm 9+
- An OpenAI API key or a local model via Ollama
# Clone the repo
git clone https://github.com/yinghe1/mindmap.git
cd mindmap
# Install dependencies (workspaces)
npm install
# Set up environment variables
cp .env.example .env
# Edit server/.env — see Environment Variables below
# Run in development mode (starts both server and client)
npm run devThe app will be available at http://localhost:5173 (client) with the API server on http://localhost:3000.
Create server/.env with the following:
| Variable | Required | Default | Description |
|---|---|---|---|
OPENAI_API_KEY |
Yes (unless USE_LOCAL=true) |
— | Your OpenAI API key |
USE_LOCAL |
No | false |
Set to true to use a local Ollama model instead of OpenAI |
LOCAL_MODEL |
No | llama3 |
Ollama model name to use when USE_LOCAL=true (e.g. gemma4:26b, mistral) |
- Install Ollama and pull your model:
ollama pull gemma4:26b
- Set in
server/.env:USE_LOCAL=true LOCAL_MODEL=gemma4:26b
- Start Ollama, then run
npm run devas normal. No OpenAI key required.
mindmap/
├── client/ # React frontend (Vite)
│ └── src/
│ ├── api/ # API client
│ ├── components/ # UI components
│ ├── design-system/ # Reusable design tokens & components
│ ├── hooks/ # Custom React hooks
│ ├── store/ # Zustand state management
│ └── utils/ # Utilities (HTML export, etc.)
├── server/ # Express backend
│ └── src/
│ ├── prompts/ # LLM prompt & schema
│ ├── routes/ # API routes
│ ├── services/ # Wikipedia, Anthropic, DB services
│ └── types/ # TypeScript types
└── package.json # Workspace root
- Enter a person's name (e.g., "Mark Twain") and click Generate
- Explore the interactive graph — drag nodes, click for details
- Use the timeline slider to see how themes evolved across life phases
- Click Patterns to see detailed thinking/speaking/behaviour analysis
- Toggle between dark and light mode
- Export as HTML for a standalone shareable page, or as JSON for data
MIT