typia
I’ve seen a lot of traction from this library lately, and compared to the juggernauts like zod, it leverages some of the newer technologies available to the ecosystem:
//----
// examples/checkString.ts
//----
import typia, { tags } from "typia";
export const checkString = typia.createIs<string>();
//----
// examples/checkUUID.js
//----
import typia from "typia";
export const checkString = (() => {
return (input) => "string" === typeof input;
})();
Zod would instead be using runtime types to generate static types, but here typia is creating runtime types from static types, using a TypeScript transformer.
Super neat, and I certainly did not realize how ready the TypeScript plugin ecosystem was for prime time until seeing this.