Getting started
Mind maps written in markdown and explored like a solar system.
- Real-markdown authoring: headers and bullet lists nest the tree.
- YAML alternative for app-generated maps.
- Explorable: zoom into a node to enter it and out to leave, flick the orbit to spin it, pan and zoom the overview. Every move is animated so you never lose your place.
- Readable at any size: labels stay crisp, sized for reading and in high contrast.
- Fourteen themes, from pastel paper and a field of stars to flat, Material and liquid glass, each restylable with CSS custom properties, and Material themes built from any color.
- First-class pictures, live photos, videos, sounds, embeds and multi-line notes per node: pictures, videos and sounds open over the whole window, to zoom into and to play (a live photo plays its motion over its picture), and the rest in a built-in detail sheet, unless you handle
onActionyourself. - Dates on ideas, a day or a day and a time: small on each planet (“Today”, “Fri”, “Nov 20”), in full in the detail sheet and the list, and in an attention color once past, unless the idea is done.
- Files on ideas, any file: a paperclip on the planet with how many, and a list in the detail sheet with each one’s kind and size, which an app opens its own way (
file-open). - Built on the map: a + in the orbit adds ideas, typed right inside their planet, and nodes can be renamed, dragged and saved back as markdown.
- Ready for AI: tools any model calls to read a map and change it, for Anthropic, OpenAI, Gemini, MCP and the providers that follow OpenAI’s API, with every change animated on the map.
- Keyboard and screen-reader friendly: one tab stop, arrow-key navigation, a list view of the whole map, and announcements as you move, in English, Spanish, Brazilian Portuguese or any language you add.
- Framework-agnostic core with no dependencies; React wrapper at
@restless-dreams/orbit/react;markedextension at@restless-dreams/orbit/marked. - Made for coding agents too: the docs in one file (
llms-full.txt), an agent skill, validation as JSON, and problems reported with the fix.
Install
npm install @restless-dreams/orbitReact and marked are optional peers, needed only for their integrations: npm install react react-dom (React 18 or 19) for @restless-dreams/orbit/react, and npm install marked (marked 12 to 18) for @restless-dreams/orbit/marked. The rest of Orbit, the command line included, needs neither.
Quick start
import { createOrbitMap } from '@restless-dreams/orbit';
const map = createOrbitMap(document.getElementById('map')!, `# ๐ Project
## Research
## Build
## Launch`);
map.on('focus-change', ({ node }) => console.log('Now looking at', node.text));The map fills its container, so give the container a size.
React:
import { OrbitMindMap } from '@restless-dreams/orbit/react';
export const ProjectMap = ({ markdown }: { markdown: string }) => {
return (
<div style={{ height: 480 }}>
<OrbitMindMap source={markdown} onNodeClick={(node) => console.log(node.text)} />
</div>
);
};Without a build step, with the <orbit-map> element:
<script type="module">
import { defineOrbitMapElement } from 'https://cdn.jsdelivr.net/npm/@restless-dreams/orbit/+esm';
defineOrbitMapElement();
</script>
<orbit-map height="420">
# ๐ Project
## Research <!-- orbit status: active -->
## Build
</orbit-map>In a markdown pipeline, with marked:
import { Marked } from 'marked';
import { orbitMarked, hydrateOrbitBlocks } from '@restless-dreams/orbit/marked';
const markdown = new Marked(orbitMarked());
container.innerHTML = await markdown.parse(article); // orbit fences become map placeholders
hydrateOrbitBlocks(container); // turns them into live mapsWithout a browser, renderToSVGString(markdown, { width: 1200, height: 800 }) draws a standalone SVG, for static sites, emails and print.
On paper, renderPrintLayout(element, markdown) lays a map out for print or PDF: the map as a picture, then every idea with its note. Maps shared as web pages print that way.
The guide covers every option, event and method, and Recipes shows Orbit in Vue, Svelte, Astro, Next.js and static sites.
Write a map
Every heading and every list item is a node, the text under it is its note, and <!-- orbit โฆ --> comments set attributes:
---
title: Product roadmap
theme: night
---
# ๐ Product roadmap
## Research <!-- orbit status: done -->
Six weeks of interviews before we commit to scope.
- [x] User interviews
- Competitor teardown #market
## Build <!-- orbit status: active -->
### Frontend
- [/] App shell
- Offline sync
### Backend
## Launch
Maps can be YAML too, for the ones programs write. The map format has every rule, attribute, option and diagnostic, and npx @restless-dreams/orbit example prints a map with the main features.
Themes

Pick one with the theme option, the theme attribute or theme: in the frontmatter. Every color, size and finish is a CSS custom property your page can set, and materialTheme('#0B57D0') builds a Material theme from any color. See Theming.
Command line
npx @restless-dreams/orbit validate my-map.md # every problem as my-map.md:line: severity: message [code]
npx @restless-dreams/orbit validate --json my-map.md # the same as JSON, for scripts and coding agents
npx @restless-dreams/orbit validate --tree my-map.md # the map as Orbit reads it, with each node's id
npx @restless-dreams/orbit render my-map.md --out my-map.svg # draw a map to SVG (--view all for the whole map)
npx @restless-dreams/orbit export --html my-map.md --out my-map.html # one web page to explore, present or print the map, offline
npx @restless-dreams/orbit convert --to yaml my-map.md # markdown โ YAML (either direction)
npx @restless-dreams/orbit convert --to md Plan.xmind --out plan.md # a map from XMind, FreeMind, Freeplane or OPML (--to opml writes OPML)
npx @restless-dreams/orbit example > my-map.md # a map with the main features (--yaml for YAML)AI in your app
createMapTools(map) gives a language model tools to read the map and change it, in the shape your provider’s API takes. Its changes animate on the map, and a call it gets wrong changes nothing and says what to send instead:
import { createMapTools } from '@restless-dreams/orbit';
const tools = createMapTools(map); // a map on screen, or a document on a server
tools.for('anthropic'); // the tools for the model: also 'openai', 'openai-chat' and 'gemini'
tools.run('add_nodes', { parent_id: 'research', outline: '- Interviews\n- Survey' }); // each call it makes: { ok, text, changed }Map tools for AI has the whole loop for each provider.
Coding agents
Point your agent at node_modules/@restless-dreams/orbit/llms-full.txt, the docs in one file, or install the skill for Codex, Claude Code, Kimi Code and other agents with npx skills add restless-dreams/orbit. Coding agents has the details.
Browsers
Orbit is made for current browsers, and draws in older ones down to Chromium 99, which some phones’ WebViews still run, with plainer versions of the few effects that need newer CSS (which ones).
Compatibility
Orbit follows semantic versioning: while it’s 0.x, a minor may change what maps, options or code rely on, and announces it, deprecating what it can. Maps have a format version of their own, and every version reads the maps earlier ones wrote. Compatibility lists what’s public and how changes are made.
Contributing
With Bun installed, bun install, then bun run verify runs the linter, the type checks, the tests and the build. CONTRIBUTING.md has the rest, RELEASE.md how releases are made, and docs/architecture.md how Orbit is put together.
License
MIT. Orbit includes the hyphenation patterns of the hyph-utf8 package for American English (Copyright (C) 1990, 2004, 2005 Gerard D.C. Kuiken; copying and distribution are permitted in any medium without royalty provided the copyright notice and this notice are preserved), Spanish (Copyright (C) 1993, 1997 Javier Bezos, 2001-2019 Javier Bezos, CervanTeX; MIT license) and Portuguese (Copyright (C) 1987, 1994, 1996, 2015 Pedro J. de Rezende, 1996, 2015 J. Joao Dias Almeida, 2024 Leonardo Araujo and Aline Benevides; BSD 3-clause license), with their notices in src/core/hyphenation/ and in the built code that carries them.