Land is organized as a monorepo of named elements under Element/. Each
element is an independent Git repository (submodule) on its own Current
branch. The repository root holds build orchestration scripts, environment file
templates, and workspace configuration files for Cargo and pnpm.
Where this sits in the path: read this page after Installation and whichever build page you followed - Getting Started or Quickstart. It is the map of the tree those pages build, and the naming rules that keep it navigable.
Top-Level Layout 📂
Land/
Element/ # All submodule elements (never git add .)
Maintain/ # Build scripts, signing helpers, codegen
Debug/
Build.sh # Debug build entry point (--profile flag)
Run.sh # Development launcher (hot reload)
Release/
Build.sh # Release build entry point (--profile flag)
Script/
TierEnvironment.sh # Environment file sourcing cascade
SignBundle.sh # Post-build ad-hoc re-signing
Documentation/ # Project-level documentation
.github/workflows/ # GitHub Actions definitions
.env.Land # Core dev environment (local, gitignored)
.env.Land.Sample # Checked-in defaults template
Cargo.toml # Rust workspace root (51 patch.crates-io)
Cargo.lock # Rust dependency lockfile
pnpm-workspace.yaml # pnpm workspace configuration
turbo.json # Turborepo global environment declarations
rust-toolchain.toml # Pinned toolchain channel (nightly) + components
rustfmt.toml # Workspace Rust formatting rules
biome.json # Biome linter and formatter config
package.json # Root npm workspace
Element Map 🗺️
Rust Elements - Native Backend
| Element | Path | Role |
|---|---|---|
| Common | Element/Common |
Abstract core library. All service traits (IFileService, IConfigurationService), the ActionEffect system, DTOs. No concrete implementations. |
| Cache | Element/Cache |
Process-wide caching primitives: a memory-mapped asset cache (AssetMemoryMap, memmap2) and a canonical-path cache (PathCanon, Moka). Both are optional - disabling them costs speed, not correctness. Consumed by Mountain. |
| Echo | Element/Echo |
Bounded work-stealing task scheduler. Priority-based (High/Normal/Low) with lock-free deques. Core async execution engine for Mountain. |
| Vine | Element/Vine |
gRPC protocol definitions. Contains Vine.proto - the service contract between Mountain and Cocoon (port 50052), Mountain and Air (port 50053). |
| Mountain | Element/Mountain |
Primary Tauri application. Implements every trait from Common. Hosts the gRPC server, manages AppState, dispatches Tauri commands, owns OS-level capabilities. |
| Mist | Element/Mist |
Local DNS server for *.editor.land resolution. Authoritative for the private zone. Resolves all subdomains to 127.0.0.1. Used for network isolation. |
| Air | Element/Air |
Background daemon. Update downloads, file indexing, cryptographic signing, health monitoring. Communicates via gRPC on port 50053. |
| Rest | Element/Rest |
High-performance TypeScript compiler built on OXC (Oxidation Compiler). Optional replacement for esbuild’s TypeScript compilation at 2-3x speed. |
| Grove | Element/Grove |
Native Rust/WASM extension host (work in progress). Sandboxed environment via Wasmtime for WASM-compiled VS Code extensions. Uses edition 2021 for WASM toolchain compatibility. |
| SideCar | Element/SideCar |
Vendored Node.js runtime binary management. Downloads, caches, and resolves exact Node.js binaries per target triple for bundling into the app. |
TypeScript Elements - UI and Extension Host
| Element | Path | Role |
|---|---|---|
| Cocoon | Element/Cocoon |
Node.js extension host sidecar. Runs VS Code extensions. Provides a vscode API shim implemented with Effect-TS. Communicates with Mountain via gRPC. |
| Wind | Element/Wind |
UI service layer. Effect-TS native re-implementation of ~40 VS Code workbench services. Runs inside the Tauri WebView. Communicates with Mountain via Tauri IPC commands. |
| Sky | Element/Sky |
UI component layer (Astro). Renders the editor canvas, sidebar, activity bar, status bar, and panels. Bridges Tauri events through SkyBridge (~2900 lines). |
| Output | Element/Output |
Build artifact management. Compiles VS Code platform source into the @codeeditorland/output npm package consumed by Cocoon, Sky, and Wind. |
| Worker | Element/Worker |
Service worker implementation. Asset caching, offline support, CSS module interception. Zero runtime dependencies. |
| Maintain | Element/Maintain |
Build orchestration. CI/CD pipeline, GritQL refactoring queries, build scripts, signing helpers. |
Dependency Elements
| Element | Path | Role |
|---|---|---|
| Editor | Dependency/Microsoft/Dependency/Editor |
VS Code source submodule. Compiled in Step 1 of the build. Consumed by Output and Sky. Never edit files under src/vs/**. |
Submodule Repository Table 🔗
Build System Architecture 🔨
The build has two phases:
Phase 1 - VS Code compilation. Dependency/Microsoft/Dependency/Editor
is compiled with npm and NODE_ENV=development. The output feeds Output, which
produces the @codeeditorland/output package consumed by Cocoon, Sky, and Wind.
Phase 2 - Land assembly. Maintain/Debug/Build.sh orchestrates all elements
based on the --profile flag. The profile selects one or more workbench variants
(Mountain-only, full Electron, headless Cocoon, kernel-only), sets tier flags
(TierIPC, TierTerminal, TierSCM), and decides whether assets are bundled
or left as dynamic imports.
Maintain/Debug/Build.sh declares only the fifteen debug-* profiles.
Maintain/Release/Build.sh
is the same orchestration at release quality and declares production,
web-browser and the release-* profiles. A profile name passed to the wrong
script exits with Unknown profile.
Each element keeps its build output inside its own folder, under Target/ where
it has one. Build scripts do not write into another element’s tree.
Naming Conventions 📝
TypeScript
- PascalCase filenames:
TauriMainProcessService.ts,ExtensionHost.ts - Single
export defaultper file, anonymous import typefor type-only imports;await import()for value imports- Tabs for indentation, line width 80
- Em quad U+2001 (
) is the only separator character in display strings - Arrow-async functions over
async functiondeclarations satisfiespattern for type narrowing
Rust
- Edition 2024, MSRV 1.95.0 (Grove excluded: edition 2021 for WASM)
pub usere-export pattern is not used anywhere in the workspace. Use type aliases, delegating functions, or fresh constants instead.- PascalCase filenames
rustfmtwith workspacerustfmt.tomlrules
Environment Variables
- PascalCase for Land variables:
BundleLevel,HotReload,TierFileSystem - Upstream casing preserved for external tools:
TAURI_*,CARGO_*,NODE_*
What Never to Edit 🚫
Warning
Editing these paths will be overwritten by the next build or will corrupt the submodule state.
| Path | Reason |
|---|---|
Element/*/Target/ |
Build output directories. Source is in Public/ or Source/ within each element. |
Dependency/Microsoft/Dependency/Editor/src/vs/** |
Upstream VS Code source. Changes here are not tracked and are wiped by git clean -dfx. |
Any file committed with git add . |
Adding . includes submodule gitlinks as trees, corrupting the index. Always stage specific files by name. |
Related Documentation 🔗
- Architecture - how elements communicate at runtime: IPC, gRPC, and event flow
- Configuration - environment variable system and tier flags
- Installation - how to clone each submodule and build the project
- CI/CD Pipeline - pipeline stages and automation
Funding 💎
Land’s development is funded by the NLnet NGI0 Commons Fund, a European initiative supporting open-source infrastructure. The project is maintained by PlayForm (Sofia, Bulgaria) as a non-profit effort. All code is dedicated to the public domain under CC0 - no CLA required, no copyright assignment, no restrictions on use.