Valibot and Zod schemas from protovalidate rules
protoc-gen-pvschema-ts is a protoc plugin. It reads the buf.validate rules in your .proto files and generates schemas for form validation in a frontend.
Small in the browser
A generated Valibot schema added 2.6 KB after gzip in our measurement. The protovalidate runtime added 81 KB.
Messages from your schema library
The schemas use the standard actions of Valibot and Zod, so their locales and message overrides apply.
Checked against protovalidate
The tests run the same values through the generated schemas and through protovalidate, and record each difference.