Osprey documentation

Osprey is built for safety, elegance and performance: typed effects and Result for handling failures, inferred types for concise code, and LLVM native compilation. Start with a storage handler, then use the same pattern in web and mobile apps.

Osprey exports and externs: one app for the Mac and iPhone with Swift (4:21). English captions are available in the player.

Start here

Tutorials

Proofs and mathematics

Lean provides the development oracle for compatible proof checking while Osprey builds its independent proof technology and replaceable disciplines.

Build applications

  • Osprey Native — the application framework: one store, signals, typed screens and capabilities; SwiftUI, VS Code and GPU hosts draw them.
  • Build a Mac and iPhone app — build Storage and connect its logic to SwiftUI and platform services.
  • Build an iOS and Android app — handle application requests as native commands for SQLite, GitHub and reactive controls.
  • Build a web app — follow Talon Bank from storage and audit handlers to shared web, Android and iOS clients.
  • Explore the WebAssembly studio — compare the Default and ML flavors in a browser-hosted example.
  • Browse working examples — study native, HTTP, WebSocket, terminal, graphics, and WebAssembly programs.
  • Document your modules — generate HTML API references, add Markdown guides and custom CSS, and test documentation examples.
Prism Synth · connect a patch and play it in a native macOS window.
Prism Synth · connect a patch and play it in a native macOS window.

Test and investigate

  • Hunt for bugs — explore symbolic inputs with KLEE, inspect source-level findings and replay them on a native build.

Packages

  • Package manager — publish to a folder registry, resolve dependencies and build from verified, locked source. Hosted publishing remains planned.
  • Packages in VS Code — add and remove direct dependencies, review unverified-release warnings, then fetch and build locked source. Includes real editor screenshots.
  • Package specification — the normative contract: folder registry, manifests, identity, resolution, locks, the REST API and the command surface.

Language

A syntax flavor is a way to write Osprey; all three share its compiler, types and effects. Default uses .osp and braces; ML uses .ospml and indentation; Python flavor uses .py with # osprey: flavor=python. Python-flavor files compile as Osprey, not CPython.

Reference

  • Functions — file I/O, strings, collections, processes, networking, JSON document queries, and concurrency.
  • Types — built-in value and runtime types.
  • Operators — arithmetic, comparison, and pipeline operators.
  • Keywords — language syntax by keyword.