aiagent.club
中文
GitHub

typia

#408 of 964 in the AI Agent Index

16 Score
Real usage
Momentum
Attention
64

About

typia is a transformer library supporting below features:

> - Only one line required, with pure TypeScript type - Runtime validator is 20,000x faster than class-validator - JSON serialization is 200x faster than class-transformer - LLM function calling harness turns 6.75% → 100% accuracy

You must use ttsc and ttsx. The stock tsc, ts-node, and tsx cannot apply the typia transform, so they will not work.

For bundler integration (Vite, Next.js, Webpack, Rollup, esbuild, ...), use @ttsc/unplugin.

If you call typia function, it would be compiled like below.

This is the key concept of typia, transforming TypeScript type to a runtime function. The typia.is() function is transformed to a…

Across sources

5.9k Stars
  • Stars 5.9k
  • Forks 223
  • Commits 2.7k
  • Releases 265