Skip Navigation

Gallery

SpaceWasm: Quicker path to flight-ready autonomy

11/30/2026
SpaceWasm: Quicker path to flight-ready autonomy

Getting autonomy software onto a spacecraft takes years. Mars 2020's Enhanced Navigation (ENav) took about five: one year to develop the algorithm, two to write and integrate hardened C flight code, and two more for V&V. Because ENav shares memory with the rest of flight software, the project is still cautious about updating it.

SpaceWasm is an open-source WebAssembly interpreter for flight software and the engine behind advanced sequencing in F Prime (F´). Each module runs in its own sandbox, has a compute budget, and reaches the spacecraft only through an interface defined up front. If a module has a memory bug or uses up its budget, it stops and flight software keeps running. Updating a module is much simpler than updating flight software, and code can be written in any of about 70 languages that compile to WebAssembly, including Fpy and Rust for F´ advanced sequences.

The video covers:

  • An ENav-style navigation planner running as a Wasm module in simulation
  • How SpaceWasm compares with other ways to run autonomy code alongside flight software
  • Verification and validation: 96% unit test coverage, the WebAssembly spec tests, fuzzing and differential fuzzing, formal verification with Kani, and end-to-end tests in F´
  • A new F´ advanced sequencer component, WasmSequencer, (released in F´ v4.4.0) and a Wasm module for Mars 2020 heritage flight software
  • Adoption by Firefly Aerospace, Moonfall, and Skyfall
  • Upcoming SRTD work on onboard downlink prioritization, agentic behaviors, and learning-based navigation

Source code: https://github.com/nasa/spacewasm
F´ advanced sequencing docs: https://fprime.jpl.nasa.gov/devel/docs/reference/system-functional/advanced-sequencing/
Authors: 358T (Andrei Tumbar, Cole Wilson, Harry Wang, Steven Myint)