Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

class-transformer

Decorator-based transformation and serialization of plain objects to classes.

Forms, validation and schemasNPM

GitHubWebsite

1. License

License from npm.

github.com/typestack/class-transformer

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What class-transformer does

Decorator-based transformation and serialization of plain objects to classes.

class-transformer popularity

65 / 100
Gid Score, #695 overall
18.2M
downloads a week, npm
7,337
GitHub stars
17
agent projects use it
class-transformer: downloads per weeknpm, class-transformer 18,209,043
class-transformer: GitHub starstypestack/class-transformer 7,337

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How class-transformer is used

  • class-transformer is a dependency in 17 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 68 projects, and what it is used with below comes from all of them.
  • The most used alternative in our scan is Zod (1,582 projects).
  • Projects that use it most often also use class-validator (97.1%), NestJS (89.7%), RxJS (85.3%).

By coding agent

13 projects, 0.4%
8 projects, 0.3%
7 projects, 0.2%

Often used with

In 97.1% of its projects
In 89.7% of its projects
In 85.3% of its projects
In 83.8% of its projects
In 82.4% of its projects
In 76.5% of its projects
In 67.6% of its projects
In 66.2% of its projects

More about class-transformer

More in Forms, validation and schemas

Alternatives

class-transformer This page

MITGid 6518.2M/wk

Zod

TypeScript-first schema validation library with static type inference.

MITGid 89471M/wk

class-validator

Decorator-based property validation for classes with TypeScript support.

MITGid 6718.2M/wk

Compare class-transformer with another tool

Get started

Install it.

npm install class-transformer

No step-by-step start for class-transformer yet: we have not written its hand-checked card.