Gathering detailed insights and metrics for @psymorias/hookform-resolvers-ajv
Gathering detailed insights and metrics for @psymorias/hookform-resolvers-ajv
Gathering detailed insights and metrics for @psymorias/hookform-resolvers-ajv
Gathering detailed insights and metrics for @psymorias/hookform-resolvers-ajv
📋 Validation resolvers: Yup, Zod, Superstruct, Joi, Vest, Class Validator, io-ts, Nope, computed-types, typanion, Ajv, TypeBox, ArkType, Valibot, effect-ts, VineJS and Standard Schema
npm install @psymorias/hookform-resolvers-ajv
Typescript
Module System
Node Version
NPM Version
TypeScript (98.61%)
Shell (1.11%)
JavaScript (0.28%)
Total Downloads
1,890
Last Day
5
Last Week
5
Last Month
28
Last Year
347
MIT License
2,037 Stars
362 Commits
192 Forks
12 Watchers
4 Branches
63 Contributors
Updated on Jul 03, 2025
Minified
Minified + Gzipped
Latest Version
0.0.11
Package Id
@psymorias/hookform-resolvers-ajv@0.0.11
Unpacked Size
2.05 MB
Size
388.93 kB
File Count
14
NPM Version
6.9.0
Node Version
12.4.0
Cumulative downloads
Total Downloads
Last Day
0%
5
Compared to previous day
Last Week
400%
5
Compared to previous week
Last Month
16.7%
28
Compared to previous month
Last Year
-11.7%
347
Compared to previous year
1
30
Performant, flexible and extensible forms with easy to use validation.
We are moving away from native support for Yup validation and begin to support others schema validation after React Hook Form v6.
$ npm install @hookform/resolvers
resolver(schema: object, config?: object)
type | Required | Description | |
---|---|---|---|
schema | object | ✓ | validation schema |
config | object | validation schema configuration object |
Dead simple Object schema validation.
1import React from 'react'; 2import { useForm } from 'react-hook-form'; 3import { yupResolver } from '@hookform/resolvers'; 4import yup as * from 'yup'; 5 6const schema = yup.object().shape({ 7 name: yup.string().required(), 8 age: yup.number().required(), 9}); 10 11const App = () => { 12 const { register, handleSubmit } = useForm({ 13 resolver: yupResolver(schema), 14 }); 15 16 return ( 17 <form onSubmit={handleSubmit(d => console.log(d))}> 18 <input name="name" ref={register} /> 19 <input name="age" type="number" ref={register} /> 20 21 <input type="submit" /> 22 </form> 23 ); 24};
A simple and composable way to validate data in JavaScript (or TypeScript).
1import React from "react"; 2import { useForm } from "react-hook-form"; 3import { superstructResolver } from "@hookform/resolvers"; 4import { struct } from "superstruct"; 5 6const schema = struct({ 7 name: "string", 8 age: "number", 9}); 10 11const App = () => { 12 const { register, handleSubmit } = useForm({ 13 resolver: superstructResolver(schema), 14 }); 15 16 return ( 17 <form onSubmit={handleSubmit((d) => console.log(d))}> 18 <input name="name" ref={register} /> 19 <input name="age" type="number" ref={register} /> 20 21 <input type="submit" /> 22 </form> 23 ); 24};
The most powerful data validation library for JS.
1import React from "react"; 2import { useForm } from "react-hook-form"; 3import { joiResolver } from "@hookform/resolvers"; 4import Joi from "@hapi/joi"; 5 6const schema = Joi.object({ 7 username: Joi.string().required(), 8}); 9 10const App = () => { 11 const { register, handleSubmit } = useForm({ 12 resolver: joiResolver(schema), 13 }); 14 15 return ( 16 <form onSubmit={handleSubmit((d) => console.log(d))}> 17 <input name="name" ref={register} /> 18 <input name="age" type="number" ref={register} /> 19 20 <input type="submit" /> 21 </form> 22 ); 23};
Thanks goes to all our backers! [Become a backer].
Thanks goes to these wonderful organizations! [Contribute].
Thanks goes to these wonderful people! [Become a contributor].
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
3 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 7
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More