KerbalObjects is a Rust crate that allows anyone to read or write a Kerbal Machine Code or Kerbal Object file.
See docs/ for examples and explanations of KSM and KO file formats and how to create or read them.