# samchon/typia

Super-fast/easy runtime validators and serializers via transformation

Repository: https://github.com/samchon/typia
Canonical: https://ross.abutalabs.com/products/typia
Homepage: https://typia.io/
Language: Go
License: MIT
License Family: permissive
Topics: json, stringify, typescript, fast, ajv, checker, generator, runtime, transform, validator, type, random, protobuf, hacktoberfest, agentic-ai, json-schema, llm-function-calling, openapi
Last push: 2026-08-26T06:17:30+00:00

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

## Adoption (not part of the score)
Stars 5877, forks 224 (observed 2026-08-28T04:09:31.881603+00:00)

## What it is
Typia is a TypeScript transformer library that compiles pure TypeScript types into super-fast runtime validators, JSON serializers/parsers, JSON schemas, Protocol Buffer codecs, random data generators, and LLM function-calling schemas at build time. It requires no runtime reflection or separate schema definitions, claiming up to 20,000x faster validation than decorator-based alternatives.

## Use cases
- validate api request bodies against typescript types
- generate  schema from typescript interfaces
- build llm function calling tools with type-safe schemas
- fast  serialization of typed objects
- validate and parse untrusted  at runtime
- generate random mock data from typescript types
- encode and decode protobuf messages from typescript types
- validate llm structured output with detailed error feedback

## When to choose
- you want runtime validation without duplicating types as schemas or decorators
- validation performance is critical in hot paths
- you need type-safe LLM function calling or structured output schemas
- you want JSON schema or protobuf generation derived directly from TypeScript types

## When to avoid
- your project cannot adopt a TypeScript compiler transform like ttsc or ts-patch
- you need runtime validation in plain JavaScript without TypeScript
- you rely on tooling incompatible with custom transformers (some bundlers or ts-node setups)

## Facets
- artifact type: library
- maturity: active
- function: serialization, testing, llm-inference, prompt-engineering, data-generation
- domain: developer-tools, web-development, large-language-models, apis, backend
- platform: cross-platform
- tags: runtime-validation, -schema, compile-time-transform, protocol-buffers, llm-function-calling, type-safe, structured-output, random-data, nodejs, typescript

## Member repositories
- samchon/typia (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:31.881603+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:51:34.772875+00:00, confidence not recorded.
  - readme: https://github.com/samchon/typia (fetched 2026-08-28T04:09:31.881603+00:00, sha 72aaaf9ac12d)
  - homepage: https://typia.io/ (fetched 2026-08-29T08:47:08.404892+00:00, sha 3a3d8f21859b)
  - site_page: https://typia.io/docs/validators/is (fetched 2026-08-29T08:47:08.425776+00:00, sha cc4623327d10)
  - site_page: https://typia.io/docs/validators/shallow (fetched 2026-08-29T08:47:08.427798+00:00, sha 398c876b9ae9)
  - site_page: https://typia.io/docs/validators/validate (fetched 2026-08-29T08:47:08.429582+00:00, sha 92fab9e69461)
  - site_page: https://typia.io/docs (fetched 2026-08-29T08:47:08.414807+00:00, sha 13ba27ce3875)
  - site_page: https://typia.io/docs/setup (fetched 2026-08-29T08:47:08.417568+00:00, sha 3c381a646dd0)
  - site_page: https://typia.io/docs/setup/legacy (fetched 2026-08-29T08:47:08.419615+00:00, sha 09e31f18aa94)
  - site_page: https://typia.io/docs/pure (fetched 2026-08-29T08:47:08.421416+00:00, sha c5765019eaa9)
  - site_page: https://typia.io/docs/validators/assert (fetched 2026-08-29T08:47:08.423300+00:00, sha df0de6201583)
- Data as of 2026-08-30T08:39:29.467469+00:00.
