|
|
|
The TypeScript/Effect-TS Service Layer for Land
Electron'sIPCbridge forces every panel interaction through untypedJSONserialization - brittle, untyped, and opaque.Windreplaces it with typedTauricommands routed toRusthandlers inMountain's core.
"Every service is a typed Effect. Every call is traced. Every error is
tagged. The bridge is not a black box - it's an open, composable, effectful
program."
Wind is the TypeScript/Effect-TS service layer that bridges Sky
(Land's VS Code-based UI) to the Tauri desktop shell and Mountain's
Rust backend. It replaces VS Code's Electron IPC bridge - which forces
every panel interaction through untyped JSON serialization - with typed
Tauri commands routed to Rust handlers in Mountain's core. It provides
the Effect-TS native service layer that enables Sky to function within the
Tauri shell.
Wind recreates the essential VS Code renderer environment, implements core
services through Effect-TS's typed error and dependency injection patterns,
and connects the frontend to Mountain's Rust backend through Tauri's
invoke and event system. It exposes Tauri's native OS file dialogs through
Effect-TS wrappers that surface typed, tagged errors. The Preload.ts script
establishes window.vscode and shims ipcRenderer and process so VS Code
workbench code communicates through Tauri's invoke system instead of
Electron's IPC.
graph LR
SKY["Sky<br/>Land VS Code-based UI"]
WIND["Wind<br/>TypeScript and Effect-TS services"]
PRELOAD["Preload.ts<br/>window.vscode shim"]
TAURI["Tauri<br/>invoke and listen"]
MOUNTAIN["Mountain<br/>Rust handlers"]
SKY --> WIND
WIND --> PRELOAD
PRELOAD --> TAURI
TAURI --> MOUNTAIN
MOUNTAIN -- events --> SKY
Wind is engineered to:
- Provide a Typed Service Layer - Replace
Electron's untypedJSONIPCwithEffect-TSservices that carry typed tags, composableLayers, and deterministic dependency injection. - Emulate the
VS CodeRenderer Environment - ShimElectronandNode.jsAPIs soVS Codeworkbench code runs unchanged inside theTauriWebView. - Route Through
TauriCommands - Connect every frontend request toMountain'sRusthandlers viaTauri's typedinvokeandeventsystem, avoiding raw serialization boundaries. - Enable Code Generation - Walk the
VS Codeservice catalog, extract interface signatures and command registrations, and emit bridge shapes and catalogs for the full workbench surface.
Effect-TS Service Architecture - 40+ service modules, each structured as
an atomic unit with Tag, Interface, Implementation, Layer, Type, and
Error subdirectories. Every service is a typed Effect that composes via
Layer into TauriLiveLayer, ElectronLiveLayer, and TestLayer stacks.
Preload.ts Environment Emulation - Shims Electron's ipcRenderer,
process, require, and Node.js globals, establishing window.vscode and a
compatible execution context inside the Tauri WebView. VS Code workbench
code runs without modification.
Typed IPC over Tauri - Replaces Electron's ipcMain/ipcRenderer with
typed Tauri invoke and listen calls through Effect/IPC. Every invocation
carries a tagged error type (IPCError) and is routed through the
Service/TauriMainProcessService.ts channel router.
Codegen Pipeline - The Codegen/ directory walks the VS Code workbench
service catalog, extracts decorators and interface members, resolves cross-file
references, and emits BridgeShape files, service catalogs, and command
registrations. Produced bridges power the Workbench* services in Effect/.
Mountain RPC Service - Maintains a typed RPC connection to the Rust
backend for configuration synchronization, state management, and native
operations. The MountainSync sub-service performs background polling for
configuration changes.
File System Provider - A VS Code-compatible FileSystemProvider with
MountainCommands bridge, type-safe URI handling, and tagged
FileSystemProviderErrors. Exposes Tauri's native OS file dialogs through
Effect-TS wrappers.
Telemetry Integration - PostHog bridge with browser and server-side
tracking, configuration-driven feature flags, fallback persistence, and
Effect-TS spans and metrics helpers.
Layer Composition - Three pre-composed layer stacks: TauriLiveLayer (full
production stack with 40+ services), ElectronLiveLayer (compatibility layer
for Electron-based testing), and TestLayer (isolated mock layer for unit
testing).
graph TB
FEATURES["Wind Key Features"]
SVC["Effect-TS Services<br/>40+ modules"]
SHIM["Preload.ts shim<br/>window.vscode"]
IPC["Typed IPC over Tauri<br/>invoke and listen"]
CG["Codegen Pipeline<br/>BridgeShape emission"]
RPC["Mountain RPC<br/>typed backend connection"]
FS["File System Provider<br/>native dialogs"]
TEL["Telemetry<br/>PostHog bridge"]
LAY["Layer Composition<br/>3 stacks"]
FEATURES --> SVC
FEATURES --> SHIM
FEATURES --> IPC
FEATURES --> CG
FEATURES --> RPC
FEATURES --> FS
FEATURES --> TEL
FEATURES --> LAY
| Principle | Description | Key Components |
|---|---|---|
| Compatibility | High-fidelity VS Code renderer environment to maximize Sky's reusability. Shim every Electron API the workbench expects. |
Preload.ts, Bootstrap/Types/, Types/ |
| Modularity | Each service follows an atomic directory structure with Interface, Implementation, Tag, Layer, Type, and Error subdirectories. |
All Effect/ services |
| Type Safety | Effect-TS powers all service implementations, ensuring tagged error types, composable Layer dependency injection, and deterministic error handling. |
All Effect/ services with Layer and Tag patterns |
| Abstraction | Clean Layer over Tauri APIs replaces untyped Electron IPC with typed Tauri commands. The frontend never touches raw invoke calls. |
Preload.ts, Effect/IPC/, Effect/Mountain/ |
| Integration | Sky's frontend requests connect to Mountain's backend through Tauri's invoke and event system. The ipcRenderer shim routes every call through the IPC service. |
Preload.ts (ipcRenderer shim), Effect/Mountain/, Service/TauriMainProcessService.ts |
graph LR
PRINCIPLES["Core Architecture Principles"]
COMPAT["Compatibility<br/>renderer shims"]
MOD["Modularity<br/>atomic service dirs"]
SAFE["Type Safety<br/>tagged errors"]
ABSTRACT["Abstraction<br/>Layer over Tauri"]
INTEG["Integration<br/>invoke and event"]
PRINCIPLES --> COMPAT
PRINCIPLES --> MOD
PRINCIPLES --> SAFE
PRINCIPLES --> ABSTRACT
PRINCIPLES --> INTEG
graph LR
classDef sky fill:#cce8ff,stroke:#2980b9,stroke-width:2px,color:#003050;
classDef wind fill:#fffde0,stroke:#f0b429,stroke-width:2px,color:#4a3500;
classDef tauri fill:#ffe0f0,stroke:#c0396a,stroke-width:2px,color:#4a0020;
classDef mountain fill:#f0d0ff,stroke:#9b59b6,stroke-width:2px,color:#2c0050;
classDef effectts fill:#d4f5d4,stroke:#27ae60,stroke-width:1px,color:#0a3a0a;
classDef ipc fill:#fff3c0,stroke:#f39c12,stroke-width:1px,stroke-dasharray:5 5,color:#5a3e00;
subgraph SKY["Sky - Astro UI (Tauri WebView)"]
SkyApp["Sky Workbench Pages"]:::sky
end
subgraph WIND["Wind - VS Code Env + Effect-TS Service Layer (WebView)"]
direction TB
subgraph COMPAT["Compatibility Layer"]
Preload["Preload.ts - window.vscode + ipcRenderer shim"]:::wind
Sandbox["Effect/Sandbox - globals service"]:::wind
end
subgraph EFFECTLAYERS["Effect/ - 40+ Service Modules"]
TauriLayer["Effect/Layers/Tauri.ts - TauriLiveLayer"]:::effectts
ElectronLayer["Effect/Layers/Electron.ts"]:::effectts
CoreServices["IPC / Mountain / MountainSync / Bootstrap<br/>Configuration / Lifecycle / Storage / Telemetry"]:::effectts
UIServices["Clipboard / Commands / Editor / Terminal<br/>StatusBar / Sidebar / ActivityBar / Panel<br/>Search / Notifications / QuickInput ..."]:::effectts
WorkbenchServices["Workbench* produced bridge services"]:::wind
end
subgraph IPCBRIDGE["Service/TauriMainProcessService.ts"]
TauriSvc["IPC channel router + event bridge"]:::ipc
end
Preload --> Sandbox
Preload --> TauriLayer
TauriLayer --> CoreServices
TauriLayer --> UIServices
TauriLayer --> WorkbenchServices
CoreServices --> TauriSvc
end
subgraph BACKEND["Tauri Shell + Mountain - Rust Backend"]
TauriAPI["Tauri JS API / @tauri-apps/api"]:::tauri
MountainCore["Mountain - WindServiceHandlers"]:::mountain
end
SkyApp -- imports TauriLiveLayer --> TauriLayer
SkyApp -- consumes services via __CEL_SERVICES__ --> UIServices
TauriSvc -- tauri::invoke --> TauriAPI
TauriAPI -- Rust command handlers --> MountainCore
MountainCore -- sky:// Tauri events --> TauriSvc
TauriSvc -- event bridge --> SkyApp
Connection paths:
| Path | Protocol | Use Case |
|---|---|---|
Wind -> Mountain via Tauri invoke |
Tauri IPC (typed commands) |
All frontend-to-backend requests |
Mountain -> Wind via Tauri listen |
Tauri event system (sky:// events) |
Backend notifications and state pushes |
Wind -> Sky |
Direct import of TauriLiveLayer + __CEL_SERVICES__ global |
UI service consumption |
Preload -> Tauri |
window.__TAURI__ bridge |
Environment emulation and API shims |
| Component | Path | Description |
|---|---|---|
| Preload Shim | Source/Preload.ts |
VS Code environment emulation in Tauri WebView - shims Electron APIs, creates window.vscode |
| IPC Service | Source/Service/Effect/IPC/ |
Inter-process communication via Tauri invoke with typed, tagged errors |
Mountain RPC |
Source/Service/Effect/Mountain/ |
Backend RPC connection service for configuration, state, and native operations |
Mountain Sync |
Source/Service/Effect/MountainSync/ |
Background configuration synchronization with change detection |
| Configuration | Source/Service/Effect/Configuration/ |
Workbench configuration with sync and change detection |
| Bootstrap | Source/Service/Effect/Bootstrap/ |
Multi-stage bootstrap orchestration for service initialization |
| Codegen | Source/Codegen/ |
VS Code service code generator - walks service catalog, emits bridge shapes |
| Sandbox | Source/Service/Effect/Sandbox/ |
Preload globals and environment service |
| Telemetry | Source/Service/Effect/Telemetry/ |
Logging, spans, and metrics (PostHog/OTLP) |
| Environment | Source/Service/Effect/Environment/ |
System and platform detection |
| Health | Source/Service/Effect/Health/ |
Service health checks |
| Clipboard | Source/Service/Effect/Clipboard/ |
System clipboard access |
| Commands | Source/Service/Effect/Commands/ |
VS Code command registry |
| Editor | Source/Service/Effect/Editor/ |
Editor service abstraction |
| Activity Bar | Source/Service/Effect/ActivityBar/ |
Activity bar management |
| Panel | Source/Service/Effect/Panel/ |
Bottom panel management |
| Sidebar | Source/Service/Effect/Sidebar/ |
Sidebar management |
| Status Bar | Source/Service/Effect/StatusBar/ |
Status bar management |
| Decorations | Source/Service/Effect/Decorations/ |
Editor decoration service |
| Extensions | Source/Service/Effect/Extensions/ |
Extension management |
| Files | Source/Service/Effect/Files/ |
File system operations |
| History | Source/Service/Effect/History/ |
Editor history service |
| Keybinding | Source/Service/Effect/Keybinding/ |
Keyboard shortcut binding |
| Label | Source/Service/Effect/Label/ |
Label service |
| Language | Source/Service/Effect/Language/ |
Language service |
| Lifecycle | Source/Service/Effect/Lifecycle/ |
Application lifecycle |
| Text Buffer | Source/Service/Effect/Model/ |
Text buffer service |
| Notification | Source/Service/Effect/Notification/ |
Notification service |
Output |
Source/Service/Effect/Output/ |
Output panel service |
| Progress | Source/Service/Effect/Progress/ |
Progress indication |
| Quick Input | Source/Service/Effect/QuickInput/ |
Quick input UI |
| Search | Source/Service/Effect/Search/ |
Search service |
| Storage | Source/Service/Effect/Storage/ |
Persistent storage |
| Terminal | Source/Service/Effect/Terminal/ |
Terminal service |
| Text File | Source/Service/Effect/TextFile/ |
Text file service |
| Text Buffer Resolver | Source/Service/Effect/TextModelResolver/ |
Text buffer resolver |
| Themes | Source/Service/Effect/Themes/ |
Theme management |
| Working Copy | Source/Service/Effect/WorkingCopy/ |
Working copy service |
| Workspaces | Source/Service/Effect/Workspaces/ |
Workspace management |
| Network Restrictions | Source/Service/Effect/NetworkRestrictions/ |
Network access restrictions |
| User Settings | Source/Service/Effect/UserSettings/ |
User settings bridge |
Vine |
Source/Service/Effect/Vine/ |
Notification stream |
| Land Workbench | Source/Service/Effect/LandWorkbench/ |
Public composition surface consumed by Sky's SkyBridge |
Layers/Tauri |
Source/Service/Effect/Layers/Tauri.ts |
Primary composed layer merging 40+ services into TauriLiveLayer |
Layers/Electron |
Source/Service/Effect/Layers/Electron.ts |
Electron compatibility layer stack |
| Layers/Test | Source/Service/Effect/Layers/Test.ts |
Test/mock layer stack for isolated testing |
| Produced Catalog | Source/Effect/Generated/ |
Derived VS Code service interface catalog (hundreds of I*Service entries) |
| File System Provider | Source/FileSystem/ |
VS Code-compatible file system provider with Mountain bridge |
| Workbench Integration | Source/Workbench/ |
Workbench integration service |
| Function/Install | Source/Function/Install/ |
Preload install helpers and IPC renderer creation |
| Service | Source/Service/ |
Tauri main process service, channel routing, WebSocket transport |
| Shim | Source/Shim/ |
Async proxy, audit log, event/IPC interceptors, network proxy, redirect bus |
| Types | Source/Types/ |
Sandbox, IPC, and error type definitions |
| Utility | Source/Utility/ |
Shared utility functions, including TierIPC resolution (Utility/Tier.ts) |
graph LR
COMPONENTS["Key Components"]
PRELOAD["Preload Shim<br/>Source/Preload.ts"]
EFFECTS["Effect Services<br/>40+ modules"]
CODEGEN["Codegen<br/>Source/Codegen"]
FS["FileSystem<br/>Source/FileSystem"]
SHIM["Shim and Types<br/>Source/Shim, Source/Types"]
UTIL["Utility<br/>Source/Utility/Tier.ts"]
COMPONENTS --> PRELOAD
COMPONENTS --> EFFECTS
COMPONENTS --> CODEGEN
COMPONENTS --> FS
COMPONENTS --> SHIM
COMPONENTS --> UTIL
Wind/
+-- Source/
| +-- Preload.ts # VS Code environment emulation in Tauri WebView
| +-- ESBuild.ts # ESBuild bundling configuration
| +-- Effect/ # Derived VS Code service interface catalog
| | `-- Generated/ # 360+ `I*Service` interfaces walked from VS Code's source
| +-- Bootstrap/ # Bootstrap type definitions for startup
| | `-- Types/ # VS Code type shims (services, configuration, platform)
| +-- Codegen/ # VS Code service code generator
| | +-- Codegen.ts # Main codegen entry point
| | +-- RunCodegen.ts # Codegen runner
| | +-- Walk/ # Source tree walker
| | +-- Extract/ # Decorator and interface extraction
| | +-- Resolve/ # Cross-file interface resolution
| | +-- Emit/ # Bridge shape and catalog emission
| | +-- Manifest/ # Bridge shape manifest
| | `-- Type/ # Codegen type definitions
| +-- Configuration/ # ESBuild and TypeScript configurations
| +-- FileSystem/ # VS Code-like file system provider
| | +-- Type/ # File type and URI definitions
| | +-- Interface/ # FileSystemProvider interface
| | +-- Implementation/ # Provider implementation and Mountain bridge
| | `-- Error/ # FileSystemProvider error types
| +-- Function/ # Preload install helpers and IPC renderer creation
| +-- IPC/ # IPC channel and Sky event definitions
| +-- Service/ # Tauri main process service + Effect-TS services
| | +-- TauriMainProcessService.ts # IPC channel router and event bridge
| | +-- MountainInvoke.ts # Mountain backend invocation
| | +-- ChannelRouteMap.ts # Channel routing configuration
| | +-- StubChannels.ts # Channel stubs for testing
| | +-- MistWebSocketTransport.ts # WebSocket message transport
| | `-- Effect/ # Effect-TS services (atomic structure)
| | +-- index.ts # Service module re-exports
| | +-- IPC.ts, IPC/ # Inter-process communication via Tauri invoke
| | +-- Sandbox/ # Preload globals and environment service
| | +-- Configuration/ # Workbench configuration with sync
| | +-- Telemetry/ # Logging, spans, and metrics (PostHog/OTLP)
| | +-- Mountain/ # Backend RPC connection service
| | +-- MountainSync/ # Background configuration sync
| | +-- Environment/ # System and platform detection
| | +-- Health/ # Service health checks
| | +-- Bootstrap/ # Multi-stage bootstrap orchestration
| | +-- Clipboard/ # System clipboard access
| | +-- Commands/ # VS Code command registry
| | +-- Editor/ # Editor service abstraction
| | +-- ActivityBar/ # Activity bar management
| | +-- Panel/ # Bottom panel management
| | +-- Sidebar/ # Sidebar management
| | +-- StatusBar/ # Status bar management
| | +-- Decorations/ # Editor decorations service
| | +-- Extensions/ # Extension management
| | +-- Files/ # File system operations
| | +-- History/ # Editor history service
| | +-- Keybinding/ # Keyboard shortcut binding
| | +-- Label/ # Label service
| | +-- Language/ # Language service
| | +-- Lifecycle/ # Application lifecycle
| | +-- Model/ # Text buffer service
| | +-- Notification/ # Notification service
| | +-- Output/ # Output panel service
| | +-- Progress/ # Progress indication
| | +-- QuickInput/ # Quick input UI
| | +-- Search/ # Search service
| | +-- Storage/ # Persistent storage
| | +-- Terminal/ # Terminal service
| | +-- TextFile/ # Text file service
| | +-- TextModelResolver/ # Text buffer resolver
| | +-- Themes/ # Theme management
| | +-- WorkingCopy/ # Working copy service
| | +-- Workspaces/ # Workspace management
| | +-- NetworkRestrictions/ # Network access restrictions
| | +-- UserSettings/ # User settings bridge
| | +-- Vine/ # Notification stream
| | +-- LandWorkbench/ # Public composition surface for Sky's SkyBridge
| | +-- Layers/ # Tauri.ts, Electron.ts, Test.ts layer stacks
| | +-- Generated/ # Derived VS Code service interfaces
| | +-- WorkbenchActivity/ # Produced workbench activity bridge
| | +-- WorkbenchClipboard/ # Produced workbench clipboard bridge
| | +-- WorkbenchCommand/ # Produced workbench command bridge
| | +-- WorkbenchContextKey/ # Produced workbench context key bridge
| | +-- WorkbenchDialog/ # Produced workbench dialog bridge
| | +-- WorkbenchEditor/ # Produced workbench editor bridge
| | +-- WorkbenchExtension/ # Produced workbench extension bridge
| | +-- WorkbenchHost/ # Produced workbench host bridge
| | +-- WorkbenchKeybinding/ # Produced workbench keybinding bridge
| | +-- WorkbenchLayout/ # Produced workbench layout bridge
| | +-- WorkbenchLifecycle/ # Produced workbench lifecycle bridge
| | +-- WorkbenchNotification/ # Produced workbench notification bridge
| | +-- WorkbenchProduct/ # Produced workbench product bridge
| | +-- WorkbenchProgress/ # Produced workbench progress bridge
| | +-- WorkbenchStorage/ # Produced workbench storage bridge
| | +-- WorkbenchTheme/ # Produced workbench theme bridge
| | `-- WorkbenchWorkspace/ # Produced workbench workspace bridge
| +-- Shim/ # AsyncProxy, AuditLog, EventInterceptor, Gate,
| | # IPCInterceptor, NetworkProxy, RedirectBus, SwallowMap
| +-- Telemetry/ # PostHog telemetry bridge
| +-- Types/ # Sandbox, IPC, and error type definitions
| | +-- Interface/ # WebUtils, WebFrame, ProcessEnvironment, etc.
| | `-- Error/ # IPCChannelError, SandboxNotReadyError, etc.
| +-- Utility/ # Shared utility functions, TierIPC resolution (Tier.ts)
| `-- Workbench/ # Workbench integration service
| +-- Type/ # WorkbenchIntegrationType
| +-- Interface/ # WorkbenchIntegrationService
| `-- Implementation/ # WorkbenchIntegrationImplementation
`-- Documentation/ # Project documentation
Wind is the middle layer between Sky (the UI) and Tauri /
Mountain (the backend). It provides the service abstraction that
Sky consumes to perform file operations, dialogs, configuration, and state
management - all through typed, tagged Effect services rather than untyped
IPC. Communication flows through Tauri's invoke (request) and event
(notification) channels.
| Host | Language | Runtime | IPC Bridge |
|---|---|---|---|
Wind |
TypeScript |
Effect-TS in Tauri WebView |
Typed Tauri invoke/listen |
Grove |
Rust, WASM |
WASMtime |
gRPC, IPC, WASM host functions |
Cocoon |
TypeScript, JavaScript |
Node.js via Effect-TS |
Electron IPC or Wind bridge |
- Depends on:
Mountain(Rustbackend handlers),Tauri(invoke/eventsystem),@tauri-apps/api(typed JS bridge) - Consumed by:
Sky(AstroUI layer),Cocoon(extension host),Worker(service worker) - Protocol:
TauriIPC (invoke+listen)
graph LR
SKY["Sky<br/>Astro UI layer"]
WIND["Wind<br/>typed Effect services"]
TAURI["Tauri<br/>invoke and events"]
MOUNTAIN["Mountain<br/>Rust backend"]
COCOON["Cocoon<br/>extension host"]
WORKER["Worker<br/>service worker"]
SKY --> WIND
COCOON --> WIND
WORKER --> WIND
WIND --> TAURI
TAURI --> MOUNTAIN
pnpm add @codeeditorland/wind| Package | Version | Purpose |
|---|---|---|
@tauri-apps/api |
2.11.0 |
Tauri JS bridge |
@codeeditorland/output |
0.0.1 |
Shared output utilities |
effect |
3.21.2 |
Structured concurrency & DI |
typescript |
6.0.3 |
TypeScript compilation |
Wind is integrated via its Preload.ts script and Effect-TS layers.
-
Integrate the Preload Script: Configure
tauri.config.jsonto include the bundledPreload.jsfromWindin your main window's preload scripts. -
Use Services with
Effect-TS:
import { IPC } from "@codeeditorland/wind/Effect";
import { TauriLiveLayer } from "@codeeditorland/wind/Effect/Layers/Tauri";
import { Effect, Layer, Runtime } from "effect";
// Build the application runtime with Tauri live layer
const AppRuntime = Layer.toRuntime(TauriLiveLayer).pipe(
Effect.scoped,
Effect.runSync,
);
// Example: invoke a Tauri command through the typed IPC service
const InvokeEffect = Effect.gen(function* (_) {
const IPCService = yield* _(IPC);
const Result = yield* _(
IPCService.invoke("mountain_get_workbench_configuration"),
);
yield* _(Effect.log(`Configuration received: ${JSON.stringify(Result)}`));
});
Runtime.runPromise(AppRuntime, InvokeEffect);| Service | Import Path | Description |
|---|---|---|
IPC |
@codeeditorland/wind/Effect |
Inter-process communication via Tauri |
Sandbox |
@codeeditorland/wind/Effect |
Preload globals and environment |
Configuration |
@codeeditorland/wind/Effect |
Workbench configuration with sync |
Telemetry |
@codeeditorland/wind/Effect |
Logging, spans, and metrics |
Mountain |
@codeeditorland/wind/Effect |
Backend RPC connection |
MountainSync |
@codeeditorland/wind/Effect |
Background configuration sync |
Environment |
@codeeditorland/wind/Effect |
System and platform detection |
Health |
@codeeditorland/wind/Effect |
Service health checks |
Bootstrap |
@codeeditorland/wind/Effect |
Multi-stage bootstrap orchestration |
Clipboard |
@codeeditorland/wind/Effect |
System clipboard access |
Commands |
@codeeditorland/wind/Effect |
VS Code command registry |
Editor |
@codeeditorland/wind/Effect |
Editor service abstraction |
ActivityBar |
@codeeditorland/wind/Effect |
Activity bar management |
Panel |
@codeeditorland/wind/Effect |
Bottom panel management |
Sidebar |
@codeeditorland/wind/Effect |
Sidebar management |
StatusBar |
@codeeditorland/wind/Effect |
Status bar management |
Decorations |
@codeeditorland/wind/Effect |
Editor decoration service |
Extensions |
@codeeditorland/wind/Effect |
Extension management |
Files |
@codeeditorland/wind/Effect |
File system operations |
History |
@codeeditorland/wind/Effect |
Editor history |
Keybinding |
@codeeditorland/wind/Effect |
Keyboard shortcut binding |
Label |
@codeeditorland/wind/Effect |
Label service |
Language |
@codeeditorland/wind/Effect |
Language service |
Lifecycle |
@codeeditorland/wind/Effect |
Application lifecycle |
Model |
@codeeditorland/wind/Effect |
Text buffer service |
Notification |
@codeeditorland/wind/Effect |
Notification service |
Output |
@codeeditorland/wind/Effect |
Output panel service |
Progress |
@codeeditorland/wind/Effect |
Progress indication |
QuickInput |
@codeeditorland/wind/Effect |
Quick input UI |
Search |
@codeeditorland/wind/Effect |
Search service |
Storage |
@codeeditorland/wind/Effect |
Persistent storage |
Terminal |
@codeeditorland/wind/Effect |
Terminal service |
TextFile |
@codeeditorland/wind/Effect |
Text file service |
TextModelResolver |
@codeeditorland/wind/Effect |
Text buffer resolver |
Themes |
@codeeditorland/wind/Effect |
Theme management |
WorkingCopy |
@codeeditorland/wind/Effect |
Working copy service |
Workspaces |
@codeeditorland/wind/Effect |
Workspace management |
NetworkRestrictions |
@codeeditorland/wind/Effect |
Network access restrictions |
UserSettings |
@codeeditorland/wind/Effect |
User settings bridge |
Vine |
@codeeditorland/wind/Effect |
Notification stream |
LandWorkbench |
@codeeditorland/wind/Effect |
Land workbench integration |
Layers/Tauri |
@codeeditorland/wind/Effect/Layers/Tauri |
Complete Tauri layer stack |
Layers/Electron |
@codeeditorland/wind/Effect/Layers/Electron |
Electron compatibility layer stack |
Layers/Test |
@codeeditorland/wind/Effect/Layers/Test |
Test/mock layer stack |
FileSystem |
@codeeditorland/wind/FileSystem |
VS Code-like file system provider |
Workbench |
@codeeditorland/wind/Workbench |
Workbench integration service |
graph LR
INSTALL["pnpm add<br/>@codeeditorland/wind"]
PRELOAD["Preload.js<br/>tauri.config.json"]
LAYERS["Effect-TS layers<br/>TauriLiveLayer"]
RUNTIME["Runtime<br/>Layer.toRuntime"]
SERVICE["Typed service call<br/>Effect.gen"]
INSTALL --> PRELOAD
PRELOAD --> LAYERS
LAYERS --> RUNTIME
RUNTIME --> SERVICE
Wind enforces security at multiple layers:
| Layer | Mechanism |
|---|---|
| Type safety | Full TypeScript / Effect-TS type system across all service boundaries - every invocation carries tagged error types |
| IPC isolation | All backend communication flows through typed Tauri commands, not raw JSON serialization |
| Sandbox | The Sandbox service controls what globals and APIs are exposed to the WebView renderer |
| Network restrictions | The NetworkRestrictions service enforces access controls and blocks unauthorized outbound requests |
| Dependency injection | Effect-TS Layer system ensures services only receive their declared dependencies - no ambient access to globals |
| Telemetry privacy | PostHog configuration supports opt-out, anonymous identifiers, and fallback persistence without PII |
graph LR
SEC["Security Layers"]
TYPE["Type safety<br/>tagged errors"]
ISO["IPC isolation<br/>typed Tauri commands"]
SANDBOX["Sandbox<br/>globals control"]
NET["Network restrictions<br/>access controls"]
DI["Dependency injection<br/>declared deps"]
PRIV["Telemetry privacy<br/>opt-out and PII-free"]
SEC --> TYPE
SEC --> ISO
SEC --> SANDBOX
SEC --> NET
SEC --> DI
SEC --> PRIV
Wind is designed to be compatible with:
| Target | Integration |
|---|---|
Sky |
Consumes Wind services via TauriLiveLayer and __CEL_SERVICES__ global |
VS Code |
Emulates vscode.d.ts environment through Preload.ts shims and Bootstrap/Types/VSCode/ |
Mountain |
Connects via typed Tauri invoke/listen to WindServiceHandlers |
Cocoon |
Shares service interface surface and Effect-TS dependency injection patterns |
Tauri |
Integrates via @tauri-apps/api v2.11.0 with typed command routing |
graph LR
WIND["Wind"]
SKY["Sky<br/>TauriLiveLayer consumer"]
VSCODE["VS Code<br/>vscode.d.ts emulation"]
MOUNTAIN["Mountain<br/>WindServiceHandlers"]
COCOON["Cocoon<br/>shared service surface"]
TAURI["Tauri<br/>@tauri-apps/api v2.11.0"]
WIND --> SKY
WIND --> VSCODE
WIND --> MOUNTAIN
WIND --> COCOON
WIND --> TAURI
- Effect Service Interfaces
- All
Effect-TSservice tags, interfaces, and implementations
- All
- Preload API
- Environment shim and
window.vscodeglobals
- Environment shim and
- Layer Compositions
Tauri,Electron, andTestlayer stacks
- Codegen Documentation
- Service catalog walker, interface extraction, and bridge shape emission
This project is released into the public domain under the Creative Commons CC0
Universal license. You are free to use, modify, distribute, and build upon
this work for any purpose, without any restrictions. For the full legal text,
see the LICENSE
file.
Stay updated with our progress! See
CHANGELOG.md
for a history of changes.
Land is proud to be an open-source endeavor. Our journey is significantly supported by the organizations and projects that believe in the future of open-source software.
This project is funded through NGI0 Commons Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet program. Learn more at the NLnet project page.
| Land | PlayForm | NLnet | NGI0 Commons Fund |
|---|---|---|---|
|
|
|
|
|
- Architecture Overview - Internal module structure
- Why Effect-TS - Design rationale for
Effect-TS - Why Tauri - Design rationale for
Tauri - Land Documentation - Complete documentation index
- Sky - UI component layer
that consumes
Windservices - Cocoon - Extension host sidecar (correlated frontend element)
- Worker - Service worker for caching and offline support
- Mountain - Native
desktop shell and
gRPCbackend - Security Policy
Project Maintainers: Source Open (Source/Open@Editor.Land) | GitHub Repository | Report an Issue