superstruct
A simple and composable way to validate data in JavaScript (and TypeScript).
typed-struct
A JavaScript utility library (written in TypeScript) for creating objects that store their properties in a buffer for serialization/deserialization similar to structures in C