Ross ROSS = Recommend OSS · open-source software intelligence for agents

typestack/class-transformer

Decorator-based transformation, serialization, and deserialization between objects and classes. observed · 2026-08-28

github.com/typestack/class-transformer · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

60/100

  • Activity 83
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 3858
  • days_rel: n/a
  • days_push: 103
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

7339 stars · 527 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

class-transformer is a TypeScript/JavaScript library that transforms plain objects into class instances and back using decorators. It supports serialization, deserialization, exposing/skipping properties, versioning, and groups for controlling output.

Use cases

  • convert plain JSON objects into typed class instances
  • serialize class instances to plain objects for API responses
  • deserialize API payloads into class instances with nested types
  • exclude or rename properties during serialization
  • convert date strings into Date objects on deserialization
  • expose getters and method return values in serialized output

When to choose

  • you use TypeScript classes and want type-safe instances from plain objects
  • you need fine-grained control over which properties are serialized
  • you work with nested object graphs and need automatic type conversion
  • you want decorator-based transformation on both frontend and backend

When to avoid

  • you only need simple JSON.stringify/parse without class instances
  • your project uses plain interfaces and types instead of classes
  • you need schema validation rather than transformation (use class-validator or zod)
  • you avoid experimental/legacy decorators in your build setup

Facets

library · maturity stable

serialization middleware developer-tools web-development backend frontend browser cross-platform typescript decorators deserialization plain-objects class-instances data-transformation nodejs

2 sources

Member repositories

RepositoryRoleHealth v2
typestack/class-transformermain60

For agents

markdown · JSON · MCP: product_card(name="typestack/class-transformer")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem