# guillaumepotier/parsley.js

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/guillaumepotier-parsley-js).**

8,978 stars · 1,278 forks · JavaScript · MIT

## Links

- GitHub: https://github.com/guillaumepotier/Parsley.js
- Homepage: http://parsleyjs.org
- awesome-repositories: https://awesome-repositories.com/repository/guillaumepotier-parsley-js.md

## Description

Parsley.js is a JavaScript form validation library that provides a client-side data validator for verifying input correctness before submission. It functions as an HTML attribute-based validator, allowing constraints to be defined declaratively within HTML data attributes to enforce rules without requiring custom scripts.

The framework distinguishes itself through a customizable validation system that supports user-defined rules and custom error message templates. It includes a remote validation interface to verify form values against server endpoints via asynchronous network requests and supports organized validation grouping to handle specific subsets of a form independently.

The library covers a broad range of frontend data integrity capabilities, including input whitespace cleansing and dynamic form adaptation to monitor real-time modifications to fields. It provides mechanisms for form submission interception, validation trigger configuration, and customizable error display rendering.

## Tags

### Web Development

- [Client-Side Input Validators](https://awesome-repositories.com/f/web-development/client-side-input-validators.md) — Provides a frontend tool for cleansing whitespace and verifying input correctness before data is submitted to a server.
- [Declarative HTML Validation](https://awesome-repositories.com/f/web-development/declarative-html-validation.md) — Implements a declarative system where validation constraints are defined using HTML data attributes.
- [Asynchronous Validation Interfaces](https://awesome-repositories.com/f/web-development/asynchronous-validation-interfaces.md) — Implements a remote validation interface to check form values against server endpoints using asynchronous network requests.
- [Attribute-Driven Validation](https://awesome-repositories.com/f/web-development/attribute-driven-validation.md) — Enforces validation rules through HTML data attributes, removing the need for custom JavaScript definitions. ([source](https://github.com/guillaumepotier/Parsley.js/blob/master/package.json))
- [Declarative Attribute Validation](https://awesome-repositories.com/f/web-development/declarative-attribute-validation.md) — Functions as an HTML attribute-based validator, allowing constraints to be defined declaratively within data attributes.
- [Form Validation](https://awesome-repositories.com/f/web-development/form-validation.md) — Executes validation using a combination of built-in validators, community extensions, and remote services. ([source](https://github.com/guillaumepotier/Parsley.js/blob/master/index.html))
- [Form Validation Libraries](https://awesome-repositories.com/f/web-development/form-validation-libraries.md) — A JavaScript library for validating HTML form inputs using data attributes to enforce rules without writing custom scripts.
- [Remote Input Validation](https://awesome-repositories.com/f/web-development/remote-input-validation.md) — Provides a remote validation interface to verify form values against server endpoints via asynchronous network requests. ([source](https://github.com/guillaumepotier/Parsley.js/blob/master/UPGRADE-2.0.md))
- [Remote Input Verification](https://awesome-repositories.com/f/web-development/remote-input-verification.md) — Verifies form field values against remote server endpoints in real time using asynchronous requests.
- [DOM Mutation Observation](https://awesome-repositories.com/f/web-development/dom-mutation-observation.md) — Monitors the DOM for structural changes to automatically apply validation rules to newly added input elements.

### Data & Databases

- [Field Validation](https://awesome-repositories.com/f/data-databases/field-validation.md) — Checks individual form fields against defined criteria and returns a boolean validity status. ([source](https://github.com/guillaumepotier/Parsley.js/blob/master/UPGRADE-2.1.md))

### Programming Languages & Runtimes

- [Asynchronous Validation](https://awesome-repositories.com/f/programming-languages-runtimes/asynchronous-promise-interfaces/asynchronous-validation.md) — Performs asynchronous server-side verification of field validity using JavaScript promises.

### Software Engineering & Architecture

- [Custom Validation Rules](https://awesome-repositories.com/f/software-engineering-architecture/custom-validation-rules.md) — Provides a framework for extending validation logic with domain-specific checks through a pluggable registry.
- [Asynchronous Validators](https://awesome-repositories.com/f/software-engineering-architecture/custom-validation-rules/asynchronous-validators.md) — Allows the creation of user-defined rules that return promises for asynchronous validation. ([source](https://github.com/guillaumepotier/Parsley.js/blob/master/CHANGELOG.md))
- [Input Validation Triggers](https://awesome-repositories.com/f/software-engineering-architecture/event-driven-triggers/input-validation-triggers.md) — Executes data integrity checks immediately upon user interaction events like blur or keyup.
- [Validation Grouping](https://awesome-repositories.com/f/software-engineering-architecture/validation-grouping.md) — Supports organizing form fields into named sets to validate specific subsets of a form independently. ([source](https://github.com/guillaumepotier/Parsley.js/blob/master/CHANGELOG.md))

### User Interface & Experience

- [Form Validation](https://awesome-repositories.com/f/user-interface-experience/form-and-input-management/form-validation.md) — Provides a comprehensive system for verifying that user input meets specified criteria before processing.
- [Custom Validation Messages](https://awesome-repositories.com/f/user-interface-experience/custom-validation-messages.md) — Provides a system for defining how validation error messages are rendered in the interface using custom containers. ([source](https://github.com/guillaumepotier/Parsley.js/blob/master/CHANGELOG.md))
- [Form Management](https://awesome-repositories.com/f/user-interface-experience/form-management.md) — Manages validation rules for dynamic forms that change structure or fields during user interaction.
- [Form Submission Management](https://awesome-repositories.com/f/user-interface-experience/form-submission-management.md) — Intercepts the form submission process to prevent sending data if the validation state is invalid. ([source](https://github.com/guillaumepotier/Parsley.js/blob/master/CHANGELOG.md))
- [Dynamic Form Generation](https://awesome-repositories.com/f/user-interface-experience/forms/dynamic-form-generation.md) — Adapts validation rules in real-time as form fields are added or removed from the DOM. ([source](https://github.com/guillaumepotier/Parsley.js/blob/master/index.html))
- [Validation Behavior Configuration](https://awesome-repositories.com/f/user-interface-experience/validation-behavior-configuration.md) — Offers options to override default validation triggers and interface responses to align with specific project requirements. ([source](https://github.com/guillaumepotier/Parsley.js/blob/master/index.html))
- [Validation Error Renderers](https://awesome-repositories.com/f/user-interface-experience/validation-error-renderers.md) — Offers configurable containers and rendering functions to display validation errors in the user interface.

### Part of an Awesome List

- [Form Validation](https://awesome-repositories.com/f/awesome-lists/devtools/form-validation.md) — Easy-to-use form validation library.
