awesome-repositories.com
Blog
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
open-circle avatar

open-circle/valibot

0
View on GitHub↗
8,769 Stars·345 Forks·TypeScript·MIT·8 Aufrufevalibot.dev↗

Valibot

Valibot is a TypeScript schema validation library used to define type-safe data structures and verify runtime input. It provides a system for creating runtime type guards and data transformation pipelines that automatically infer static TypeScript types from runtime schema definitions.

The library is built on a modular, function-based architecture designed to minimize bundle size through tree-shaking. It includes specialized tools for converting internal schemas into the JSON Schema format and supports a pipeline-based approach to normalize and transform input data.

Its validation capabilities cover a broad surface including primitive constraints, numeric range limits, and complex types such as discriminated unions and recursive structures. It also provides extensive string format validation for standards like emails, URLs, and various cryptographic hashes, alongside support for asynchronous checks and cross-field validation logic.

The framework further supports developer workflows through validation message localization, result caching, and integration with frontend form libraries and environment configuration files.

Features

  • Data Validation Schemas - Provides a comprehensive system for defining type-safe data structures and validation rules.
  • Schema-Driven Type Inference - Automatically generates TypeScript static types by analyzing runtime schema definitions.
  • Type-Safe Schema Validations - Provides a TypeScript schema validation library with automatic static type inference from runtime definitions.
  • Data Validation - Deno Valide gathers detailed information about every schema violation during data validation for comprehensive reporting.
  • Length Constraints - Enforces minimum and maximum size limits on arrays to ensure required element counts.
  • Data Validation - Deno Valide verifies that a value is a boolean and applies a custom error message.
  • Number Type Validation - Deno Valide checks that a value is a number and returns an error if incorrect.
  • Minimum Size Enforcements - Validates that strings, arrays, sets, or blobs meet a minimum length or size requirement.
  • Schema Validation Libraries - Implements a vendor-neutral interface for data validation and type inference to ensure interoperability between different libraries.
  • Runtime Type Validation - Verifies that unknown runtime data adheres to predefined schemas to ensure type safety.
  • Array Schema Validation - Ensures values are arrays and validates each individual element against a defined schema.
  • Minimum Length Validations - Ensures strings or arrays contain at least a specified number of elements.
  • Non-Empty Collection Validations - Ensures a string or array contains at least one element to prevent empty inputs.
  • Custom Validation Actions - Transforms input data using custom logic while integrating validation issues into the pipeline.
  • Data Type Validation - Deno Valide accepts any value without imposing specific type constraints or rules.
  • Assertion-Based Validations - Checks input against a schema and throws an immediate error upon validation failure.
  • Loose Tuple Validation - Deno Valide checks that an array starts with a specific sequence and allows generic trailing elements.
  • Strict Object Validation - Deno Valide ensures an input object contains only specified keys and rejects unknown properties.
  • Strict Tuple Validation - Deno Valide ensures an input array has a specific length and rejects unknown items.
  • Uniform Record Validation - Deno Valide checks that an object's keys and values all conform to a specified schema.
  • Union Type Validation - Deno Valide matches input against multiple possible schemas and returns the first successful result.
  • Data Transformation Pipelines - Processes inputs through a sequential chain of validation and transformation actions to produce typed results.
  • Runtime Type Guards - Acts as a runtime type guard to verify that unknown data adheres to expected structures.
  • Nullability Restrictions - Deno Valide prevents inputs from being null or undefined and triggers a customizable error message.
  • Nullable Type Support - Deno Valide defines a schema that accepts a specified data type or a null value.
  • Required Field Enforcement - Deno Valide marks specific entries in an object schema as required to ensure keys are present.
  • Schema Composition Libraries - Builds complex validation logic by combining primitive schemas through unions, intersections, and recursive references.
  • Schema Validation Frameworks - Implements a modular, function-based architecture that minimizes bundle size through tree-shaking.
  • String Validation and Normalization - Enforces constraints on string inputs, including length and pattern verification.
  • Modular Architectures - Uses a modular, function-based architecture to enable tree-shaking and minimize the final bundle size.
  • Data Normalization - Transforms raw input into a standardized format during the validation process.
  • Safe Integer Validations - Deno Valide checks if a number is a safe integer within the representable range.
  • JSON-Schema - Transforms internal validation schemas into the JSON Schema format for compatibility with external ecosystems.
  • Array Filtering - Removes elements from an array based on a predicate function to filter for valid items.
  • Collection Size Restrictions - Validates that maps, sets, or blobs do not exceed a maximum specified size.
  • Asynchronous Validators - Supports asynchronous validation functions for checks involving promises or external lookups.
  • Field Selection Validation - Creates a modified object schema containing only a specified subset of keys.
  • Schema Format Converters - Transforms internal validation schemas into the industry-standard JSON Schema format for interoperability.
  • Union Validation Optimizers - Optimizes union type validation by using discriminator keys to efficiently identify the correct sub-schema for input data.
  • Bundle Size Optimization - Uses a modular, function-based architecture specifically designed to enable tree-shaking and reduce final bundle size.
  • Environment Variable Validation - Validates environment variables and configuration files against schemas to detect setup errors.
  • Configuration Validation - Matches environment variables and configuration files against schemas to detect structural errors.
  • Asynchronous Validation - Validates the value resolved by a promise against a specific schema using asynchronous logic.
  • Discriminated Unions - Implements discriminated unions to identify the correct schema within a union by matching a specific key in the input data.
  • Array Transformation Utilities - Iterates over array items and applies transformation functions to modify values during the validation process.
  • Multiple Verifiers - Deno Valide checks if a numeric value is a multiple of a specified number.
  • Custom Array Condition Validation - Checks array elements against a logic function to ensure specific ordering or content requirements.
  • Exact Size Validations - Checks that strings, arrays, or maps contain exactly the specified number of items.
  • Minimum Value Validations - Deno Valide validates that a number or date meets a specified minimum threshold.
  • Boolean Value Parsing - Deno Valide converts truthy and falsy strings or numbers into actual boolean values.
  • Boolean Predicates - Validates values against custom boolean functions or type predicates.
  • Cross-Field Dependency Validations - Evaluates logical relationships and dependencies between multiple fields in an object.
  • Custom Validation Rules - Implements custom interfaces to extend default validation and transformation capabilities with domain-specific checks.
  • Binary Data Validation - Deno Valide verifies that a value is a blob and checks MIME type and size.
  • Collection Type Validation - Deno Valide ensures a value is a Set containing elements that match a specified schema.
  • Custom Schema Definitions - Allows the creation of new schema types using a plain-object pattern to implement specific, custom validation logic.
  • Object Shape Validation - Verifies that an object contains specific keys with values matching defined schemas.
  • Loose Object Validation - Checks if an input is an object and preserves unknown entries in the resulting output.
  • Object Field Optionality - Creates modified object schemas where specific keys are marked as optional.
  • Schema Key Exclusions - Deno Valide creates a modified copy of an object schema by excluding specific keys.
  • Strongly-Typed Validators - Transforms validated data into read-only types to ensure immutability.
  • Value Type Conversions - Provides capabilities to convert input values from one type to another during the validation process.
  • Schema Default Values - Implements fallback values for fields when input data is null or undefined.
  • Element Presence Verifications - Verifies if a string contains a specific substring or if an array contains a particular element.
  • Object Schema Definitions - Defines schema types using a simple object pattern to facilitate easy extension and custom rule implementation.
  • Object Constraint Definition - Allows developers to specify whether objects and tuples should strictly permit or block unknown values.
  • Optionality Definitions - Allows marking schema fields as optional with associated default values.
  • List-Based Value Exclusions - Deno Valide validates that a string or array does not contain a specific forbidden value.
  • Range Constraints - Deno Valide validates that a number or date does not exceed a specified threshold.
  • Recursive Data Schemas - Deno Valide references a schema within itself to validate nested or tree-like data structures.
  • Regex Pattern Validators - Provides the ability to validate strings against custom regular expression patterns.
  • Validation Chains - Processes input data through sequential chains of validation checks and modifiers to ensure correct formatting.
  • Runtime Business Rule Validation - Executes arbitrary custom logic to validate data against complex business rules.
  • Runtime Value Validation - Matches input values against precise string, number, or boolean constants during runtime.
  • Allowed Value Validations - Deno Valide ensures a string matches one of several predefined allowed options.
  • Schema Factories - Composes schemas into reusable generic functions that wrap data in consistent envelopes.
  • Schema Validation Refinements - Applies custom validation logic and refinements to schemas to enforce complex business rules.
  • Undefined Value Handling - Permits undefined values to pass validation and optionally replaces them with defaults.
  • API Specification Generation - Automatically generates OpenAPI or JSON Schema specifications from defined validation rules.
  • Form Validation Libraries - Connects validation schemas to frontend form managers to enforce type safety and input constraints during user entry.
  • Schema Validation - Checks if an input matches at least one of several provided schema options through union validation.
  • String Format Validators - Verifies that a string is a valid Base64 encoded sequence.

Star-Verlauf

Star-Verlauf für open-circle/valibotStar-Verlauf für open-circle/valibot

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Open-Source-Alternativen zu Valibot

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Valibot.
  • jquense/yupAvatar von jquense

    jquense/yup

    23,673Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗23,673
  • hapijs/joiAvatar von hapijs

    hapijs/joi

    21,192Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗21,192
  • ianstormtaylor/superstructAvatar von ianstormtaylor

    ianstormtaylor/superstruct

    7,141Auf GitHub ansehen↗

    Superstruct is a JavaScript and TypeScript data validation library used to verify that data structures match defined shapes and types. It functions as a composable schema builder and a TypeScript schema validator, ensuring that runtime data checks remain synchronized with static type definitions. The library features a data coercion engine that transforms input values or injects default values before the validation process is executed. It enables the creation of complex validation rules by nesting, merging, or omitting properties from existing structures. Its capabilities cover the validatio

    TypeScriptinterfacejavascriptschema
    Auf GitHub ansehen↗7,141
  • ajv-validator/ajvAvatar von ajv-validator

    ajv-validator/ajv

    14,733Auf GitHub ansehen↗

    Ajv is a high-performance data validation framework that compiles JSON schemas into optimized, standalone JavaScript functions. By transforming declarative schema definitions into executable code, it eliminates runtime interpretation overhead and provides a secure, efficient way to enforce data integrity across both browser and server environments. The library distinguishes itself through its focus on performance and type safety. It employs advanced compilation techniques, including abstract syntax tree optimization and function caching, to ensure rapid validation. Beyond standard checks, it

    TypeScriptajvjson-schemavalidator
    Auf GitHub ansehen↗14,733
Alle 30 Alternativen zu Valibot anzeigen→

Häufig gestellte Fragen

Was macht open-circle/valibot?

Valibot is a TypeScript schema validation library used to define type-safe data structures and verify runtime input. It provides a system for creating runtime type guards and data transformation pipelines that automatically infer static TypeScript types from runtime schema definitions.

Was sind die Hauptfunktionen von open-circle/valibot?

Die Hauptfunktionen von open-circle/valibot sind: Data Validation Schemas, Schema-Driven Type Inference, Type-Safe Schema Validations, Data Validation, Length Constraints, Number Type Validation, Minimum Size Enforcements, Schema Validation Libraries.

Welche Open-Source-Alternativen gibt es zu open-circle/valibot?

Open-Source-Alternativen zu open-circle/valibot sind unter anderem: 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… ianstormtaylor/superstruct — Superstruct is a JavaScript and TypeScript data validation library used to verify that data structures match defined… ajv-validator/ajv — Ajv is a high-performance data validation framework that compiles JSON schemas into optimized, standalone JavaScript… colinhacks/zod — Zod is a TypeScript-first schema declaration and validation library designed to ensure end-to-end data integrity. It… imbrn/v8n — v8n is a JavaScript data validation library used to verify that values, objects, and arrays meet specific criteria. It…