youtube-2021-march-nextjs-api-routes-validation-yup
next-api-compose
Our great sponsors
youtube-2021-march-nextjs-api-routes-validation-yup | next-api-compose | |
---|---|---|
1 | 2 | |
18 | 33 | |
- | - | |
2.6 | 6.9 | |
about 3 years ago | 5 months ago | |
TypeScript | TypeScript | |
- | 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.
youtube-2021-march-nextjs-api-routes-validation-yup
-
Preferred form library with Next.js?
I know Yup schemas are native for Formik but then for api best example that I found is this but this is not some high level integration, just validate() function is called in middleware before api handler.
next-api-compose
-
How to create good api-routes?
You can also check out library that I've built to simplify the process of working with Next.js API routes and middleware. Cheers!
- GitHub - neg4n/next-api-compose: 🧬 Simple, dependency free, error aware and powerful utility to compose chain of multiple middleware into one Next.js API Route.
What are some alternatives?
next-joi - Validate NEXT.js API Routes with joi
next-image-proxy - 🖼️ Image proxy for Next.js. Makes it possible to use dynamic domains in next/image component.
zod - TypeScript-first schema validation with static type inference
next-hcaptcha - 🤖 Robust, dependency free and highly configurable solution for guarding Next.js API Routes through higher order function with HCaptcha
react-ts-starter - Starter repository for developers who uses React, Typescript, TailwindCSS, React Router, Axios, React Hook Form and yup.
next-mdx - next-mdx provides a set of helper functions for fetching and rendering local MDX files. It handles relational data, supports custom components, is TypeScript ready and really fast.
yup-schema-faker - Fake data generator for yup
next-connect - The TypeScript-ready, minimal router and middleware layer for Next.js, Micro, Vercel, or Node.js http/http2
next-api-og-image - :bowtie: Easy way to generate open-graph images dynamically in HTML or React using Next.js API Routes. Suitable for serverless environment.
NextAPI - A Next.js API starter for building SaaS apps
resolvers - 📋 Validation resolvers: Yup, Zod, AJV, Joi, Superstruct, Vest, class-validator, io-ts, typanion, Ajv, TypeBox, Valibot and nope.
next-intl - Internationalization (i18n) for Next.js that gets out of your way. 🌐