h-m-m is a single PHP script that edits mind maps with vim-style keys and exports to HTML
h-m-m, or Hackers Mind Map, is a simple, fast, keyboard-centric terminal-based tool for working with mind maps.
At a glance
- What is it?
- h-m-m, short for Hackers Mind Map, runs in a terminal and is driven entirely from the keyboard. Its README is mostly a key binding table and a config file reference, which tells you what to expect: a lot of control, little hand-holding.
- Who is it for?
- h-m-m fits someone who thinks in vim keys, lives in a terminal, and wants outlines they can fold, rank, search and export to HTML without touching a mouse. It does not fit anyone who wants a graphical canvas, drag handles or a packaged installer with documented steps, since the README shows none of those.
- Can I use it commercially?
- Yes, with conditions. GPL-3.0 is a copyleft licence: if you distribute software that includes it, you must release that software's source code under the same licence. Running it internally without distributing it does not trigger that obligation.
- Is it still maintained?
- Yes. The repository last received commits 143 days ago.
- What is it written in?
- Mainly PHP, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 26, 2026, and from our analysis. They are not legal advice.
Star history
- nadrad/h-m-m2,303 ★ · +7
| Repository | 2026-10-14 | 2026-11-26 |
|---|---|---|
| nadrad/h-m-m | 2.3k | 2.3k |
7 Stars in the last 43 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Editing a node feels like editing text in vim
The README opens with a pronunciation note: h-m-m sounds like the interjection hmm. It calls the tool simple, fast, keyboard-centric and terminal-based, and the rest of the document shows how literal that is. A node is created, edited, copied, cut and pasted entirely with single keys.
`o` or `Enter` creates a sibling of the active node, and `O` or `Tab` creates a child. `e`, `i` or `a` edit the active node, while `E`, `I` or `A` edit it and ignore the text that is already there. The same letters appear in the default bindings as `edit_node_append` and `edit_node_replace`, so the upper-case forms are the replace variants.
Undo is `u`. The configuration has a `max_undo_steps` setting that defaults to 24, so the history is bounded: after 24 changes, the earliest ones can no longer be reversed. If you restructure a large map in one sitting, save with `s` before you begin.
Because `Enter` creates a sibling here, the key that usually means confirm in other tools does something structural in the map. Inside the text editor, `Enter` finishes the edit, and the README's own comment on that key is an invitation to guess. `Esc` cancels editing instead, so keep the two apart: pressing `Esc` throws away the change you just typed, while `Enter` keeps it.
Yank, delete and paste each have a node form and a descendants form
Clipboard commands come in pairs. `y` yanks the active node and its descendants, while `Y` yanks only the descendants. `d` deletes the active node and its descendants into the clipboard, `D` does the same to the descendants alone, and `Delete` removes the node and its descendants without putting anything in the clipboard.
Pasting mirrors that. `p` pastes as descendants of the active node and `P` pastes as siblings. `Ctrl+p` appends the clipboard text at the end of the active node's title, which is the way to build a long title from a copied phrase.
Where the clipboard lives is set by `clipboard = os` in the defaults, with `clipboard_file = /tmp/h-m-m` as the file path and two empty settings, `clipboard_in_command` and `clipboard_out_command`, for custom commands. The Dockerfile installs `xclip`, `xsel` and `wl-clipboard`, which hints at the helpers the tool can call on X11 and Wayland. On a headless server with none of them, expect the system clipboard to be unavailable.
In practice the pairing is useful for restructuring. Cut a branch with `d`, move to the new parent, and paste with `p`, or yank with `y` to duplicate a branch before editing the copy. The README describes no multi-level clipboard, so a second cut replaces the first.
Marks turn a map into a checklist or a ranked list
A set of keys changes the beginning of a node's title. `t` cycles between the symbols for done, not done and nothing, which default to the values of `symbol1` and `symbol2` in the config and can be swapped for your own symbols. `#` adds or removes sequential numbers at the start of the titles of a node and its siblings.
Ranking uses four keys: `=` increases the positive ranking, `+` decreases it, `-` increases the negative ranking, and `_` decreases it. The odd pairing of `=` for increasing and `+` for decreasing is how the README lists them, so check the in-app help with `?` if your fingers expect the opposite. `alt+up` adds a star and `alt+down` removes one.
`H` toggles a hidden flag on a node, and `ctrl+h` hides or shows hidden nodes. The README does not say whether hidden nodes are written to the saved file or skipped from the HTML export, so test that before you hide anything you care about.
Navigation, folding and focus keep a large map readable
Movement uses `h`, `j`, `k` and `l` or the arrow keys. `h` activates the parent of the previously active node and `l` activates the middle child, which means going right lands on a child chosen by position, not the first one. `j` and `k` move among siblings and fall back to the nearest lower or higher node when no sibling exists. `J` and `K` move the current node itself among its siblings, and `T` sorts them.
Folding has more keys than any other group. `Space` toggles the active node, `v` collapses everything except first-level nodes, `V` collapses the children of the active node, and `b` expands everything. The digits `1` to `9` collapse the nth level and expand those before it. `f` focuses by collapsing everything but the ancestors and descendants of the active node, and `F` locks that focus as the active node changes. The README suggests trying `F` together with the center lock, `C`, which keeps the active node in the middle of the screen.
The view itself scales with `w` and `W` for node width and `z` and `Z` for line spacing.
Two more keys help with orientation. `~` or `m` jumps to the root element, `g` goes to the highest element and `G` to the lowest. `|` enables or disables aligned levels, the same behaviour as the `align_levels` setting, and `r` collapses first-level items except the one holding the active node.
Configuration is a flat file, and colours are raw escape codes
The settings listed in the README are `max_parent_node_width = 25`, `max_leaf_node_width = 55`, `line_spacing = 1`, `align_levels = 0`, `initial_depth = 1`, `center_lock = false`, `focus_lock = false`, `max_undo_steps = 24`, and `auto_save = false`. Two colour settings, `active_node_color` and `message_color`, are written as ASCII escape sequences such as `\033[38;5;0m\033[48;5;172m\033[1m`, so changing a colour means writing terminal escape codes by hand.
The README also lists `post_export_command` with an empty default. It is the hook for running a command after an export, but the README gives no example of what to put there.
Key bindings are redefined with a `bind x = command` syntax, for example `bind a = edit_node_append` or `bind ctrl_c = quit`. According to the README, everything except the text editor bindings can be changed in your config file. The README stops partway through its default bind list, so the remaining command names have to be read from the program itself. Note that `auto_save` is off by default, which means a quit without `s` loses work, and `Q` quits ignoring changes on purpose.
Export to HTML or clipboard text, and open links with xdg-open
Saving uses `s`, which reuses the previous file name or asks for one, and `S`, which always asks for a new name. Two keys export. `x` produces an HTML file, and `X` places a text map into the clipboard. `q` quits only if changes were already saved, while `Q` quits and ignores them.
`Ctrl+o` opens the active node as a file or URL using `xdg-open`. That is a Linux desktop command. The README names no equivalent for macOS or Windows, so on those systems the link key depends on you providing something that answers to that name, and the README does not say what happens if `xdg-open` is missing.
The search keys are `/` or `Ctrl+f` to search for a phrase, then `n` and `N` for the next and previous result. The README gives no detail about case sensitivity or pattern syntax, so treat it as plain phrase search until you try otherwise. `?` shows the key bindings inside the application, which is the fastest way to check anything in this article.
Inside the text editor, the cursor keys follow shell conventions: `Ctrl-k` deletes everything to the right of the cursor, `Ctrl-u` deletes everything to the left, `Ctrl+w` deletes the previous word, and `Ctrl+v` pastes. The README notes that these editor bindings are the one group you cannot rebind.
A PHP script, a Dockerfile and a Nix flake, with no release to download
The primary language is PHP and the license is GPL-3.0. The top-level entries are `.editorconfig`, `Dockerfile`, `LICENSE`, `default.nix`, `flake.lock`, `flake.nix`, the script `h-m-m`, `install.sh`, `readme.md` and `screenshot.png`. The repository has no GitHub releases, so you get the code from the repository itself. The README has no install section, so what `install.sh` does is something you read in the file before running it.
The Dockerfile builds on `php:cli`, runs `apt-get install` for `libonig-dev`, `xclip`, `xsel` and `wl-clipboard`, adds the extension with `docker-php-ext-install mbstring`, copies `./h-m-m` into `/app`, and sets `ENTRYPOINT ["./h-m-m"]`. The `mbstring` line tells you the script needs PHP's multibyte string support to handle node titles in languages beyond ASCII.
The last push was on 6 July 2026. The Nix files suggest a declarative install on NixOS, but the README does not describe it.
Editorial conclusion
h-m-m fits someone who thinks in vim keys, lives in a terminal, and wants outlines they can fold, rank, search and export to HTML without touching a mouse. It does not fit anyone who wants a graphical canvas, drag handles or a packaged installer with documented steps, since the README shows none of those. Before adopting it, run the Docker image or the h-m-m script once, press `?` to see the bindings, and confirm that your clipboard and xdg-open setup works, because both are configured by you.
Frequently asked questions
What language is h-m-m written in?
h-m-m is written in PHP and runs in a terminal as a single script named h-m-m. The Dockerfile builds on php:cli and installs the mbstring extension.
Can I change the key bindings in h-m-m?
Yes. The README says all bindings except the text editor ones can be changed in your config file, using a bind x = command syntax such as bind a = edit_node_append.
How do I export a mind map from h-m-m?
Press x to export as an HTML file or X to put a text map in the clipboard. The post_export_command setting can run a command afterwards.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/nadrad-h-m-m)Star history chart for your README
[](https://hysenlabs.com/projects/nadrad-h-m-m)Was this useful?