resolvers
zodios
Our great sponsors
resolvers | zodios | |
---|---|---|
6 | 10 | |
1,585 | 1,517 | |
3.3% | - | |
6.2 | 8.1 | |
28 days ago | 9 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
resolvers
-
React-Hook-Form / YupResolver - Vercel build fails but local build is ok
For anyone that reaches this post trying to obtain an answer, I found this issue in the react-hook-form repository. Specifically the comment that Mihai-github made.
-
Create an NFT Minting dApp with Cudos NFT Native Module
command dependency function npm i cudosjs https://www.npmjs.com/package/cudosjs A JavasSript Open Source Library for https://cudos.org/ network npm i react-router-dom https://www.npmjs.com/package/react-router-dom It contains bindings for the routing library for React npm i react-hook-form https://www.npmjs.com/package/react-hook-form Performant, flexible and extensible forms with easy to use validation. npm i zod https://www.npmjs.com/package/zod A type declaration and validation library. We use it to declare and validate the data type of the forms used in NFT minting. npm i @hookform/resolvers https://github.com/react-hook-form/resolvers allows you to use an external validation library with React hook form npm i @mui/material @mui/lab @emotion/react @emotion/styled https://mui.com/material-ui/getting-started/overview/ for component styling Material UI is an open-source React component library that implements Google's https://m2.material.io/ . npm i notistack https://www.npmjs.com/package/notistack For snack bar notification npm i @fontsource/poppins Poppins font Poppins font via Fontsource npm i @keplr-wallet/types npm install @esbuild-plugins/node-globals-polyfill To make the Node module Buffer available in our project
-
Using class-validator with Next.js and react-hook-form
More info here and here
-
How to build forms using the schema-first approach in React
There are plenty of them, I'm using zod, but other ones also may be worth attention: https://github.com/react-hook-form/resolvers here is a lib for integrating validation libraries with react-hook-form and you can see a lot of such libs here with size badges and small examples.
-
Preferred form library with Next.js?
For the front-end, I like react-hook-form, and it supports both zod, joi, yup and more via official package: https://github.com/react-hook-form/resolvers
-
What's new in React Hook Form's resolvers V2
Released in the 2020's summer, @hookform/resolvers is an optional module that allows you to validate React Hook Form's values with your favorite validation library. So far, we support 5 validation libraries: Yup, Zod, Vest, Joi, and Superstruct.
zodios
- TypeSafe HTTP Fetch Client
-
zodios VS clover - a user suggested alternative
2 projects | 11 May 2023
-
📰 Next.js Weekly Recap #2: App Router, Background Functions, YakGPT, Vercel KV
Zodios This is like tRPC but for REST APIs. Get an end-to-end typesafe developer experience in your Next.js apps
-
Thoughts on zod
Zod is great. If you have an API that is also written in Typescript you can use zodios to make it type-safe from end to end.
- Full-Stack TypeScript with tRPC and React
-
Open Source Repositories
@ecyrbe - Zodios | End-to-end typesafe REST API toolbox
-
Write typesafe APIs with zodios
Writing client APIs, that gives you autocompletion is time consuming. You allways endup writing the same kind of boilerplate code or have to use openapi code generators that are a pain to maintain. Zodios was created to make creating frontend (and optionally backend) API client a breeze. It's is an open source REST API toolbox with end-to-end typesafety. It allows you to create a REST API with a clean, intuitive and declarative syntax. It's best used with TypeScript, but it's also usable with pure JavaScript.
-
How to test your typescript utility types
if you want to see it in practice, you can check some tests here for zodios library.
-
Zodios : an open source HTTP client with type checking at both compile time and runtime (part 2/3)
In the last article we have seen how to use zodios to declare custom REST APIs. As a reminder, Zodios is an open source HTTP client with type checking at runtime (zod validation) and also at compile time (typescript) without needing to write both types and validation schemas. You just need to write your API declaration once and you're done.
-
How to request dev.to articles with Zodios (part 1/2)
Zodios is a small open-source library that helps you declare your REST APIs in frontend applications thanks to Zod library.
What are some alternatives?
react-hook-form - 📋 React Hooks for form state management and validation (Web + React Native)
garph - Fullstack GraphQL Framework for TypeScript
react-formik-components - React reusable and customizable input components based on formik library
vscode-auto-rename-tag - Automatically rename paired HTML/XML tag
vue-composable - Vue composition-api composable components. i18n, validation, pagination, fetch, etc. +50 different composables
examples-next-prisma-starter - 🚀 tRPC starter repo with E2E-testing
next-joi - Validate NEXT.js API Routes with joi
typematic - What if OpenAPI was defined with typescript ?
zod-express-middleware - Express middleware to validate requests using zod schema's.
zod - TypeScript-first schema validation with static type inference
linux - Linux kernel source tree