Expand description
Skathi host shell: JavaScript (JSC via redjs) inside a gpui window.
[dev] (reads packages/cli/dist, polls changes.json for HMR) or [prod]
(--features prod, runs the SKPK [payload] stamped into the exe) is aliased as [boot_mode];
both expose boot(&JsRuntime) and poll_frame(frame_no: u32).
Run through [run_app]: run_exe (the process is the app) or embed (another program
runs the engine on its own thread).
Re-exports§
pub use heapcount::Counting as HostAllocator;
Modules§
- embed
- Skathi as a library: another program runs the whole engine on a thread of its own and gives
the app native modules (
import { … } from "native:<name>"): typed functions, tasks and events. On macOS, AppKit owns the process main thread: useBuilder::run_on_main_threadwith an application cleanup callback instead. - heapcount
- Live Rust heap bytes: the devtools
memcommand’s “Rust heap” row. - hotkeys
- System-wide hotkeys for JavaScript (
__sk_appHotkeys), over sk-hotkeys. Values and callbacks stay on the VM thread; the service’s worker posts owned events. - js
- Direct JavaScriptCore bindings for embedding applications.
- tray
- Native application tray, shared by Rust embedders and direct JavaScript methods. Values and callbacks stay on the VM thread; the native pump carries only IDs.
Functions§
- run_exe
- The host exe’s
main: this process IS the app.