@alwith/runtime
v0.1.4
Published
The closed ALwith Runtime process for your platform: npm installs the matching binary, stageRuntime() copies it into your app's sidecars at build time
Downloads
258
Readme
@alwith/runtime
The closed ALwith Runtime process, distributed as npm platform packages: bun install (or npm) pulls the
one binary for your platform via optionalDependencies; nothing else is downloaded, no credentials.
At build time:
import { stageRuntime } from "@alwith/runtime/stage"
stageRuntime("aarch64-apple-darwin", "src-tauri/binaries/alwith-runtime-aarch64-apple-darwin", "src-tauri/resources/licenses")The binary is verified against the sha256 pinned in the platform package before it is copied; the Runtime's LICENSE and third-party notices land next to your app's other licence files.
Cross builds must install the optional package for the target too: bun install --os='*' --cpu='*'.
Platforms: macOS arm64, Linux x64/arm64, Windows x64/arm64. The protocol the binary speaks is
documented in the alwith-api repository (PROTOCOL.md); talk to it with @alwith/api.
