# JavaScript mind map libraries

JavaScript mind map libraries draw a central topic and its branching subtopics as an interactive tree in the browser. A mind map editor keeps the map as a tree of nodes that users add, drag, fold, and rename. These libraries let note-taking apps, planning tools, and AI assistants turn outlines into maps that people can edit.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [@antv/g6](#antv-gsix) | 1.2M | 12.4K | May 2026 | MIT |
| [GoJS](#gojs) | 1.1M | 8.5K | Oct 2026 | Commercial |
| [Mind Elixir](#mind-elixir) | 184.9K | 3.2K | Nov 2026 | MIT |
| [@logicflow/extension](#logicflow-extension) | 53.4K | 11.8K | Jul 2026 | Apache-2.0 |
| [SimpleMindMap](#simplemindmap) | 19.0K | 13.0K | Jul 2026 | MIT |
| [jsMind](#jsmind) | 12.3K | 3.8K | Dec 2025 | BSD-3-Clause |
| [Markmap](#markmap-view) | 4.7K | 13.3K | Nov 2026 | MIT |
| [KityMinder Core](#kityminder-core) | 1.9K | 1.4K | Aug 2018 | BSD-3-Clause |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[Mind Elixir](#mind-elixir) has the most monthly downloads among the dedicated mind map editors in this comparison, at 178.6K.

## Capabilities

| Library | Markdown outline import | SVG export |
| --- | --- | --- |
| [@antv/g6](#antv-gsix) | Undocumented | Undocumented |
| [GoJS](#gojs) | Undocumented | Yes |
| [Mind Elixir](#mind-elixir) | Undocumented | Via plugin |
| [@logicflow/extension](#logicflow-extension) | Undocumented | Via plugin |
| [SimpleMindMap](#simplemindmap) | Yes | Via plugin |
| [jsMind](#jsmind) | No | Undocumented |
| [Markmap](#markmap-view) | Via plugin | Via plugin |
| [KityMinder Core](#kityminder-core) | Yes | Yes |

## Libraries

### @antv/g6

[GitHub](https://github.com/antvis/G6) · [npm](https://www.npmjs.com/package/@antv/g6) · [Docs](https://g6.antv.antgroup.com/)

Provides a graph visualization framework in JavaScript.

- Downloads / mo: 1.2M
- Stars: 12.4K
- Last release: 5.1.1
- License: MIT
- Capabilities: [From the @antv/g6 docs](https://g6.antv.antgroup.com/)

```sh
npm install @antv/g6
```

**Quickstart**

```javascript
import { Graph } from '@antv/g6';

const graph = new Graph({
  container: 'container',
  data: { nodes: [{ id: 'root' }] },
});
await graph.render();

```

From [README.md](https://github.com/antvis/G6/blob/v5/README.md) · [Find projects using @antv/g6 →](https://dashboard.exa.ai/playground/search?q=%40antv/g6%20GitHub%20projects)

### GoJS

[GitHub](https://github.com/NorthwoodsSoftware/GoJS) · [npm](https://www.npmjs.com/package/gojs) · [Docs](http://gojs.net)

Builds interactive diagrams such as trees, flowcharts, org charts, UML, and BPMN.

- Downloads / mo: 1.1M
- Stars: 8.5K
- Last release: 4.0.5
- License: Commercial
- Capabilities: [From the GoJS docs](http://gojs.net)

```sh
npm install gojs
```

**Quickstart**

```html
<div id="myDiagramDiv" style="width:400px; height:200px;"></div>

<script src="https://cdn.jsdelivr.net/npm/gojs"></script>

<script>
  const myDiagram = new go.Diagram('myDiagramDiv', {
    // create a Diagram for the HTML div element
    'undoManager.isEnabled': true // enable undo & redo
  });

  // define a simple Node template
  // the Shape will automatically surround the TextBlock
  myDiagram.nodeTemplate = new go.Node('Auto').add(
    // add a Shape and a TextBlock to this "Auto" Panel
    new go.Shape('RoundedRectangle', { strokeWidth: 0, fill: 'white' }) // no border; default fill is white
      .bind('fill', 'color'), // Shape.fill is bound to Node.data.color
    new go.TextBlock({ margin: 8, font: 'bold 14px sans-serif', stroke: '#333' }) // some room around the text
      .bind('text', 'key') // TextBlock.text is bound to Node.data.key
  );

  // but use the default Link template, by not setting Diagram.linkTemplate

  // create the model data that will be represented by Nodes and Links
  myDiagram.model = new go.GraphLinksModel(
    [
      { key: 'Alpha', color: 'lightblue' },
      { key: 'Beta', color: 'orange' },
      { key: 'Gamma', color: 'lightgreen' },
      { key: 'Delta', color: 'pink' }
    ],
    [
      { from: 'Alpha', to: 'Beta' },
      { from: 'Alpha', to: 'Gamma' },
      { from: 'Beta', to: 'Beta' },
      { from: 'Gamma', to: 'Delta' },
      { from: 'Delta', to: 'Alpha' }
    ]
  );
</script>

```

From [README.md](https://github.com/NorthwoodsSoftware/GoJS/blob/master/README.md) · [Find projects using GoJS →](https://dashboard.exa.ai/playground/search?q=gojs%20GitHub%20projects)

### Mind Elixir

[GitHub](https://github.com/SSShooter/mind-elixir-core) · [npm](https://www.npmjs.com/package/mind-elixir) · [Docs](https://docs.mind-elixir.com/)

Builds editable mind maps with drag-and-drop and operation history.

- Downloads / mo: 184.9K
- Stars: 3.2K
- Last release: 6.0.3
- License: MIT
- Capabilities: [From the Mind Elixir docs](https://docs.mind-elixir.com/)

**Strengths**

- **Edits and moves nodes interactively.** Use built-in node editing and drag-and-drop controls.
- **Restores branch visibility through undo.** Undo collapse and expansion alongside other map operations.

**Watch out for**

- **Markdown rendering needs a parser.** Provide a parser when node topics should render Markdown.
- **Image exports include a watermark.** Disable watermarkEnabled when an exported image should omit the mark.

```sh
npm install mind-elixir
```

**Quickstart**

```javascript
import 'mind-elixir/style.css'

import MindElixir from 'mind-elixir'

let options = {
  el: '#map', // or HTMLDivElement
}

let mind = new MindElixir(options)

// create new map data
const data = MindElixir.new('new topic')
mind.init(data)

```

From [quick-start.mdx](https://github.com/mind-elixir/docs/blob/main/docs/getting-started/quick-start.mdx) · [Find projects using Mind Elixir →](https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20Vue%20React%20projects%20using%20mind-elixir%20for%20hierarchical%20mind%20maps%2C%20editable%20nodes%20and%20interactive%20tree%20visualization&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

### @logicflow/extension

[GitHub](https://github.com/didi/LogicFlow) · [npm](https://www.npmjs.com/package/@logicflow/extension) · [Docs](http://logicflow.cn/)

Adds extensions to LogicFlow, including a mind map plugin.

- Downloads / mo: 53.4K
- Stars: 11.8K
- Last release: 2.3.1
- License: Apache-2.0
- Capabilities: [From the @logicflow/extension docs](http://logicflow.cn/)

```sh
npm install @logicflow/core @logicflow/extension
```

**Quickstart**

```javascript
import LogicFlow from '@logicflow/core';
import MindMap from '@logicflow/extension/lib/mindmap';
import ContextMenu from '@logicflow/extension/lib/components/context-menu';

LogicFlow.use(ContextMenu);
LogicFlow.use(MindMap);
const lf = new LogicFlow({ container: document.getElementById('app') });
lf.render([{ id: 'root', type: 'mark:root', name: 'Root', children: [] }]);

```

From [index.ts](https://github.com/didi/LogicFlow/blob/master/packages/extension/src/mindmap/index.ts) · [Find projects using @logicflow/extension →](https://dashboard.exa.ai/playground/search?q=%40logicflow/extension%20GitHub%20projects)

### SimpleMindMap

[GitHub](https://github.com/wanglin2/mind-map) · [npm](https://www.npmjs.com/package/simple-mind-map) · [Docs](https://wanglin2.github.io/mind-map-docs/)

Builds mind maps and related tree layouts with optional plugins.

- Downloads / mo: 19.0K
- Stars: 13.0K
- Last release: 0.14.0-fix.3
- License: MIT
- Capabilities: [From the SimpleMindMap docs](https://wanglin2.github.io/mind-map-docs/)

**Strengths**

- **Supports several tree layouts.** Choose mind maps, timelines, organization charts, or fishbone diagrams.
- **Adds more than node text.** Attach images, links, notes, and tags to nodes.

**Watch out for**

- **Library receives limited maintenance.** Plan for reduced maintenance of the open-source library.
- **Multiple roots are unsupported.** Represent independent roots as separate maps.

```sh
npm install simple-mind-map
```

**Quickstart**

```javascript
import MindMap from "simple-mind-map";

const mindMap = new MindMap({
  el: document.getElementById("mindMapContainer"),
  data: {
    data: {
      text: "Root Node",
    },
    children: [],
  },
});

```

From [README_MORE_EN.md](https://github.com/wanglin2/mind-map/blob/main/README_MORE_EN.md) · [Find projects using SimpleMindMap →](https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20Vue%20React%20projects%20using%20simple-mind-map%20for%20hierarchical%20mind%20maps%2C%20editable%20nodes%20and%20interactive%20tree%20visualization&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

### jsMind

[GitHub](https://github.com/hizzgdev/jsmind) · [npm](https://www.npmjs.com/package/jsmind) · [Docs](http://hizzgdev.github.io/jsmind/)

Displays mind maps with editable nodes and branch controls.

- Downloads / mo: 12.3K
- Stars: 3.8K
- Last release: 0.9.1
- License: BSD-3-Clause
- Capabilities: [From the jsMind docs](http://hizzgdev.github.io/jsmind/)

**Strengths**

- **Expands branches to a depth.** Use expand_to_depth to show the desired levels.
- **Edits nodes through an API.** Use begin_edit to switch a node into edit mode.

**Watch out for**

- **Duplicate node IDs are ignored.** Assign a unique ID to each node before loading data.
- **Screenshot needs dom-to-image.** Install the extra dependency before enabling the screenshot plugin.

```sh
npm install jsmind
```

**Quickstart**

```javascript
<html>
    <head>
        <link
            type="text/css"
            rel="stylesheet"
            href="https://cdn.jsdelivr.net/npm/jsmind@0.9.1/style/jsmind.css"
        />
        <script
            type="text/javascript"
            src="https://cdn.jsdelivr.net/npm/jsmind@0.9.1/es6/jsmind.js"
        ></script>
    </head>
    <body>
        <div id="jsmind_container"></div>

        <script type="text/javascript">
            var mind = {
                meta: {
                    name: 'jsMind-demo-tree',
                    author: 'hizzgdev@163.com',
                    version: '1.0',
                },
                // 3 data formats were supported ...
                // see documents for more information
                format: 'node_tree',
                data: { id: 'root', topic: 'jsMind' },
            };
            var options = {
                container: 'jsmind_container',
                theme: 'orange',
                editable: true,
            };
            var jm = new jsMind(options);
            jm.show(mind);
        </script>
    </body>
</html>

```

From [README.md](https://github.com/hizzgdev/jsmind/blob/master/README.md) · [Find projects using jsMind →](https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20Vue%20React%20projects%20using%20jsmind%20for%20hierarchical%20mind%20maps%2C%20editable%20nodes%20and%20interactive%20tree%20visualization&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

### Markmap

[GitHub](https://github.com/markmap/markmap) · [npm](https://www.npmjs.com/package/@markmap/view) · [Docs](https://markmap.js.org/)

Displays interactive map trees with zooming, panning, and folding.

- Downloads / mo: 4.7K
- Stars: 13.3K
- Last release: 1.1.1
- License: MIT
- Capabilities: [From the Markmap docs](https://markmap.js.org/)

**Strengths**

- **Retains folds when data changes.** Call setTree to refresh content without reopening existing folded branches.
- **Customizes click and pan gestures.** Combine custom click handlers with the supplied panZoomGestures.

**Watch out for**

- **Image exports need companion packages.** Use @markmap/render for SVG and @markmap/canvas for PNG.
- **Canvas lacks an accessibility tree.** Prefer SVG when assistive technology support matters.

```sh
npm install @markmap/parse @markmap/view
```

**markmap/markmap-vscode** (304 stars)

[markmap/markmap-vscode](https://github.com/markmap/markmap-vscode) 

```javascript
toggleNode(recursive) {
    const mm = view.mm;
    if (!mm || !active) return;
    if (!recursive) mm.toggle(active.id);
    else if (mm.foldedIds.has(active.id)) mm.expandAll(active.id);
    else mm.foldAll(active.id);
  }

```

[src/webview/main.ts](https://github.com/markmap/markmap-vscode/blob/cf87f4e906cc5f7d0783c2ffb2b11494bad847ec/src/webview/main.ts#L93-L99) · [More projects using Markmap →](https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20Vue%20React%20projects%20using%20%40markmap/view%20for%20hierarchical%20mind%20maps%2C%20editable%20nodes%20and%20interactive%20tree%20visualization&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```javascript
import { parse } from '@markmap/parse';
import { Markmap } from '@markmap/view';

const { root } = parse('# Trip\n\n## Before\n\n## During');
Markmap.create(document.querySelector('svg'), root);

```

From [README.md](https://github.com/markmap/markmap/blob/master/README.md)

### KityMinder Core

[GitHub](https://github.com/fex-team/kityminder-core) · [npm](https://www.npmjs.com/package/kityminder-core)

Implements the core of the KityMinder mind map editor.

- Downloads / mo: 1.9K
- Stars: 1.4K
- Last release: 1.4.50
- License: BSD-3-Clause
- Capabilities: [From the KityMinder Core docs](https://github.com/fex-team/kityminder-core)

```sh
npm install kityminder-core kity
```

**fex-team/kityminder-editor** (3.2K stars)

[fex-team/kityminder-editor](https://github.com/fex-team/kityminder-editor) 

```html
function NodeRuntime() {
        var runtime = this;
        var minder = this.minder;
        var hotbox = this.hotbox;
        var fsm = this.fsm;

        var main = hotbox.state('main');

        var buttons = [
            '前移:Alt+Up:ArrangeUp',
            '下级:Tab|Insert:AppendChildNode',
            '同级:Enter:AppendSiblingNode',
            '后移:Alt+Down:ArrangeDown',
            '删除:Delete|Backspace:RemoveNode',
            '上级:Shift+Tab|Shift+Insert:AppendParentNode'
            //'全选:Ctrl+A:SelectAll'
        ];

        var AppendLock = 0;

        buttons.forEach(function(button) {
            var parts = button.split(':');
            var label = parts.shift();
            var key = parts.shift();
            var command = parts.shift();
            main.button({
                position: 'ring',
                label: label,
                key: key,
                action: function() {
                    if (command.indexOf('Append') === 0) {
                        AppendLock++;
                        minder.execCommand(command, '分支主题');

                        // provide in input runtime
                        function afterAppend () {
                            if (!--AppendLock) {
                                runtime.editText();
                            }
                            minder.off('layoutallfinish', afterAppend);
                        }
                        minder.on('layoutallfinish', afterAppend);
                    } else {
                        minder.execCommand(command);
                        fsm.jump('normal', 'command-executed');
                    }
                },
                enable: function() {
                    return minder.queryCommandState(command) != -1;
                }
            });
        });

        main.button({
            position: 'bottom',
            label: '导入节点',
            key: 'Alt + V',
            enable: function() {
                var selectedNodes = minder.getSelectedNodes();
                return selectedNodes.length == 1;
            },
            action: importNodeData,
            next: 'idle'
        });

        main.button({
            position: 'bottom',
            label: '导出节点',
            key: 'Alt + C',
            enable: function() {
                var selectedNodes = minder.getSelectedNodes();
                return selectedNodes.length == 1;
            },
            action: exportNodeData,
            next: 'idle'
        });

        function importNodeData() {
            minder.fire('importNodeData');
        }

        function exportNodeData() {
            minder.fire('exportNodeData');
        }

        //main.button({
        //    position: 'ring',
        //    key: '/',
        //    action: function(){
        //        if (!minder.queryCommandState('expand')) {
        //            minder.execCommand('expand');
        //        } else if (!minder.queryCommandState('collapse')) {
        //            minder.execCommand('collapse');
        //        }
        //    },
        //    enable: function() {
        //        return minder.queryCommandState('expand') != -1 || minder.queryCommandState('collapse') != -1;
        //    },
        //    beforeShow: function() {
        //        if (!minder.queryCommandState('expand')) {
        //            this.$button.children[0].innerHTML = '展开';
        //        } else {
        //            this.$button.children[0].innerHTML = '收起';
        //        }
        //    }
        //})
    }

```

[src/runtime/node.js](https://github.com/fex-team/kityminder-editor/blob/75aa71469b1a783ce50fbc37eed962fb6753b168/src/runtime/node.js#L3-L109) · [More projects using KityMinder Core →](https://dashboard.exa.ai/playground/search?q=kityminder-core%20GitHub%20projects)

**Quickstart**

```html
<div id="minder-container"></div>
<script type="text/javascript" src="kityminder.core.min.js"></script>
<script type="text/javascript">
var minder = new kityminder.Minder({
	renderTo: '#minder-container'
});
</script>

```

From [README.md](https://github.com/fex-team/kityminder-core/blob/dev/README.md)

## FAQ

### Which JavaScript mind map library should I use?

[Mind Elixir](#mind-elixir) suits apps that need a ready mind map editor without a framework. [Markmap](#markmap-view) suits apps that display Markdown outlines as maps. [G6](#antv-gsix) and [GoJS](#gojs) suit apps that need mind maps alongside other graph diagrams.

### What is SimpleMindMap?

[SimpleMindMap](#simplemindmap) is an SVG mind map editor with native outline import. Export and presentation features come from separately registered plugins.

### What is GoJS?

[GoJS](#gojs) is a commercial diagramming SDK for trees, flowcharts, and org charts. It ships a tree layout and an interactive mind map sample, while the full editor UI is application code.

### What is Markmap?

[Markmap](#markmap-view) displays Markdown as an interactive map tree with zooming, panning, and folding. Parsing and SVG generation come from companion packages.

### What is a good GoJS alternative?

[G6](#antv-gsix) is an open-source graph visualization framework with a first-party mind map layout. [Mind Elixir](#mind-elixir) is a dedicated mind map editor for apps that need only mind maps.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best JavaScript mind map libraries jsMind Mind Elixir SimpleMindMap Markmap code examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
