|
|
|
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.
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 Code Renderer Environment - Shim
ElectronandNode.jsAPIs so VS Code workbench code runs unchanged inside theTauriWebView. - Route Through Tauri Commands - Connect every frontend request to
Mountain'sRusthandlers via Tauri's typedinvokeandeventsystem, avoiding raw serialization boundaries. - Enable Code Generation - Walk the VS Code service 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. Generated 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).
| 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
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\nConfiguration Β· Lifecycle Β· Storage Β· Telemetry"]:::effectts
UIServices["Clipboard Β· Commands Β· Editor Β· Terminal\nStatusBar Β· Sidebar Β· ActivityBar Β· Panel\nSearch Β· Notifications Β· QuickInputβ¦"]:::effectts
WorkbenchServices["Workbench* generated 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 |
| Model | Source/Service/Effect/Model/ |
Text model 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 Model Resolver | Source/Service/Effect/TextModelResolver/ |
Text model 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 |
| Generated Catalog | Source/Effect/Generated/ |
Auto-generated 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) |
Wind/
βββ Source/
β βββ Preload.ts # VS Code environment emulation in Tauri WebView
β βββ ESBuild.ts # ESBuild bundling configuration
β βββ Effect/ # Auto-generated 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 model 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 model 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/ # Auto-generated VS Code service interfaces
β β βββ WorkbenchActivity/ # Generated workbench activity bridge
β β βββ WorkbenchClipboard/ # Generated workbench clipboard bridge
β β βββ WorkbenchCommand/ # Generated workbench command bridge
β β βββ WorkbenchContextKey/ # Generated workbench context key bridge
β β βββ WorkbenchDialog/ # Generated workbench dialog bridge
β β βββ WorkbenchEditor/ # Generated workbench editor bridge
β β βββ WorkbenchExtension/ # Generated workbench extension bridge
β β βββ WorkbenchHost/ # Generated workbench host bridge
β β βββ WorkbenchKeybinding/ # Generated workbench keybinding bridge
β β βββ WorkbenchLayout/ # Generated workbench layout bridge
β β βββ WorkbenchLifecycle/ # Generated workbench lifecycle bridge
β β βββ WorkbenchNotification/ # Generated workbench notification bridge
β β βββ WorkbenchProduct/ # Generated workbench product bridge
β β βββ WorkbenchProgress/ # Generated workbench progress bridge
β β βββ WorkbenchStorage/ # Generated workbench storage bridge
β β βββ WorkbenchTheme/ # Generated workbench theme bridge
β β βββ WorkbenchWorkspace/ # Generated 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βπ (Astro UI layer),Cocoonβπ¦ (extension host),Workerβπ© (service worker) - Protocol:
TauriIPC (invoke+listen)
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.jsfrom Wind in 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 model 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 model 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 |
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 |
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 |
- 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 generation
- 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 Wind services
- Cocoonβπ¦ - Extension host sidecar (correlated frontend element)
- Workerβπ© - Service worker for caching and offline support
- Mountainββ°οΈ - Native
desktop shell and
gRPCbackend
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 |
|---|---|---|---|
Project Maintainers: Source Open (Source/Open@editor.land) | GitHub Repository | Report an Issue | Security Policy