skathi 0.4.0

Vue and Svelte apps as native desktop programs: embed the Skathi engine (gpui and JavaScriptCore) in your own executable
Documentation

skathi

Run a Skathi app (Vue 3 or Svelte 5, rendered by gpui, scripted in JavaScriptCore) inside your own Rust executable.

[dependencies]
skathi = "0.3"
struct Hello;

#[skathi::module]
impl Hello {
    pub fn greet(&self, who: String) -> String {
        format!("hello, {who}")
    }
}

let ui = skathi::Builder::new()
    .payload_file("app/dist/release/.sk/app.skpk")
    .module("hello", Hello)
    .spawn()?;
ui.wait();

The app imports it as import { greet } from "native:hello", typed by sk types.

The app's payload is built with the sk CLI from @skathi-native/cli (bunx sk publish --payload-only). The crate documentation covers the payload, the build prerequisites (the static CRT and clang-cl on Windows) and the build script an executable needs.

Licensed under MIT or Apache-2.0, at your option.