TanStack Form
A strong pick. 2nd of 10 form libraries.
TanStack Form is a headless, type-safe form state library with adapters for React, Vue, Angular, Solid, Lit and Preact. It is a strong choice for complex, TypeScript-heavy forms and is growing fast. It is more verbose than React Hook Form, and v2, now in alpha with breaking changes, means v1 users will have to migrate.
Best for: TypeScript teams building complex or dynamic forms who want deep type inference, or one form library across several UI frameworks.
Scores
Overall7.7
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
It is the strongest pick for type-safe, complex or multi-framework forms, with active maintenance and the fastest growth in its category. React Hook Form is still the simpler, more proven default for most React apps. The coming v2 migration and the verbosity of v1 keep this from scoring higher.
- npm downloadsLast4Weeks: About 12.9x growth year over year
- tanstack.com/blog/announcing-tanstack-form-v2-alpha: Breaking v2 is in alpha
- blog.logrocket.com/tanstack-form-vs-react-hook-form: Comparison: RHF for simplicity, TanStack for type safety
GPT-6.2 Sol: 7.8, likely 6.6 to 8.8
TanStack Form is a strong new-project choice when precise field types, flexible validation, and control over the UI matter. React Hook Form is the stronger default for most React teams because routine forms take less setup and the ecosystem is larger. Fast adoption and ongoing development support the recommendation, while the stable release gap and v2 migration keep it below the category's top tier.
- tanstack.com/form/latest/docs/framework/react/guides/validation: Stable v1 offers schema validation and control over when errors appear.
- react-hook-form.com/get-started: React Hook Form's registration API keeps standard forms concise.
- reddit.com/r/reactjs/comments/1th7sey/weve_got_to_talk_about_tanstack_form: Users describe the trade-off between explicit type boundaries and setup effort.
- tanstack.com/blog/announcing-tanstack-form-v2-alpha: Active next major version with changes to core APIs.
- npm latestPublishedAt, npm downloadsLast4Weeks and peers React Hook Form: Rapid install growth alongside an August stable release and a much larger React peer.
Needed by many7.6
How many developers need a tool for this job?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
Most web apps have forms, and this library works with every major UI framework, not just React. It aims at the general form job rather than a niche. It falls short of 9 because many simple forms need no library at all.
- github description: Supports TS/JS, React, Vue, Angular, Solid and Lit
- tanstack.com/blog/announcing-tanstack-form-v1: v1 shipped for five frameworks at once
GPT-6.2 Sol: 7.1, likely 6.0 to 8.2
Form state and validation are common needs in web apps, and the shared core covers several major frameworks. Its headless API is most useful when teams need custom inputs or validation, since simple forms can use browser and framework features. The React survey gives a clearer picture of that audience than of JavaScript developers as a whole.
- 2025.stateofreact.com/en-US/libraries/component-libraries/#form_libraries: Most React respondents report using a form library.
- tanstack.com/form/latest/docs/installation: Documents adapters for six frontend frameworks.
Helps a lot7.8
How well does it do the job for those who need it?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Type safety, per-validator timing, async validation and fine-grained re-rendering are best in class. Users report a lot of boilerplate, friction with fields that depend on each other, and in v1 a gap between the schema and the defaultValues types. v2 fixes some of these but is not stable yet.
- formisch.dev/blog/react-form-library-comparison: Praises validation timing and re-render scoping; notes type drift from schema and the cost of a form-level onChange schema
- red.127.pp.ua/r/reactjs/comments/1k29ta0/tanstack_form: Reddit users report boilerplate and trouble with dependent fields
- hn.jakechampion.name/reader/https://matthuggins.com/blog/posts/avoiding-tanstack-form-pitfalls: Async validator passed as sync fails silently
- blog.logrocket.com/tanstack-form-vs-react-hook-form: Independent comparison rates its TypeScript support above React Hook Form's
GPT-6.2 Sol: 8.1, likely 7.0 to 9.0
Stable 1.33.5 gives teams typed nested fields, subscriptions to specific state, and detailed control over validation timing and errors. The React guides give coding agents concrete patterns, although reusable sections and defaults that differ from the validation schema still take care. A reported duplicate-submit regression and limited performance measurements keep the range open.
- tanstack.com/form/latest/docs/framework/react/guides/validation: Documents validation timing, debouncing, schema validation, and error mapping.
- tanstack.com/form/latest/docs/framework/react/guides/form-composition: Shows typed reusable fields, selectors, and the setup they require.
- reddit.com/r/reactjs/comments/1th7sey/weve_got_to_talk_about_tanstack_form: Developers report friction with reusable sections and create/edit defaults.
- github.com/TanStack/form/issues/2467: An open report documents concurrent submissions on 1.33.5.
- pyreon.dev/benchmarks: One synthetic run found slower validation per keystroke than React Hook Form.
Holds up over time7.2
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 6.0 to 8.5
Development is active: 232 commits and many releases in the past year, 225 contributors, several core maintainers, and TanStack's corporate sponsors. The stable v1 line has not shipped since August 2026 while work moves to v2. The v2 alpha replaces the validator and SSR APIs, so another round of breaking changes is coming. Users already saw breaking changes during the v1 release-candidate phase.
- github commitsLastYear: 232 commits; pushed on the read date
- npm latestPublishedAt: Last stable release 2026-08-11
- tanstack.com/blog/announcing-tanstack-form-v2-alpha: v2 alpha from Aug 2026 reworks validators and SSR; no stable date given
- bluesky top posts: A maintainer apologised for breaking changes during the RC phase
GPT-6.2 Sol: 7.4, likely 6.1 to 8.6
The repository logged 232 commits in the past year, lists several maintainers and contributors, and can draw on TanStack's sponsorship program. The React package published 30 versions over the year, with its latest stable release in August. Work on the v2 alpha and an open v1 regression fix show continued activity, while the rewrite makes future upgrade effort and the pace of v1 fixes harder to predict.
- github commitsLastYear, contributors and pushedAt: 232 commits in the past year, 225 contributors overall, and a November push.
- npm versionsLastYear and latestPublishedAt: 30 React package versions in a year, with the latest stable release on August 11.
- tanstack.com/form/latest/docs/contributors: Lists several Form maintainers and contributors.
- tanstack.com/partners: Shows sponsorship at the TanStack organization level.
- tanstack.com/blog/announcing-tanstack-form-v2-alpha: Documents the core rewrite and changes to validation and listener APIs.
- github.com/TanStack/form/pull/2470: An open pull request addresses the concurrent submission regression.
Used widely6.7
How many use it, and is that growing?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
React downloads grew from 2.1M to 26.8M per 4 weeks, a ratio near 12.9 against a 4.1 median, so it is clearly gaining ground. That is still about a tenth of React Hook Form's downloads, and part of the jump likely comes from shadcn/ui docs and TanStack templates. The ecosyste.ms dependent count of 1 looks like a gap in coverage for this scoped package, not real usage.
- npm downloadsLast4Weeks: 26.8M now vs 2.09M a year ago
- peers React Hook Form downloadsLast4Weeks: 252M, about 9x larger
- github stars: 6.8k stars, far below RHF's 45k and Formik's 34k
- bluesky posts: 19 posts, the most in its category
GPT-6.2 Sol: 6.8, likely 5.2 to 8.2
React adapter downloads rose 12.9-fold to 26.8 million in four weeks, well above the 4.1-fold catalog baseline and React Hook Form's 4.5-fold rise. React Hook Form still leads by a wide margin in downloads and surveyed usage, while TanStack Form draws more Bluesky links among these peers. Repeated and indirect installs, sparse dependent indexing, and attention shared across adapters leave the number of projects choosing it uncertain.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo and medianDownloadsRatio: 26.8 million versus 2.1 million React adapter installs, against a 4.1-fold baseline.
- peers React Hook Form and Formik: React Hook Form has about 9.4 times the installs, and Formik trails slightly.
- dependents, github stars and bluesky posts: One indexed dependent repository, 6,772 shared stars, and 19 repository links on Bluesky.
- 2025.stateofreact.com/en-US/libraries/component-libraries/#form_libraries: 567 of 2,643 respondents used TanStack Form, versus 1,964 for React Hook Form.
- humanloads.dev/@tanstack/react-form: Growth persists after removing crawler traffic and publish spikes.
Vouched for6.9
Who stands behind it being good?
Claude Opus 5.5: 6.5, likely 5.0 to 7.5
shadcn/ui documents it as a first-class form integration, and independent outlets such as LogRocket, freeCodeCamp and InfoQ cover it favourably. I found no survey satisfaction data and few named production users. User reports on Reddit are mixed.
- ui.shadcn.com/docs/forms/tanstack-form: Official shadcn/ui guide for TanStack Form
- freecodecamp.org/news/a-guide-to-modern-react-form-architecture-tanstack-form-zod-shadcn: Independent guide builds on it
- infoq.com/news/2025/05/tanstack-form-v1-released: Covered the v1 release
GPT-6.2 Sol: 7.3, likely 6.1 to 8.4
Sentry built its newer form system on TanStack Form, Akka lists it in the Console bill of materials, and shadcn/ui publishes a dedicated integration guide. These are concrete endorsements, though the Akka record is older and the survey measures usage. User reports are mixed, and the available benchmark covers one synthetic workload.
- github.com/getsentry/sentry/blob/master/.agents/skills/generate-frontend-forms/SKILL.md: Sentry documents its TanStack-based form system for new forms.
- trust.akka.io/sbom-by-license: Akka Console lists the React adapter in its software bill of materials.
- ui.shadcn.com/docs/forms/tanstack-form: shadcn/ui maintains a guide with concrete integration examples.
- reddit.com/r/reactjs/comments/1th7sey/weve_got_to_talk_about_tanstack_form: Some developers use its composition patterns successfully, while others returned to React Hook Form.
- pyreon.dev/benchmarks: A competitor's published benchmark covers a single 12-field form.
Safe7.3
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.0 to 8.0
There are no advisories, it has only 2 dependencies, and it is MIT licensed. In May 2026 a GitHub Actions cache-poisoning attack let attackers publish malicious versions of 42 TanStack Router and Start packages. Form packages do not appear in the lists I checked, but they share the organisation's release setup. No Scorecard data was available.
- advisories total: 0 advisories
- npm dependencies: 2 dependencies, MIT licence
- security.snyk.io/TanStack-npm-Supply-Chain-Compromise-May-2026: Router/Start packages compromised; Form not in the lists I checked
- heise.de/-11291014: 42 TanStack packages compromised through CI
GPT-6.2 Sol: 8.1, likely 6.9 to 9.2
The React adapter has a permissive MIT license, two direct dependencies, and zero OSV advisories in the snapshot. The release workflow runs tests, pins GitHub Actions, and uses OpenID Connect, with three maintainers listed for the npm package. TanStack's May 2026 supply-chain incident was confined to Router and Start and prompted organization-wide hardening. The missing Scorecard and limited visibility into release permissions widen the range.
- npm license and dependencies, advisories total and scorecard: MIT, two direct dependencies, zero OSV advisories, and no Scorecard result.
- github.com/TanStack/form/blob/main/.github/workflows/release.yml: Shows push-triggered releases, pinned actions, CI tests, and identity-token permission.
- humanloads.dev/@tanstack/react-form: Reports three maintainers listed on npm.
- tanstack.com/blog/incident-followup: Confirms Form was unaffected and documents organization-wide hardening.
Good
- Deep type inference for field names and values, so typos and type mistakes show up at compile time.
- One headless core with official adapters for React, Vue, Angular, Solid, Lit and Preact.
- Validation timing is set per validator (on change, blur, submit, mount), with built-in async debounce and Standard Schema support for Zod, Valibot and others.
- Fine-grained subscriptions re-render only the fields that changed, and shadcn/ui documents it as a first-class form option.
Bad
- Simple forms take more boilerplate and setup than React Hook Form.
- In v1, types come from defaultValues rather than the schema, so the two can drift apart, and some validator mix-ups fail silently.
- v2 is in alpha and changes the validator API and SSR handling, so new v1 code will need to migrate.
- It shares a CI and publishing setup with other TanStack packages, which were hit by a supply-chain attack in May 2026.
The numbers
- npm downloads, 4 weeks
- 27M ×13 in a year
- GitHub stars
- 6.8k
- Commits, 12 months
- 232
- npm version
- 1.33.5 Aug 2026
- Versions, 12 months
- 30
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
The downloads are of the React package only.
Read on 21 November 2026 from GitHub (TanStack/form), npm (@tanstack/react-form), OSV and the OpenSSF Scorecard.
Form libraries
- 8.8React Hook Form
- 7.7TanStack Form
- 7.4Superforms
- 7.2Conform
- 6.8FormKit
- 6.7react-jsonschema-form
- 5.5VeeValidate
- 4.8React Final Form
- 3.9Formik
- 3.5Felte