Skip to content
Changelog

lightair-core's crates

The Rust crates in lightair-core that Lightair's desktop and mobile apps are built on, what each one does, and how to depend on them by git at a pinned commit.

In short

  • lightair-core is the set of Rust crates every Lightair app is built on, from the project model to packages and the Remote API.
  • The crates aren't on crates.io. Depend on them by git, pinned to one commit, the same commit for every crate you use.
  • They're dual-licensed, GPL-3.0-or-later or commercial terms.

lightair-core (github.com/Lightair-Project/lightair-core) holds the Rust crates that Lightair’s desktop app, Lightair Live and Lightair Editor share, so a fix in one reaches all three. None of them depends on GPUI or Chromium; those stay in the desktop app.

The crates aren’t published to crates.io. Add them by git, pinned to a commit:

[dependencies]
lightair-model = { git = "https://github.com/Lightair-Project/lightair-core", rev = "<commit>" }
lightair-store = { git = "https://github.com/Lightair-Project/lightair-core", rev = "<commit>" }
  • Pin a commit with rev, rather than following a branch. Nothing has reached 1.0, so formats and APIs still change between commits.
  • Use the same rev for every crate. The crates depend on each other; one commit gives you one copy of each, so their types match.
  • The crates use the Rust 2024 edition. lightair-core itself builds with the toolchain named in its rust-toolchain.toml.

To work on lightair-core and your app together, point the dependency at a local checkout instead:

lightair-model = { path = "../lightair-core/crates/lightair-model" }
Crate What it does
lightair-model The document model: workspaces, canvases, scenes, objects, sources and tracks; commands, undo and diffing. No I/O.
lightair-store Workspace folders on disk: atomic saves, the autosave journal, crash recovery, migrations, portable copies, the recordings index and Studio take files. See Workspace folder.
lightair-pngtuber The .lairava PNGtuber format and the runtime that animates one from a microphone. See PNGtuber.
lightair-fonts Fonts for every app: the Google Fonts catalogue, font references, resolving and fallback, a verified cache, and the font set the renderer draws with.
Crate What it does
lightair-engine The live engine: projects, the program clock, frame rings, the scene renderer on the GPU, the audio mix, encoders, outputs, recording and clips.
lightair-capture Captures of displays, windows and apps, cameras and capture cards, and the sound the computer or one app plays, handed to the engine without copying. macOS and Windows.
lightair-encode Encoders and recording files: VideoToolbox (H.264, HEVC, ProRes) and AudioToolbox (AAC, Opus) on Apple platforms, Media Foundation (H.264, HEVC, AAC) on Windows, and crash-safe MP4, MOV and Matroska files. Software H.264 is behind the openh264 feature.
lightair-feed Sending encoded picture and sound: RTMP and RTMPS, SRT, SRTLA bonding over several networks, MPEG-TS, reconnects and the send queue.
lightair-audio The real-time audio engine: tracks, buses, mixes, effects and meters.
lightair-isolate Voice isolation: a 48 kHz neural voice isolator, as a real-time stream and an offline renderer, on Metal. Apple platforms only; the model’s weights are downloaded, pinned by SHA-256, not bundled.
lightair-voice Voices and hearing: text to speech (the system’s voice, Cartesia, ElevenLabs, Gemini) streamed with mouth shapes, cloud speech to text, and the filter for what’s said aloud.
lightair-render The offline renderer and the Editor’s model: takes, recordings and sequences to finished videos, with effects and export.
lightair-overlay Overlays drawn without the scene renderer: the native widgets (chat, alerts, goals and others), the alert queue and rules, and text and timer styles.
Crate What it does
lightair-live Live platforms: one event model for every platform’s chat and audience events, and the readers that bring them in.
lightair-widgets Widgets: the overlay pages Lightair serves on the computer, fed by the event bus. See Widgets.
lightair-automation Automations: triggers, conditions and steps run on the event bus.
lightair-remote The Remote API: JSON-RPC and obs-websocket v5 over WebSocket, and MCP for agents. See Connect to Lightair.
Crate What it does
lightair-packages Packages: the lightair-package.json manifest and its checks, reading package folders and .airpkg files, the installed store, a show’s packages.json and lock file, import and export. See Packages.
lightair-script Runs script plugins: one JavaScript isolate per package on its own thread, every call into Lightair checked against the package’s permissions, with time and memory budgets. See Script plugins.
lightair-check The static checks a package passes before a catalog lists it, and the lightair-check command line that runs them.
lightair-pack The lightair-pack command line for package authors (build, check, publish) and for people running a catalog (keys, init, add, sign, revoke). See Publish a package.
Crate What it does
lightair-platform What Lightair needs from the operating system (paths, credentials, input, devices and more), for macOS and Windows behind one API.

lightair-pack and lightair-check are programs as well as crates. Install them with Cargo:

Terminal window
cargo install --git https://github.com/Lightair-Project/lightair-core lightair-pack
cargo install --git https://github.com/Lightair-Project/lightair-core lightair-check