... maybe enscripten indexdb storage next?
Change compile time checks from "if" to "when", for proper type definitions.