Gathering detailed insights and metrics for @psymorias/hookform-resolvers-ajv
Gathering detailed insights and metrics for @psymorias/hookform-resolvers-ajv
npm install @psymorias/hookform-resolvers-ajv
Typescript
Module System
Node Version
NPM Version
75.9
Supply Chain
98.4
Quality
75.5
Maintenance
100
Vulnerability
100
License
TypeScript (98.44%)
Shell (1.23%)
JavaScript (0.33%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
1,791
Last Day
1
Last Week
2
Last Month
18
Last Year
391
MIT License
1,924 Stars
355 Commits
176 Forks
12 Watchers
5 Branches
63 Contributors
Updated on Mar 13, 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%
1
Compared to previous day
Last Week
-60%
2
Compared to previous week
Last Month
-60%
18
Compared to previous month
Last Year
21.8%
391
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
15 commit(s) and 16 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
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-03-10
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