TypeScript Decorators

Open-source TypeScript projects categorized as Decorators

Top 23 TypeScript Decorator Projects

  1. class-validator

    Decorator-based property validation for classes.

    Project mention: How to Validate a Number with Specific Decimal Places in TypeScript? | dev.to | 2025-05-04

    class-validator is a powerful library that allows you to apply constraints and validations on class properties. It’s beneficial in various scenarios, especially for validating user inputs in your applications. Using decorators, you can easily express validation rules, enabling your code to be more readable and maintainable.

  2. SurveyJS

    JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor. Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.

    SurveyJS logo
  3. TypeGraphQL

    Create GraphQL schema and resolvers with TypeScript, using classes and decorators!

    Project mention: Starting the Console front-end for Rainbow Platform | dev.to | 2024-10-22

    Take GraphQL as an example—REST APIs have a similar challenge, often using something like OpenAPI as the "schema." If you want your code to be the source of truth, you can use something like TypeGraphQL, which generates the GraphQL schema based on decorators in your classes. On the other hand, you can use the reference GraphQL server implementation (graphql-js) with raw Schema Definition Files as your contract—then generate TypeScript types using something like GraphQL Codegen.

  4. tsyringe

    Lightweight dependency injection container for JavaScript/TypeScript

    Project mention: Stop Spaghetti Code! How Clean Architecture Saves Next.js Projects | dev.to | 2025-05-02

    For connecting layers we uses DI(dependency-injection) by tsyringe.

  5. Ts.ED

    :triangular_ruler: Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone. ⭐️ Star to support our work!

  6. sequelize-typescript

    Decorators and some other features for sequelize

  7. until-destroy

    🦊 RxJS operator that unsubscribe from observables on destroy

    Project mention: Angular resources I often return to | dev.to | 2024-11-10

    Netanel Basal Explains new and more intermediate concepts hands-on.

  8. injection-js

    Dependency injection library for JavaScript and TypeScript in 5.1K. It is an extraction of the Angular's ReflectiveInjector which means that it's well designed, feature complete, fast, reliable and well tested.

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. discordx

    🤖 Create a discord bot with TypeScript and Decorators!

  11. rxweb

    Tons of extensively featured packages for Angular, VUE and React Projects

  12. vue-facing-decorator

    Vue typescript class component decorators

  13. ioc

    :unicorn: lightweight (<1kb) inversion of control javascript library for dependency injection written in typescript (by owja)

    Project mention: ioc VS vorarbeiter - a user suggested alternative | libhunt.com/r/owja/ioc | 2025-02-02
  14. utils-decorators

    Decorators for web and node applications

  15. awesome-typescript-examples

    ✨ Awesome TypeScript Examples with complete show cases of how to take advantage of the language potential.

  16. fastify-resty

    ⚔️ Declarative NodeJS web framework with REST API route auto-generation, DI, and decorators, build on top of Fastify and TypeScript.

  17. meta-controller

    Create REST APIs using TypeScript decorators.

  18. ts-jackson

    A typescript library to deserialize and serialize json into classes. You can use different path pattern to resolve deeply nested structures. Every path pattern provided by lodash/get|set object is supported. Check out src/examples as a reference.

  19. TypeManager.TS

    Transform JSON strings or plain objects into JS class instances.

  20. react-decorate-form

    🚀 Elegant form validation solution in React with TypeScript using Decorators 🚀

  21. nestjs-custom-injector

    Custom injecting logic for NestJS with support multi providing

  22. lemondi

    🍋 LemonDI is a decorator-based Dependency Injection (DI) framework for TypeScript 💉. By leveraging decorators, it simplifies the setup and management of application components, allowing developers to easily create and manage complex applications.

    Project mention: Typescript deserves a better dependency injection framework 💉 | dev.to | 2025-01-19

    What I'm trying to achieve with LemonDI is to move beyond the limitations of reflect-metadata and take full advantage of TypeScript’s type system, making dependency injection in TypeScript more powerful, flexible, and type-safe.

  23. decotix

    A decorator-focused typescript client for the Prisma schema file.

  24. react-decorated-text

    Unstyled React component to apply multiple text highlight/decorations within a larger body of text.

  25. node-decorators

    Typescript decorator implementation for caching and logging

  26. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

TypeScript Decorators discussion

Log in or Post with

TypeScript Decorators related posts

  • How to Validate a Number with Specific Decimal Places in TypeScript?

    1 project | dev.to | 4 May 2025
  • Typescript deserves a better dependency injection framework 💉

    1 project | dev.to | 19 Jan 2025
  • Writing a Node.js and Express app with decorators based routing and DI

    1 project | dev.to | 3 Jan 2025
  • NestJS + class-validator

    1 project | dev.to | 10 Aug 2024
  • Migrating From until-destroy To Angular takeUntilDestroyed

    1 project | dev.to | 20 Dec 2023
  • DRY Principle in Your AWS SAM Application with Middlewares

    1 project | dev.to | 28 Nov 2023
  • [Nestia] Boost up your NestJS server much faster and easier (maximum 20,000x faster)

    2 projects | dev.to | 27 Apr 2023
  • A note from our sponsor - Stream
    getstream.io | 9 Jul 2025
    Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure. Learn more →

Index

What are some of the best open-source Decorator projects in TypeScript? This list will help you:

# Project Stars
1 class-validator 11,460
2 TypeGraphQL 8,086
3 tsyringe 5,556
4 Ts.ED 2,984
5 sequelize-typescript 2,817
6 until-destroy 1,751
7 injection-js 1,248
8 discordx 689
9 rxweb 401
10 vue-facing-decorator 390
11 ioc 302
12 utils-decorators 228
13 awesome-typescript-examples 186
14 fastify-resty 91
15 meta-controller 30
16 ts-jackson 27
17 TypeManager.TS 26
18 react-decorate-form 19
19 nestjs-custom-injector 11
20 lemondi 9
21 decotix 7
22 react-decorated-text 5
23 node-decorators 4

Sponsored
JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.
surveyjs.io

Did you know that TypeScript is
the 1st most popular programming language
based on number of references?