Announcing the Fields form library

Hi All

I am proud to announce the public release of the form system I developed for in house use here at Noble Ai, called simply Fields.

The focus in this library is to handle more elaborate forms that include cascades of async validation, and provide descriptive output types on successful validation for integration with your submission routines. Primitive fields may be built for any type. Larger fields may be composed with Optional, Sum, Product, and Array combinators (implemented as functors).

I am in the last motions of a quick beta cycle, but the 1.0 release may be today. if not the betas will be very close. If you are interested in trying it out, there is a running example available in the repo

yarn run examples: everything

As ever hats off to the other form libraries that are already here, reform and reformality…and maybe others? Admittedly I have not spent much time with them, but my survey from when this project started they did not seem to meet our needs.

Id be very interested to hear your thoughts if you do take a look, particularly @DZakh since we had talked about Generics and parsing a while ago. The system I made for generalizing validations in records is a trick/wart on the project. that id love to clean up with a ppx or other.

(This is currently Rescript 10 code. We have been stuck behind Apollo/Graphql issues in updating.)

Thanks
A

5 Likes