class-transformer
Decorator-based transformation for JavaScript objects to class constructors
- Status
- UnmaintainedNo commits in 586 days.
- Last checked
- Checked · Oct 14, 2026
- License
- Open source
- Pricing
- Free tier · from $0
What it is
Class-Transformer is a TypeScript library that provides decorator-based serialization and deserialization of plain JavaScript objects into instances of classes. It simplifies the process of converting data structures, making it easier to work with complex object models in applications.
Class-Transformer stands out with its decorator-based approach, offering a more declarative way to handle object transformations compared to manual mapping or less flexible libraries.
When it fits — and when it doesn’t
A good fit for
Teams working on TypeScript projects that require seamless conversion between plain objects and class instances
Projects where maintaining consistency in object models is crucial for data integrity and ease of use
Look elsewhere if
Applications requiring real-time data transformation without the overhead of decorators
Scenarios where minimal dependencies are preferred over enhanced functionality
Known weaknesses
Each one links to the public issue, changelog or docs page it came from, where we have one.
- 01
Steep learning curve for non-TypeScript developers
The library heavily relies on TypeScript features such as decorators, which may be unfamiliar to developers without a strong background in TypeScript.
- 02
Limited documentation and examples
While the core functionality is well-documented, advanced use cases and edge scenarios are not covered comprehensively, leading to potential confusion for users trying to implement complex transformations.
- 03
Performance overhead due to runtime checks
The library performs extensive type checking at runtime which can introduce performance bottlenecks in high-frequency or real-time applications.
What it does well
Decorator-based transformation for easy object serialization and deserialization
Supports both plain JavaScript objects and TypeScript classes
Flexible configuration options for customizing the transformation process
Pricing
- Free tier
- YesOpen source — free to use
- Paid from
- $0
- Model
- Flat rate
- Enterprise plan
- No
Pricing not independently confirmed — check the vendor’s page.
Performance benchmarks
How Fast Is It?
Set up class-transformer
Setup steps, common gotchas and what to check after 30 days.
Get the badge
A small badge for class-transformer’s README or site: its name, “Tracked on AI Navigator”, and the availability status and check month from this page. It updates as the catalog does.
Markdown
[](https://navigateaitools.com/explorer/tool/class-transformer)HTML
<a href="https://navigateaitools.com/explorer/tool/class-transformer"><img src="https://navigateaitools.com/badge/class-transformer.svg" alt="class-transformer — tracked on AI Navigator" height="58"></a>