← Projects · Interface

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
Moonkale on the Linux desktop: the activity bar and Explorer on the left, a terminal below them, the whole repository as a graph of files and symbols in the middle, and a Julia file open in the code editor on the right Moonkale on an Android phone: a rich note above a Rust file, and the bottom bar
Moonkale on Linux, with its own repository as a graph · and on a phone
Try it

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.

solver/ · folder runs.sqlite · database
index: 3 files · 3 links · 3 symbols · 1 table file symbol note table
Agent

    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.

    How it works

    Four ideas, one editor.

    What makes Moonkale different from the editors you already use, in the words of the vault's Getting Started.

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

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

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

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

    Feels familiar

    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 Codein Moonkale
    Ctrl+Shift+P, Ctrl+Pthe same keys, the same idea; or pick the VS Code layout outright
    the editorCodeMirror with your language servers (rust-analyzer, pyright, clangd…), or a Rust-built editor
    Source ControlGit: stage, commit, diffs, and the history as a graph
    Remote-SSHOpen Remote Folder: terminal, git and language servers run on the other machine
    the integrated terminalthe same, and a path:line in its output opens the file
    in Obsidianin Moonkale
    live previewRich mode (WYSIWYG) or Source mode, one click apart
    [[links]] and backlinksthe same links; unresolved ones are dashed, and a click creates the note
    the graph viewthe Graph panel, with the code and the databases in it too
    front mattera Properties bar above the note; the source stays untouched
    MathJaxKaTeX, inline and block, with your own macros; a Typst preview
    Under the hood

    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 editorMoonkale
    What ships with the appa complete Chromium browser and Node.js, in every app you installno browser and no Node.js: the operating system's own webview (WebKitGTK, WebView2, WKWebView, Android WebView)
    Where the logic runsJavaScript, in Node and in the pagea native Rust process: indexing, language servers, git, search, history, databases and the agent
    Memory safetya 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
    ExtensionsNode modules, with the same access to your machine as the editorWebAssembly modules (wasmtime on the desktop); the built-in editors are extensions with no privileged access
    Platformsdesktop; the web and phones are separate productsone 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):

    1. 01 Terminal xterm.js → alacritty_terminal and a Rust grid next
    2. 02 Code editor CodeMirror → the pure-Rust editor, already opt-in in progress
    3. 03 Rich Markdown Milkdown → a Rust block editor the long one
    4. 04 Renderer the webview → dioxus-native: Rust drawing straight to the GPU later
    What works today

    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.

    Why it exists

    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
    code graph factor graphs models stored, later Moonkale the editor Sophia the store Lenticulum.jl the models
    Where it stands

    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
    Get started

    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.

    platformfileinstall
    Arch Linuxmoonkale-<release>-arch-x86_64.pkg.tar.zstsudo pacman -U <file>
    Debian 12+ / Ubuntu 22.04+moonkale-<release>-debian-amd64.debsudo apt install ./<file>
    Nix / NixOSfrom sourcenix profile install github:MathStruct/Moonkale
    Linux, any (tarball)moonkale-<release>-linux-x86_64.tar.gzunpack, then ./bin/moonkale
    Android (arm64)moonkale-<release>-android-arm64.apksideload, or adb install -r <file>
    Windows / macOS.msi / .exe / .dmgunsigned and untested: see the install page

    Where to start

    Feedback

    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.