Parsley is a JavaScript library, that can work with both jQuery or Zepto, designed to validate forms easily. It is built with UX concerns in mind and tries to simplify details for the user.

Is this what you're looking for?

Answer from Diego Cardozo on Stack Overflow
๐ŸŒ
Stackshare
stackshare.io โ€บ npm-validate-js โ€บ alternatives
validate.js Alternatives
Explore the pros & cons of validate.js and its alternatives. Learn about popular competitors like jQuery, React, and AngularJS
Discussions

javascript - JQuery Validation - Alternatives
Does anyone know of any other good JQuery-compatible validation libraries besides JQuery Validate? I've been having a lot of difficultly with it so I want to see if there is anything better befor... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Replace jQuery Validation Plugin with a dependency-free alternative
According to the section on Form Validation: By default, WFP recommends a jQuery Validation Plugin, which is well documented and actively supported. Please, refer to its documentation for ways to i... More on github.com
๐ŸŒ github.com
13
March 17, 2016
JS validator alternatives to JSLint? - javascript
Is JSLint it as far as js validation tools go, or are there others? More on stackoverflow.com
๐ŸŒ stackoverflow.com
Any alternatives to this simple Javascript validation? - Stack Overflow
Can anyone tell me what are the alternatives to validate user input? this is just a very basic code I wrote today. there is a button coded in HTML when the user click on it, it will prompt for in... More on stackoverflow.com
๐ŸŒ stackoverflow.com
June 12, 2017
๐ŸŒ
npm Trends
npmtrends.com โ€บ joi-vs-validate.js-vs-validator
joi vs validate.js vs validator | npm trends
Comparing trends for joi 18.0.1 which has 13,592,128 weekly downloads and 21,155 GitHub stars vs. validate.js 0.13.1 which has 561,950 weekly downloads and 2,616 GitHub stars vs. validator 13.15.15 which has 15,239,971 weekly downloads and 23,579 GitHub stars.
๐ŸŒ
GitHub
github.com โ€บ wfp โ€บ ui โ€บ issues โ€บ 81
Replace jQuery Validation Plugin with a dependency-free alternative ยท Issue #81 ยท wfp/designsystem
March 17, 2016 - According to the section on Form Validation: By default, WFP recommends a jQuery Validation Plugin, which is well documented and actively supported. Please, refer to its documentation for ways to i...
Author ย  andrewholgate
๐ŸŒ
Formvalidation
formvalidation.io
formvalidation.io
Loading your experienceโ€ฆ This wonโ€™t take long
๐ŸŒ
npm Trends
npmtrends.com โ€บ just-validate-vs-pristinejs-vs-validate.js-vs-validator.js-vs-validatorjs
just-validate vs pristinejs vs validate.js vs validator.js vs validatorjs | npm trends
Comparing trends for just-validate 4.3.0 which has 7,062 weekly downloads and 585 GitHub stars vs. pristinejs 1.1.0 which has 3,559 weekly downloads and 433 GitHub stars vs. validate.js 0.13.1 which has 695,413 weekly downloads and 2,615 GitHub ...
Find elsewhere
๐ŸŒ
DEV Community
dev.to โ€บ shanu001x โ€บ top-5-validation-libraries-for-javascript-in-2024-35la
Top 5 Validation Libraries for JavaScript in 2024 - DEV Community
August 3, 2024 - Joi and Yup are excellent for server-side and client-side validation. Validator.js is perfect for straightforward string validation, and class-validator is great for TypeScript and NestJS projects.
Top answer
1 of 2
11

They are used for different scenarios:

  • validator is a library to validate any kind of object and it's not associated with any framework.

  • express-validator uses validator library to validate expressjs routes. Basically you can validate express routes out of the box using validator lib.

In my honest opinion you can easily create your own validator middleware. Specially if you are new to Node.js it will help you to understand how middlewares work. If you are not interested on that and you have an express application feel free to use express-validator

Also I really recommend JOI as a validator lib https://github.com/hapijs/joi it's simple and it works well.

Here is an example of a middleware (I have not tested)

const Joi = require('joi')
module.exports = function validate(joiSchema) {
  return async (req, res, next) => {
    const result = Joi.validate(req.body, joiSchema, {
      allowUnknown: true,
      abortEarly: false
    })

    if (result.error) {
      throw new result.error
    }

    await next()
  }
}

  // express route
  router.post(
    '/create',
    validateMiddleware({
      body: {
        body: { firstName: Joi.string(), lastName: Joi.string() }
      }
    }),
    (req, res, next) => {
    // your logic
   })
2 of 2
0

Express-validator is used as middleware, the idea with express-validator is to check bad input before it reaches your controller.

Now, if you are using validator, you can make your own validation function in which you will simply pass the data and it will tell if the input is in accordance to it (Just like checking an Email, here you can have a function, which will check if input given to it is a function or not).

In case you are using Services in your structure, then you can use validator as I feel it's easy and of more control than express-validator

๐ŸŒ
GitHub
github.com โ€บ validatorjs โ€บ validator.js
GitHub - validatorjs/validator.js: String validation ยท GitHub
For an alternative, have a look at Yahoo's xss-filters library or at DOMPurify. ... Remember, validating can be troublesome sometimes.
Starred by 23.8K users
Forked by 2.4K users
Languages ย  JavaScript
๐ŸŒ
GitHub
github.com โ€บ vlucas โ€บ vlid
GitHub - vlucas/vlid: Lightweight validation library with NO dependencies. A nice Joi alternative with a similar API.
May 20, 2019 - Lightweight Joi-like validation library with NO dependencies targeting web browsers and Node.js. A nice Joi alternative with a similar API.
Starred by 64 users
Forked by 6 users
Languages ย  JavaScript 99.7% | Shell 0.3% | JavaScript 99.7% | Shell 0.3%
๐ŸŒ
Libhunt
js.libhunt.com โ€บ validator-js-alternatives
validator.js Alternatives - JavaScript Validation | LibHunt
Based on the "Validation" category. Alternatively, view validator.js alternatives based on common mentions on social networks and blogs.
๐ŸŒ
Reddit
reddit.com โ€บ r โ€บ typescript โ€บ comments โ€บ unu8ps โ€บ whats_your_favorite_data_validation_library_zod
r/typescript on Reddit: What's your favorite data validation library? Zod, myzod, io-ts, etc
May 12, 2022 - Here's a performance comparison of most Typescript-compatible validation libraries including Yup. joi is not included because it's JS only, but you can see that Yup is the slowest option by far.
๐ŸŒ
Libhunt
js.libhunt.com โ€บ validate-js-alternatives
validate.js Alternatives - JavaScript Validation | LibHunt
March 2, 2020 - Lightweight JavaScript form validation library inspired by CodeIgniter. Tags: Validation, Validate, Browser, Browserify, Client, DOM, Form, Server.
๐ŸŒ
npm
npmjs.com โ€บ package โ€บ validator
validator - npm
Here is a list of the sanitizers currently available. XSS sanitization was removed from the library in 2d5d6999. For an alternative, have a look at Yahoo's xss-filters library or at DOMPurify.
      ยป npm install validator
    
Published ย  Dec 18, 2025
Version ย  13.15.26
Author ย  Chris O'Hara
๐ŸŒ
Libhunt
js.libhunt.com โ€บ jquery-validation-alternatives
jquery-validation Alternatives - JavaScript Validation | LibHunt
November 12, 2025 - Allows writing the same validation logic for the client and server side. ... KnexBridge โ€” A TypeScript monorepo that introspects Knex databases and generates clean TypeScript types and Zod schemas automatically. * Code Quality Rankings and insights are calculated and provided by Lumnify. They vary from L1 to L5 with "L5" being the highest. Do you think we are missing an alternative of jquery-validation or a related project?
๐ŸŒ
Libhunt
js.libhunt.com โ€บ vee-validate-alternatives
vee-validate Alternatives - JavaScript Validation | LibHunt
1 month ago - Do you think we are missing an alternative of vee-validate or a related project? Add another 'Validation' Library ยท InfluxDB โ€“ Database Purpose-Built for High-Resolution Data ... ๐Ÿ Minimal: Only handles the complicated form concerns, gives you full control over everything else ยท ๐Ÿ˜Ž UI Agnostic: Works with native HTML elements or your favorite UI library components ยท ๐Ÿฆพ Progressive: Works whether you use Vue.js as a progressive enhancement or in a complex setup