One graph,
every editor
a view.
Code editors, note apps and database tools are separate worlds. Moonkale opens folders and databases and shows everything as one graph: files, functions, wiki-links, tables and relations are nodes and edges. The code editor, the rich-text editor, the table, the terminal and the graph are views on it, and so are the language servers and the AI agents.
- Rust · Dioxus
- No Electron
- Linux, web, Android
- MIT licence
- Working prototype
Click anything, it opens.
A folder and a database, indexed into one graph. Click a node and it opens in the editor that fits it; click a name or a link inside an editor and the graph follows. Then ask the agent: it queries the same graph, and edits only when you allow it.
A mock, drawn in your browser: seven nodes and one scripted agent exchange. The app indexes real folders with tree-sitter and language servers, draws the graph on the GPU, and talks to a real model.
Four ideas, one editor.
What makes Moonkale different from the editors you already use, in the words of the vault's Getting Started.
- 01
Folders and databases are the same kind of thing
You open sources: a folder, a vault, a SQLite or DuckDB file, a directory of CSVs, a graph database, a folder on another machine over SSH. Several at once, side by side, all feeding the same graph.
- 02
The graph is the point, not a feature
Files, the functions and structs inside them, wiki-links between notes, tables of a database: one connected graph, GPU-drawn, fine at 100 000 nodes. Local shows two hops around the file you are in. Click a node and it opens.
- 03
Your vault stays your vault
Notes are plain Markdown with Obsidian's
[[wiki-links]], front matter and KaTeX. Open the folder in Obsidian tomorrow; nothing changed behind your back. What Moonkale adds lives in one hidden folder you can delete. - 04
Everything is an extension; the agent is part of the app
The editors, the terminal, git and the graph are extensions without privileged access, each one can be switched off. The agent uses your sources through the same interface as you, and edits only after you click Allow.
Your habits, kept.
If you use VS Code for code and Obsidian for notes, most of what you know carries over. Settings → Keybindings has a VS Code and an Obsidian layout, and your own overrides stay on top.
| in VS Code | in Moonkale |
|---|---|
| Ctrl+Shift+P, Ctrl+P | the same keys, the same idea; or pick the VS Code layout outright |
| the editor | CodeMirror with your language servers (rust-analyzer, pyright, clangd…), or a Rust-built editor |
| Source Control | Git: stage, commit, diffs, and the history as a graph |
| Remote-SSH | Open Remote Folder: terminal, git and language servers run on the other machine |
| the integrated terminal | the same, and a path:line in its output opens the file |
| in Obsidian | in Moonkale |
|---|---|
| live preview | Rich mode (WYSIWYG) or Source mode, one click apart |
| [[links]] and backlinks | the same links; unresolved ones are dashed, and a click creates the note |
| the graph view | the Graph panel, with the code and the databases in it too |
| front matter | a Properties bar above the note; the source stays untouched |
| MathJax | KaTeX, inline and block, with your own macros; a Typst preview |
Rust, not Electron.
Most editors of the last decade, VS Code and Obsidian among them, are Electron apps: a web page with its own copy of Chrome and Node.js. Moonkale is written in Rust with Dioxus, on a newer stack: lighter to ship, with memory-safe code underneath and less to attack.
| a typical Electron editor | Moonkale | |
|---|---|---|
| What ships with the app | a complete Chromium browser and Node.js, in every app you install | no browser and no Node.js: the operating system's own webview (WebKitGTK, WebView2, WKWebView, Android WebView) |
| Where the logic runs | JavaScript, in Node and in the page | a native Rust process: indexing, language servers, git, search, history, databases and the agent |
| Memory safety | a JavaScript runtime plus native add-ons in C and C++ | Rust's guarantees for everything that thinks; JavaScript only draws the text editors and the terminal |
| Extensions | Node modules, with the same access to your machine as the editor | WebAssembly modules (wasmtime on the desktop); the built-in editors are extensions with no privileged access |
| Platforms | desktop; the web and phones are separate products | one Rust codebase for the desktop, the browser (as wasm) and Android |
Honest about what is left
Moonkale is still a webview app today: about 3 MB of JavaScript draws the code editor, the rich-text editor and the terminal, and server mode is for a trusted local network only. Each piece has a Rust replacement planned, in this order (the vault's JavaScript inventory):
- 01 Terminal xterm.js → alacritty_terminal and a Rust grid next
- 02 Code editor CodeMirror → the pure-Rust editor, already opt-in in progress
- 03 Rich Markdown Milkdown → a Rust block editor the long one
- 04 Renderer the webview → dioxus-native: Rust drawing straight to the GPU later
Twelve things it does now.
Tested on Linux, on the desktop and in the browser, and on an Android phone. Area by area, with what is still missing: the Status page.
- Sources
Folders, local or over SSH
A Sources panel that follows changes on disk, quick open, a command palette, find and replace across files.
- Code
Two code editors
CodeMirror with language servers (diagnostics, hover, go to definition, completion, rename), and a pure-Rust editor.
- Notes
Rich Markdown
WYSIWYG, with wiki-links, backlinks, KaTeX formulas and front matter, plus a Typst preview.
- Graph
2D and 3D, on the GPU
A folder's files, links and symbols, usable at 100 000 nodes; in 3D, one plane per kind of thing.
- Data
Databases as tables and graphs
SQLite, DuckDB (folders of CSV and Parquet too), Turso, redb, RocksDB, HelixDB, LadybugDB. SQL tables can be edited, with conflicts checked, and plotted.
- Terminal
Stack traces become graphs
A terminal in the folder, on the remote machine for a remote folder; traces in it turn into clickable graphs.
- Git
History as a graph
Changes, diffs, staging, commits, and the history drawn as a graph.
- History
Every edit, restorable
A record of every edit, yours, an agent's or git's, with restore.
- Search
By keyword and by meaning
Keyword search always; search by meaning when an embedding model is configured.
- Agents
LLM agents behind an approval gate
Claude Code on a subscription, Anthropic, OpenAI-compatible or Ollama; they read, search, query, and edit only when you allow it. An MCP endpoint for outside agents.
- Extensions
WebAssembly extensions
Built-in editors are extensions too; a node-based flow editor with a Lux.jl block library (off by default).
- Platforms
Desktop, browser, phone
One Rust codebase with Dioxus; moonkale-server serves the same app to a browser or an Android phone.
A diagram stays a diagram.
Moonkale exists for Lenticulum.jl, whose models are
factor graphs: undirected, cyclic, with channels whose direction is chosen at query time. A
page of connect(…) calls is to such a model what raw RDF is to a graph. The file
on disk is for git, diffs and agents; the editor is the interface.
- The long view is code as a graph in a database: many languages parsed side by side, proofs as annotations, the code graph meeting the knowledge graph (North Star)
- Sophia is already Moonkale's code-graph cache: the files stay the truth, and a definition has the same content id in both tools
- Julia lives outside the core, in its own repository: flow libraries for Lux, ModelingToolkit and RxInfer, off by default
A prototype, used daily.
Version 0.1: its author uses it every day, and it is rough at the edges. Try it, and please don't rely on it yet.
Solid today
- Opening folders and databases, the graph, the rich editor with wiki-links and KaTeX
- CodeMirror with language servers, git, the change history, remote folders over SSH
- The agent, with several agents and sessions at once, their history kept in the folder
- Tested on Linux, desktop and browser, and on one Android phone; used daily by its author
Known limits
- A prototype: settings, file formats, the extension API and the package layout will change, without migration paths
- Windows and macOS builds are produced, but unsigned and untested
- Server mode still has security flaws: use it on a local network only
- No debugger, no extension marketplace, no sync of its own; language-server features only in the CodeMirror editor
- Graph and key-value databases are read-only
Planned
- A library with a small core: extensions, sources and server routes added without editing the shell
- Postgres, TypeDB, FalkorDB and Redis as sources; projects that combine sources and link across them
- Shared editing on one server: accounts, presence, merged edits; comments anchored to files, rows and nodes
- The factor-graph editor for Lenticulum.jl, and a ModelingToolkit editor
Install and open a folder.
Releases are named by date (YYMMDD-proto) on the
releases page; <release> below stands for
that name. To build it yourself: Development.
| platform | file | install |
|---|---|---|
| Arch Linux | moonkale-<release>-arch-x86_64.pkg.tar.zst | sudo pacman -U <file> |
| Debian 12+ / Ubuntu 22.04+ | moonkale-<release>-debian-amd64.deb | sudo apt install ./<file> |
| Nix / NixOS | from source | nix profile install github:MathStruct/Moonkale |
| Linux, any (tarball) | moonkale-<release>-linux-x86_64.tar.gz | unpack, then ./bin/moonkale |
| Android (arm64) | moonkale-<release>-android-arm64.apk | sideload, or adb install -r <file> |
| Windows / macOS | .msi / .exe / .dmg | unsigned and untested: see the install page |
Where to start
- Coming from VS Code or Obsidian Getting Started: the four ideas, and a first session in ten minutes
- Ready to install Install: every platform, with troubleshooting
- Working on another machine Remote and Server Modes: SSH folders, the server, the phone
- Curious what each part does The Extension Catalogue: what each extension does, and where it runs
- Want the internals Architecture Overview → the Graph-Native Model
- Want the long view North Star: the code graph, and why Lenticulum is the reason
Tell us what breaks.
Bugs, ideas and “I cannot get it to work” are all welcome. Reports from Windows and macOS are especially useful: they are the only testing those builds get. Every reported problem ends up in the vault's problem log, with its fix.
MIT licence. Binaries also contain third-party software under its own permissive licences; no GPL-only dependency. The full list.