zod

TypeScript-first schema declaration and validation library with static type inference

type-detect

Improved typeof detection for node.js and the browser.