awesome-repositories.com
Blog
MCP
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
imbrn avatar

imbrn/v8n

0
View on GitHub↗
4,145 stars·105 forks·JavaScript·MIT·6 vuesimbrn.github.io/v8n↗

V8n

v8n est une bibliothèque de validation de données JavaScript utilisée pour vérifier que les valeurs, objets et tableaux répondent à des critères spécifiques. Il fonctionne comme un validateur basé sur un schéma et un moteur de validation asynchrone, utilisant une API fluide pour construire des séquences de règles et de contraintes chaînables.

Le framework se distingue par sa capacité à exécuter des promesses et des requêtes réseau pendant le processus de validation pour déterminer si une valeur est valide. Il permet la création de schémas de validation réutilisables et fournit un framework de règles personnalisable où les utilisateurs peuvent définir leur propre logique et configurer la façon dont les résultats d'erreur sont renvoyés.

La bibliothèque couvre un large éventail de capacités de vérification, incluant la vérification du type de données pour les primitives et prototypes, la validation du contenu des chaînes via regex et jeux de caractères, et les contraintes numériques. Elle prend également en charge la vérification d'objets complexes, la validation d'éléments de collection et de tableau, et la logique conditionnelle pour inverser les règles ou gérer les valeurs optionnelles.

Le système est conçu pour une collecte détaillée des erreurs, évaluant les valeurs par rapport à chaque règle définie pour rassembler une liste complète des échecs plutôt que de s'arrêter à la première erreur.

Features

  • Fluent Validation Rules - Ships a fluent API that allows developers to construct validation pipelines through a sequence of chainable methods.
  • JavaScript Schema Validation - Provides a library to verify complex JavaScript object structures against defined rules and constraints.
  • Data Validation Libraries - Functions as a tool for parsing and validating JavaScript data structures against predefined schemas.
  • Asynchronous Validators - Provides mechanisms for asynchronous validation checks that require external API calls or database lookups.
  • Asynchronous Validation Pipelines - Supports asynchronous validation rules that execute promises, enabling network requests and database lookups during the verification process.
  • Asynchronous Validation Engines - Implements a non-blocking engine that processes complex object structures using recursive rules and promises.
  • Asynchronous Validators - Supports custom validation rules that return promises for performing asynchronous external lookups.
  • Customizable Validation Frameworks - Provides a framework for creating user-defined validation logic and configuring how error results are returned.
  • Data Type Validation - Checks if a value matches a specific type or prototype constructor to ensure data conforms to expected structures.
  • Collection Constraints - Includes checks for the length of arrays or strings and verifies if they contain specific required items.
  • Element-Level Validation - Provides capabilities to ensure that individual elements within a collection satisfy specific validation rules.
  • Object Structure Validations - Provides capabilities to verify that objects conform to specific key-value patterns and strictly manage unauthorized properties.
  • Strict Object Validation - Ensures objects conform to specific key-validation pairs and supports strict property checking.
  • Cumulative Error Collection - Implements a validation engine that gathers all failures in a rule chain instead of short-circuiting after the first error.
  • Numeric Constraint Validation - Verifies numeric constraints including integer status, positivity, parity, and specific range boundaries.
  • Chainable Validation APIs - Uses a chainable API pattern to declaratively specify multiple validation rules and sanitizers.
  • Schema Composition Libraries - Provides a compositional approach to building complex validation structures by nesting and chaining reusable schema primitives.
  • String Content Constraints - Verifies string properties such as case, character sets, regex patterns, and specific start or end characters.
  • Reusable Data Schemas - Allows for the creation of reusable validation schemas to maintain consistent data constraints across applications.
  • Custom Validation Rules - Offers a framework for extending the library with user-defined validation logic via a chainable interface.
  • Data Validation Schemas - Allows exporting pre-configured validation chains as reusable modules to maintain consistent constraints.
  • Error Handling Strategies - Implements configurable strategies for how validation results are returned to the application.
  • Dynamic Type Checking - Determines the data type of a value at runtime using prototypes and native types to drive validation logic.
  • Validation Control Flow - Provides conditional logic to invert rule results, handle optional values, or require at least one passing validation.
  • Validation Output Modes - Allows switching the validation output mode between boolean values, detailed error lists, or thrown exceptions.
  • Data Validation - Fluent JavaScript validation library.

Historique des stars

Graphique de l'historique des stars pour imbrn/v8nGraphique de l'historique des stars pour imbrn/v8n

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à V8n

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec V8n.
  • open-circle/valibotAvatar de open-circle

    open-circle/valibot

    8,769Voir sur GitHub↗

    Valibot is a modular, type-safe schema library for validating and parsing structural data in TypeScript environments.

    TypeScriptbundle-sizemodularparsing
    Voir sur GitHub↗8,769
  • yiminghe/async-validatorAvatar de yiminghe

    yiminghe/async-validator

    9,099Voir sur GitHub↗

    async-validator is a JavaScript schema validation library and asynchronous data validation engine. It verifies complex object structures and nested arrays by applying recursive rules and non-blocking, promise-based execution to ensure data integrity. The library functions as both an object constraint validator and a data transformation pipeline. It allows for the sanitization, coercion, and formatting of input values through a sequence of functions that run before and after the primary validation process. The engine covers a range of capabilities including recursive nested validation, the en

    TypeScript
    Voir sur GitHub↗9,099
  • jquense/yupAvatar de jquense

    jquense/yup

    23,673Voir sur GitHub↗

    Yup is a JavaScript schema validation library used to define data shapes and validate runtime values. It functions as an object schema validator and a data coercion engine, allowing developers to transform raw input values into desired types before performing validation checks. The library is distinguished by its support for dynamic schema validation, where rules can be adjusted at runtime based on sibling field values or external context. It also enables recursive data structuring for polymorphic fields and provides a system for extracting static TypeScript interfaces from runtime schema def

    TypeScript
    Voir sur GitHub↗23,673
  • hapijs/joiAvatar de hapijs

    hapijs/joi

    21,192Voir sur GitHub↗

    Joi is a JavaScript data validation library used to define schemas that validate, cast, and sanitize data objects. It functions as an object schema validator and parser, ensuring that input data matches specific types and formats before it is processed by an application. The library features a conditional validation engine capable of dynamic schema enforcement, where validation logic and dependencies change based on the values of other keys within an object. It also serves as a data casting and sanitization tool, transforming input values into target types and removing sensitive keys from the

    JavaScripthapijavascriptschema
    Voir sur GitHub↗21,192
Voir les 30 alternatives à V8n→

Questions fréquentes

Que fait imbrn/v8n ?

v8n est une bibliothèque de validation de données JavaScript utilisée pour vérifier que les valeurs, objets et tableaux répondent à des critères spécifiques. Il fonctionne comme un validateur basé sur un schéma et un moteur de validation asynchrone, utilisant une API fluide pour construire des séquences de règles et de contraintes chaînables.

Quelles sont les fonctionnalités principales de imbrn/v8n ?

Les fonctionnalités principales de imbrn/v8n sont : Fluent Validation Rules, JavaScript Schema Validation, Data Validation Libraries, Asynchronous Validators, Asynchronous Validation Pipelines, Asynchronous Validation Engines, Customizable Validation Frameworks, Data Type Validation.

Quelles sont les alternatives open-source à imbrn/v8n ?

Les alternatives open-source à imbrn/v8n incluent : open-circle/valibot — Valibot is a modular, type-safe schema library for validating and parsing structural data in TypeScript environments. yiminghe/async-validator — async-validator is a JavaScript schema validation library and asynchronous data validation engine. It verifies complex… jquense/yup — Yup is a JavaScript schema validation library used to define data shapes and validate runtime values. It functions as… hapijs/joi — Joi is a JavaScript data validation library used to define schemas that validate, cast, and sanitize data objects. It… meteor-community-packages/meteor-simple-schema — This library provides a comprehensive system for defining data schemas and enforcing structural integrity within… ianstormtaylor/superstruct — Superstruct is a JavaScript and TypeScript data validation library used to verify that data structures match defined…