Vinejs - js validation lib

2024-04-05 - [javascript, typescript]


Just saw this new lib today - Vinejs. It called my attention as it is very similar to zod, but seems to be faster. Definitely I will consider it for my next pet projects.

Basic Example

import vine from '@vinejs/vine'

const schema = vine.object({
  email: vine.string().email(),
  password: vine
    .string()
    .minLength(8)
    .maxLength(32)
    .confirmed()
})

const data = getDataToValidate()
await vine.validate({ schema, data })

Benchmarks

Benchmarks


Return to list