Formik
Popular React form state management library with validation and submission handling.
Forms, validation and schemas npm Apache-2.0
Used in agent projects
39
0.3% of 12,697 public repos built with AI coding agents
Rank in forms, validation and schemas
#14 of 22
by use in those projects
Downloads
4.6M
npm, last 7 days, formik
GitHub stars
34.3K
last push Nov 10, 2025
How Formik is used
Formik is a dependency in 39 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.3%), #14 of 22 in forms, validation and schemas. The most used alternative there is Zod. Projects that use it most often also use Yup (59.0%), React (100.0%), Axios (51.3%).
Often used with Formik
| Yup | 59.0% of Formik projects · 156.0× more than average |
|---|---|
| React | 100.0% of Formik projects · 2.3× more than average |
| Axios | 51.3% of Formik projects · 5.2× more than average |
| Emotion | 48.7% of Formik projects · 18.6× more than average |
| ESLint | 84.6% of Formik projects · 2.2× more than average |
| Next.js | 64.1% of Formik projects · 2.8× more than average |
| Framer Motion | 46.2% of Formik projects · 3.4× more than average |
| React Router | 38.5% of Formik projects · 5.0× more than average |
By coding agent
| Claude Code | 0.2% of projects set up for it |
|---|---|
| GitHub Copilot | 0.2% of projects set up for it |
Share of public repos configured for each agent that list Formik as a dependency.
Install
| Package | npm install formik |
|---|---|
| Main stacks | Next.js (23), TypeScript / JavaScript (16) |
| Example projects | thepower/PowerDapp, blopa/Resume-Builder, commercetools/ui-kit, pratikbuilds/anchor-UI, JesusFilm/core |
Alternatives to Formik
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Zod npm TypeScript-first schema validation library with static type inference. |
2,153 (17.0%) | 326M | 44.1K | MIT |
| React Hook Form npm Performant form state library using React Hooks with minimal rerenders. |
1,021 (8.0%) | 54.7M | 44.9K | MIT |
| React Hook Form Resolvers npm Validation resolvers for React Hook Form supporting Zod, Yup, and others. |
885 (7.0%) | 45.1M | 2,264 | MIT |
| Pydantic pypi Data validation and parsing library using Python type hints. |
649 (5.1%) | 222M | 29K | — |
| Ajv npm Fast JSON Schema validator for runtime schema validation and serialization. |
131 (1.0%) | 391M | 14.9K | MIT |
| jsonschema pypi Python implementation of JSON Schema validation for structured data. |
129 (1.0%) | 125M | 4,989 | — |
| Protocol Buffers pypi Serialization format and code generator for structured data. |
75 (0.6%) | 154M | — | 3-Clause BSD License |
| drizzle-zod npm Generate Zod validation schemas automatically from Drizzle ORM database schemas. |
68 (0.5%) | 3.2M | 36K | Apache-2.0 |