JavaScript mind map libraries

Updated Nov 2026

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

Mind Elixir has the most monthly downloads among the dedicated mind map editors in this comparison, at 178.6K.

LibraryMonthly downloadsStarsLast releaseLicense
@antv/g6
1.2M
12.4KMay 2026MIT
GoJS
1.1M
8.5KOct 2026Commercial
Mind Elixir
184.9K
3.2KNov 2026MIT
@logicflow/extension
53.4K
11.8KJul 2026Apache-2.0
SimpleMindMap
19.0K
13.0KJul 2026MIT
jsMind
12.3K
3.8KDec 2025BSD-3-Clause
Markmap
4.7K
13.3KNov 2026MIT
KityMinder Core
1.9K
1.4KAug 2018BSD-3-Clause
Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

Provides a graph visualization framework in JavaScript.

Downloads / mo
1.2M
Stars
12.4K
Last release
5.1.1
License
MIT

Quickstart

From README.md
$ npm install @antv/g6
import { Graph } from '@antv/g6';

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

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

Quickstart

From README.md
$ npm install gojs
<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>

Mind Elixir

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

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.

Limitations

  • 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.

Quickstart

From quick-start.mdx
$ npm install mind-elixir
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)

@logicflow/extension

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

Quickstart

From index.ts
$ npm install @logicflow/core @logicflow/extension
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: [] }]);

SimpleMindMap

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

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.

Limitations

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

Quickstart

From README_MORE_EN.md
$ npm install simple-mind-map
import MindMap from "simple-mind-map";

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

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

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.

Limitations

  • 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.

Quickstart

From README.md
$ npm install jsmind
<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>

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

Downloads / mo
4.7K
Stars
13.3K
Last release
1.1.1
License
MIT

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.

Limitations

  • 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.

Quickstart

From README.md
$ npm install @markmap/parse @markmap/view
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);

Markmap examples

From open-source projects on GitHub
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);
  }

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

Quickstart

From README.md
$ npm install kityminder-core kity
<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>

KityMinder Core examples

From open-source projects on GitHub

FAQ

Mind Elixir suits apps that need a ready mind map editor without a framework. Markmap suits apps that display Markdown outlines as maps. G6 and GoJS suit apps that need mind maps alongside other graph diagrams.

SimpleMindMap is an SVG mind map editor with native outline import. Export and presentation features come from separately registered plugins.

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.

Markmap displays Markdown as an interactive map tree with zooming, panning, and folding. Parsing and SVG generation come from companion packages.

G6 is an open-source graph visualization framework with a first-party mind map layout. Mind Elixir is a dedicated mind map editor for apps that need only mind maps.

For coding agents

Found your mind map library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official