Flex storage uses seroval for serializing/deserializing and lz-string for compression/decompression.
import { flexStorage, adapterLocalStorage, cloneFunction } from '@novely/flex-storage';
const storage = flexStorage({
adapter: adapterLocalStorage()
})
const engine = novely({
...,
storage,
cloneFunction
});