A powerful and extensible schema builder for TypeScript, part of the Farrow web framework ecosystem. Current stable version is 2.3.3. It provides type-safe runtime validation with a composable schema API, allowing developers to define and validate data structures with full TypeScript inference. Key differentiators include deep type inference from schemas, support for complex nested schemas, and integration with Farrow's HTTP pipeline for end-to-end type safety. Release cadence is irregular, tied to Farrow framework updates. Compared to Zod or io-ts, farrow-schema is designed specifically for Farrow's module-oriented architecture.
npm install farrow-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Schema definition and validation using farrow-schema with TypeScript type inference.
Update to use Schema.object() wrapper: Schema.object({ field: ... }) instead of plain object.Upgrade TypeScript to >=4.3 or use explicit type annotations.
Use import { Schema } from 'farrow-schema'.Replace any with unknown in schema definitions.
Check for ok property instead of success, and use value instead of data.
Change import to: import { Schema } from 'farrow-schema'Upgrade TypeScript or wrap object definition with Schema.object().
Check for ok and value; upgrade to v2.x.
Replace with Schema.unknown().