alepha@docs:~/docs/packages/@alepha-desktop$
cat shell.md | pretty
2 min read
Last commit:

#@alepha/desktop - Shell

#Installation

npm install @alepha/desktop

#Overview

The main thread of a compiled desktop app: the native window, the instance lock, and the supervisor that owns the server Worker.

alepha compile --desktop generates the entry that runs it: it creates an Alepha container with this module, points WorkerSupervisorProvider at the generated supervisor Worker, and exits with what DesktopShell``.run() answers.

Native code (webview-bun, the Objective-C runtime, flock) loads lazily on first use, so importing this module has no native side effect. In tests the window, the lock and the supervisor are memory implementations.

macOS only.

#API Reference

#Providers