Editor technology evaluation
Status: research candidates, not an accepted engine decision.
Integration shortlist
| Candidate | Type | Direct integration | License signal |
|---|---|---|---|
| CodeMirror 6 | Web editor library | High, through a React adapter | MIT |
| Monaco | Web editor library | High, through a React adapter | MIT |
| GPUI | Native Rust UI framework | Separate native surface research | Audit exact revision and dependencies |
| Lapce / Floem | Native Rust editor / UI reference | Not a drop-in web editor | Audit exact components; Lapce Apache-2.0 |
| Scintilla | Native editing component | Platform-specific embedding research | Permissive upstream license; audit |
| Coloride | Tauri and CodeMirror architecture reference | Study integration, not a library commitment | Apache-2.0 per upstream repository |
CodeMirror 6 is the first prototype candidate because its modular editor and viewport rendering fit the existing Desktop and future web surfaces. Monaco is the comparison baseline for mature editing and language features. Neither is assumed to match Zed latency. GPUI is a UI toolkit, not a complete code editor. Lapce and Floem are useful native references, but native window integration, text behavior and maintenance need measurement. Scintilla is a native component, not a React widget. Coloride is a research reference only; maturity, APIs, source provenance and licenses are not fully audited. No full editor fork or direct source copying is proposed.
Tauri 2 uses system WebViews: WKWebView, WebView2 and WebKitGTK. Measure each actual packaged platform. Do not replace Tauri or require a new runtime just to investigate a native option.
Candidate supporting technologies
Evaluate standard Language Server Protocol (LSP), Tree-sitter parsing, Debug Adapter Protocol (DAP), Rust text buffers (for example Ropey), native search and Git adapters when their specific consumer requires them. Avoid two authoritative document stores and unnecessary cross-process copies. WebAssembly extensions are later research under existing managed extension trust and sandbox gates.
Decision procedure
- Pin candidate versions and inventory direct/transitive licenses, security, maintenance, platform requirements, bundle and API costs.
- Build small disposable CodeMirror and Monaco prototypes with the same document contract and fixtures.
- Compare them with Zed and Lapce as external reference applications, using identical hardware and comparable user workflows.
- Select the simplest candidate meeting the performance, functionality, accessibility, security and portability gates. If neither meets the budgets after profiling, evaluate GPUI/Floem/native embedding with explicit window, input, accessibility and host-boundary design.
- Record an ADR, measured results, rejected alternatives and migration cost before production adoption.
Native frameworks are not automatically faster for the whole application. No candidate has been benchmarked in Intentloom in this documentation PR.
Upstream references
Upstream license statements are discovery evidence, not release clearance.