# TanStack/form

🤖 Headless, performant, and type-safe form state management for TS/JS, React, Vue, Angular, Solid, and Lit.

Repository: https://github.com/TanStack/form
Canonical: https://ross.abutalabs.com/products/form
Homepage: https://tanstack.com/form
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, forms, form, hooks, tanstack, angular, lit, solid, vue, yup, zod, hacktoberfest
Last push: 2026-08-26T15:59:21+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 85, longevity 100
- inputs: {"age_days": 3564, "days_push": 7, "days_rel": 22, "gap_med": 0, "n_releases_24m": 622}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6672, forks 671 (observed 2026-08-28T04:09:47.531846+00:00)

## What it is
TanStack Form is a headless, type-safe form state management library for TypeScript/JavaScript with adapters for React, Vue, Angular, Solid, Svelte, Preact, and Lit. It provides reactive hooks, sync/async validation with debouncing, granular subscriptions, and deep TypeScript inference while leaving all UI rendering to the developer.

## Use cases
- manage complex form state in React with full type safety
- validate forms with sync and async rules and debouncing
- build headless forms with custom UI components
- handle nested fields and arrays in forms
- share form options and compose field components across a team
- integrate schema validation with zod or yup
- build multi-step form wizards
- use forms in Vue, Angular, Solid, or Lit apps

## When to choose
- you need deeply typed form values and field names in TypeScript
- you want full control over markup instead of a bundled UI kit
- you need fine-grained validation orchestration (onChange, onBlur, async debounced, onSubmit)
- you need one form model across multiple frameworks
- you have large forms where granular subscriptions matter for performance

## When to avoid
- you want batteries-included styled form components out of the box
- your forms are trivial and a native form or lighter library suffices
- you're not using TypeScript and won't benefit from its type inference
- you need a very small dependency footprint for a simple project

## Facets
- artifact type: library
- maturity: stable
- function: form-handling, state-management, frontend-framework
- domain: web-development, frontend, developer-tools
- platform: browser, cross-platform
- tags: headless-ui, typescript, react, vue, angular, solid, lit, svelte, zod, yup, tanstack, schema-validation, async-validation, nodejs, web-server

## Member repositories
- TanStack/form (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:47.531846+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:43:01.510794+00:00, confidence not recorded.
  - readme: https://github.com/TanStack/form (fetched 2026-08-28T04:09:47.531846+00:00, sha f7a2498d514c)
  - homepage: https://tanstack.com/form (fetched 2026-08-29T08:39:39.426186+00:00, sha 4ccd549c200d)
  - site_page: https://tanstack.com/form/latest/docs/overview (fetched 2026-08-29T08:39:39.430828+00:00, sha 2d9b16e7e8ee)
  - site_page: https://tanstack.com/form/latest/docs/framework/react/guides/basic-concepts (fetched 2026-08-29T08:39:39.432573+00:00, sha 2c9147ced35f)
  - site_page: https://tanstack.com/form/latest/docs/reference/index (fetched 2026-08-29T08:39:39.434470+00:00, sha ac8c0ad13b68)
  - site_page: https://tanstack.com/form/latest/docs/framework/react/examples/simple (fetched 2026-08-29T08:39:39.436184+00:00, sha bfe6c67679bf)
  - site_page: https://tanstack.com/form/latest/docs/blog (fetched 2026-08-29T08:39:39.437835+00:00, sha f3fcfe03acb5)
  - site_page: https://tanstack.com/form/latest/docs/framework (fetched 2026-08-29T08:39:39.439446+00:00, sha 8b058c1eaed1)
  - site_page: https://tanstack.com/form/latest/docs/contributors (fetched 2026-08-29T08:39:39.441096+00:00, sha e0777f6f85ea)
  - site_page: https://tanstack.com/blog (fetched 2026-08-29T08:39:39.428855+00:00, sha f45f670c0ce6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
