Osprey Native Documentation
Build real native apps for macOS, Windows, iOS, Android, and Web — rendering genuine platform controls or a FerroUI GPU canvas from one ahead-of-time codebase.
Osprey Native (@osprey/native) compiles your application state, signals, and UI ahead of time to native machine code on desktop and mobile, and WebAssembly on the web. Native builds ship no JavaScript engine, no JS bundle, and no desktop JVM.
Choose your rendering model
- Native Platform Controls: SwiftUI on macOS and iOS, WinUI (Windows App SDK, MSIX AppContainer) on Windows, and Android's own views on Android.
- FerroUI / GPUI GPU Canvas: Pixel-identical GPU-accelerated scenes for DAWs (Perception), vector tools, and skinnable UI machines.
- Web & VS Code: Compiles to
wasm32and reads the exact same shared-memory row offsets viaDataView.
Core architecture
- Centralized store & signals (
Signal<T>): Each state slice has its own record type.Keyed::regiontracks compiler-derived signal reads automatically, refreshing only changed regions. - Pure
update& typed algebraic effects: Network, files, storage, and host-held slices (Slices.fetch) live behind typed effects so production hosts execute real OS calls while tests supply deterministic fixtures. - Zero-serialization shared-memory bridge: Every update publishes fixed-width rows (
ViewRow152 B,SceneShape88 B, UTF-8 text run,AskRow32 B) defined once innative.td. - Multi-syntax authoring: Write in Default Osprey (
.osp), ML (.ospml), Python flavor (# osprey: flavor=python), or TypeScript flavor today — with Dart flavor coming soon and Kotlin flavor under consideration.
Next steps
- Build Your First App → — step-by-step guide to state,
update,view, and running on macOS, Windows, iOS, and Android. - Shared-Memory Bridge → — how SwiftUI, WinUI, FerroUI, GPUI, Android, and WebAssembly lease and validate frames in place.
- Accessibility & Automated Testing → — how UI machines emit typed
Accessibletrees for AccessKit,@osprey/uitest, and AI agents. - Osprey Language Docs → — language reference, Hindley-Milner types, algebraic effects, and compiler installation.
Osprey Native is actively evolving. Try it on your projects, validate it against your workload, and assess the risks before relying on it in production.