Contract-first API design
Define routes, inputs, and outputs once. The contract drives both runtime behavior and compile-time types.
validatedParams, validatedQuery, validatedBody, validatedHeaders).@standard-community/standard-openapi.itty-spec is built on a lightweight foundation of battle-tested libraries:
@standard-schema/spec): Provides a common interface for schema validation, enabling compatibility with multiple schema libraries.@standard-community/standard-openapi): Converts Standard Schema V1 schemas to OpenAPI 3.1 format for documentation and tooling.This architecture ensures minimal bundle size while providing maximum type safety and developer experience. The library is designed to work seamlessly in edge/serverless environments where every byte counts.