A mindmap viewer for org-mode files.
For a long time, I’ve been organizing my brain in org-mode files. I also pick up mind mapping apps from time to time to visualize better.
The hierarchical layout of org-files does fit into something that could work as a mindmap though, so I wanted to check if this could be done.
This is the result.
Currently this allows only to view the map. Editting support is planned for a future version.
Launch the app hosted on github: Org-Mind App
- Clone the repository.
- Install and run project.
npm install
npm run dev -- --open
- Hit the
Open file
button and select a file. - Alternatively, hit
Open URL
and select a file online. (It defaults to the planning doc in this project on Github)
Some fairly new (as of this writing at [2023-09-15 Fri]) web techniques have been used, so if it looks wrong, you probably need a more recent chromium based browser.
The app use this to scope styling for elements on the left and right of the map.
@container style(--rol: left) {
.subtopic {
flex-direction: row-reverse;
}
}
The Filesystem web api is used to access files locally on the user’s machine. This will eventually allow saving of the org file on editting.
In order to more easily detect when a re-render is needed for the curved lines to the topics, the ResizeObserver API is used.