DEV Community

Cover image for Valibot: A New Approach to Data Validation in JavaScript

Valibot: A New Approach to Data Validation in JavaScript

Nick Taylor on June 17, 2024

I recently got to hang with the creator of Valibot, Fabian Hiller on a live stream. We discussed its history of the project and did some live codin...
Collapse
 
bekahhw profile image
BekahHW • Edited

It's interesting to see a lot of project's lottery factor correlate with their contrib confidence. You can also find more about the lottery factor here:

Collapse
 
nickytonline profile image
Nick Taylor

100%

Collapse
 
nickytonline profile image
Nick Taylor

Fabian (creator of Valibot) mentioned the following which I'll update in the blog post:

  • "If this were running in an application, it would throw". It only throws when using v.parse, v.safeParse does not throw.
Collapse
 
nickytonline profile image
Nick Taylor • Edited

If you're interested in catching the recording of our live stream, you can check it out below.

While you're there, smash that subscribe button. It's appreciated. 😎

Collapse
 
hinogi profile image
Stefan Schneider

Just to add another one to the stack of validation libs
effect/schema

Collapse
 
nickytonline profile image
Nick Taylor

Yeah the Effect ecosystem is super interesting. I actually had a chance to chat with the creator of Effect recently if you want to check it out.

An Introduction to Effect - YouTube

Effect is a powerful TypeScript library designed to help developers easily create complex, synchronous, and asynchronous programs. Michael Arnaldi, Creator o...

favicon youtube.com
Collapse
 
hinogi profile image
Stefan Schneider

I am still wrestling with it. NestJS which I use for backend stuff, already has a lot of those build in or has comparable concepts at least, via DI.
In Frontend, I am absolutely lost on where to put it.
I especially like the tagged Errors and such.

Collapse
 
nickytonline profile image
Nick Taylor

Yeah!

A T-Rex saying Yeah!

Collapse
 
kansoldev profile image
Yahaya Oyinkansola

I really like the idea behind this library, it cam be built up from something useful to something complex, would see how I can use it in my next Project

Collapse
 
nickytonline profile image
Nick Taylor

Yeah I really like the project and the pipe function is soooo goood.

Hackerman from Kung Fury putting on a Nintendo Power glove

Collapse
 
collectivecloudperu profile image
Nube Colectiva

Thanks for the tool, it has a very good UI.