Why this page: the requests keep growing. The debugger, plotting, workflows, the knowledge-graph studio, Lenticulum, a static reader, math rendering, canvas components and Unison all came in one week. Each raises “is this core?“. The Extension Catalogue has a short section on core and separate repositories (2026-10-01); this page is the longer discussion, with criteria to apply rather than taste. It is meant to be argued with. Its answers should come from Use Cases, not from preference.

Four places a thing can live

PlaceWhat it isExample today
Librarycrates other projects can depend on, versioned by ext-api tags, with no Moonkale UImoonkale-core, moonkale-ext-api, moonkale-graph-render
Core platformservices every extension builds on, always compiled in: the workspace, sources registry, state store, settings, secrets, policy gate, LSP and terminal services, the shellthe shell, services/*, sources/registry
Extensions in this repositorybuilt and tested with the core, toggled per user: on by default (what a first-day user needs) or opt-inon: Explorer, Search, code editor, Markdown, Graph, Table, Git, History, Agent, Terminal. Opt-in: Flow editor, the Rust editor and terminal
Extensions in their own repositorytheir own release cadence, toolchain or audience; compiled in behind a feature (static) or loaded (wasm)moonkale-julia (Lux, ModelingToolkit, RxInfer)

Criteria (proposed)

A thing goes to the core platform only if all four hold:

  1. Several extensions need it, so it is a service, not a feature.
  2. It needs no toolchain beyond Moonkale itself.
  3. Its dependencies are light (the core must build in minutes, and on Android).
  4. It must behave the same everywhere, so one implementation keeps every extension consistent (settings, secrets, the policy gate).

An extension in this repository if at least one of these holds:

  • a first-day user expects it (then on by default);
  • it is generic over sources or languages (the flow editor’s framework, the table, the graph);
  • it shares hot code with the core, so splitting would force lockstep releases.

Its own repository if at least one of these holds:

  • it needs a foreign toolchain to be useful (Julia, Lean, a JVM);
  • it serves a specialised audience;
  • it wraps someone else’s backend with its own release cadence;
  • someone else maintains it.

The library gets anything another project would reasonably reuse without Moonkale’s UI: the graph engine, the model, the extension contract, perhaps the math parser and the table grid’s arithmetic.

Open placements (proposals to discuss)

ThingProposed placeWhyDoubt
Math delimiters + LaTeX/Typst fallback (Math Delimiters and Renderers)the parser in the library (shared by rich, source and native preview); rendering in the Markdown extensionthree editors must agree on what is mathTypst rendering pulls the typst crate: already in the Typst preview, so no new weight
Canvas component layer (WP-05)library (beside the engine)the graph view, flow editor, table schema view and a canvas view all need it—
DAP service (Debugger Requirements)core platform service like LSP; the debug panel an opt-in extensionmany language extensions would use one serviceis a code debugger wanted at all, beside the model debugger?
Model debugger (LT-19)the flow editor extension plus the Julia side in moonkale-juliait debugs flow models—
Plot (Plotting Requirements)extension in this repository, opt-in at first, on by default once it is goodplotting query results is generic; Lenticulum needs itthe spec format may want to be library-level, shared with reader mode
Workflow runner (Workflow Automation (n8n, Windmill))opt-in extension in this repositoryit runs flows, so it is close to the flow editor and the run recordscould grow into its own repository if it gains integrations
Run records (LT-13, WF-02)core platform serviceLenticulum runs, workflow runs and debug sessions all need them—
Notebooks (Notebook Editor)opt-in extension in this repository; kernels behind a featuregeneric over languages; KG Studio and Julia need it—
Lenticulum library (Lenticulum Frontend Requirements)moonkale-juliaJulia toolchain, own cadenceLenticulum is the reason Moonkale exists: should its editor-side pieces (plates, typed spaces) be core flow features? Proposed yes: they are generic
Knowledge Graph Studio (Knowledge Graph Studio)its own repositorywraps oxilite and tiramemsu, whose cadence is not ours; may be maintained with their author—
Language-server contribution point (KG-05)core platformevery language extension—
Unison source (WP-18), other code-graph sourcesown repository (moonkale-sources-extra or moonkale-codegraph)foreign toolchain (the ucm codebase format)—
Datalog dialect (WP-20)library cratesources, the agent and the KG studio would share it—
Declarative rendering settings (WP-30)core platform (settings schema) + the code viewevery language’s projectionfar away
Static reader (WP-28, way later)its own build in this repositoryreuses the engine, grid and index—
Postgres/Supabase source (WP-17)moonkale-sources-extraneeds a server to test—

Questions to settle

  1. Is “on by default” decided per extension in the distribution, or per user profile (a “modeller” profile turning on the flow editor and plots)?
  2. Should the flow editor become on by default once Lenticulum work lands? It’s the reason Moonkale exists, but most first-day users won’t need it.
  3. Does an extension in its own repository get CI here (a check that the distribution builds with it), as moonkale-julia does today?
  4. Who owns an extension built for someone else’s backend (the KG studio): MathStruct, the backend’s author, or both?
  5. Which services are “core” on Android, where there are no toolchains and no PTY?

Next step: collect use cases (Use Cases), then revisit each “doubt” above against them.