# tcomb-form

Forms library for react

Repository: https://github.com/gcanti/tcomb-form
Canonical: https://ross.abutalabs.com/products/tcomb-form
Homepage: https://gcanti.github.io/tcomb-form
Language: JavaScript
License: MIT
License Family: permissive
Archived: true
Last push: 2020-02-18T09:31:53+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4380, "days_push": 2388, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1149, forks 136 (observed 2026-08-28T04:03:46.334474+00:00)

## What it is
tcomb-form is a family of React and React Native libraries that automatically generate forms from tcomb domain models, with built-in validation and customizable templates. It lets developers define a data model once and render fully functional, accessible forms with minimal code.

## Use cases
- generate forms from domain models in react native
- auto-generate react forms with validation
- build forms from json schema in react
- reduce boilerplate for mobile form ui
- type-based form validation in javascript
- create accessible forms with automatic labels

## When to choose
- you use React or React Native and want model-driven form generation
- you want validation tied directly to your domain model types
- you need customizable form templates and stylesheets
- you want to support JSON Schema-driven forms

## When to avoid
- you need actively maintained software - the project is looking for maintainers
- you use modern React Native versions beyond 0.35
- you prefer hook-based or schema-first form libraries like react-hook-form or formik
- you need complex custom form widgets out of the box

## Facets
- artifact type: library
- maturity: maintenance
- function: form-handling, ui-components, state-management
- domain: frontend, mobile-development, web-development
- platform: -
- tags: react-native, react, forms, validation, domain-models, json-schema, tcomb, mobile, ios, android, javascript

## Member repositories
- gcanti/tcomb-form (main) score 10
- gcanti/tcomb-form-native (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:46.334474+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-29T18:45:58.162806+00:00, confidence not recorded.
  - readme: https://github.com/gcanti/tcomb-form (fetched 2026-08-28T04:03:46.334474+00:00, sha 631b7226dc23)
  - registry_npm: https://registry.npmjs.org/tcomb-form-native (fetched 2026-08-29T09:41:50.605688+00:00, sha 01d19c800dde)
  - registry_npm: https://registry.npmjs.org/tcomb-form (fetched 2026-08-29T09:41:50.607542+00:00, sha 37e09f9e2254)
- Data as of 2026-08-30T08:39:29.467469+00:00.
