TypeGraphQL
Reasonable, with limits. 9th of 10 RPC and GraphQL libraries.
TypeGraphQL builds a GraphQL schema and resolvers from TypeScript classes and decorators. It is mature and has many features, and plenty of existing code runs on it. But its last stable release (1.1.1) dates from 2020, v2 has stayed in release candidate for years, and it still depends on legacy decorators and reflect-metadata. For new code-first GraphQL work, Pothos is usually the better pick.
Best for: Teams that already use class-and-decorator TypeScript, often with class-validator or TypeORM, and want their GraphQL schema built the same way.
Scores
Overall5.0
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
TypeGraphQL still works and has many features, so it is fine to keep where it already runs. For new projects, slow single-maintainer development, the long-running 2.0 release candidate and the legacy decorator model count against it. Pothos offers better type inference and is far more active, so it does the same job better for most people.
- peers Pothos commitsLastYear: 1004 commits vs 24 for TypeGraphQL
- github.com/MichalLytek/type-graphql/releases: Still RC with breaking changes; last stable is 1.1.1
- dev.to/xcfox/typegraphql-evaluation-report-1lil: Independent evaluation scored it 2.9/5
GPT-6.2 Sol: 5.4, likely 4.2 to 6.6
TypeGraphQL remains a reasonable choice for teams committed to class-based resolvers on an existing GraphQL.js 15 stack. For most new code-first projects, Pothos offers stronger compile-time resolver inference and a much more active release cadence. The 2.0 candidate adds GraphQL.js 16 compatibility, so the recommendation could improve once a stable release establishes a maintenance record.
- app.unpkg.com/type-graphql@1.1.1/files/package.json: Stable version's GraphQL.js 15 requirement
- raw.githubusercontent.com/MichalLytek/type-graphql/v2.0.0-rc.4/package.json: GraphQL.js 16 support in the newest candidate
- pothos-graphql.dev/docs/guide/schema-builder: Pothos derives resolver types from schema definitions
- github releasesLastYear, peers Pothos: Pothos has more ongoing activity and a newer package release
Needed by many3.9
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
It serves only TypeScript developers who build GraphQL servers code-first, and among them those who like decorators. That is a clear subset of the category, which also covers RPC and schema-first GraphQL.
- github description: GraphQL schema and resolvers from TypeScript classes and decorators
- dev.to/xcfox/typegraphql-evaluation-report-1lil: TypeScript is effectively required; needs experimental decorator settings
GPT-6.2 Sol: 3.8, likely 2.7 to 5.0
GraphQL is a substantial API niche. Postman's 2025 survey reports 33% GraphQL use among its API-focused respondents. TypeGraphQL serves the smaller group building GraphQL schemas with classes and decorators in TypeScript on Node.js. The survey gives context for GraphQL demand, while the share of JavaScript and TypeScript developers who need this particular workflow is uncertain.
- postman.com/state-of-api/2025: GraphQL use among API survey respondents
- typegraphql.com/docs/1.1.1/installation.html: Node.js setup and TypeScript decorator flags
- typegraphql.com/docs/1.1.1/bootstrap.html: Schema builder hands off serving to another tool
Helps a lot5.7
How well does it do the job for those who need it?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
It is feature-rich and works with any GraphQL server. Its weak points are type inference, since types are declared explicitly and resolved at runtime through reflection, and the need for legacy decorators. Independent comparisons rank it below Pothos on architecture, type definitions and ecosystem integration, but first on built-in features.
- dev.to/xcfox/typegraphql-evaluation-report-1lil: Scored 2.9/5; verbose types, no built-in DataLoader, strong on built-in features
- dev.to/xcfox/decorators-vs-native-ts-which-won-2026s-typescript-graphql-schema-showdown-8-frameworks-c5n: Third tier on most dimensions; Pothos ranked higher
- blog.logrocket.com/pothos-vs-typegraphql-for-typescript-schema-building: Pothos infers types at compile time; TypeGraphQL relies on runtime reflection
GPT-6.2 Sol: 5.8, likely 4.6 to 7.0
Stable 1.1.1 offers a coherent class-based workflow with documented authorization, validation, middleware, and subscriptions. Its GraphQL.js 15 dependency prevents a supported pairing with Apollo Server 5. The versioned examples help developers and coding agents, but legacy metadata and explicit list and promise types add setup and runtime failure modes. A 2024 benchmark found modest resolver overhead in its test setup, and current performance and agent accuracy remain less certain.
- app.unpkg.com/type-graphql@1.1.1/files/package.json: Published stable manifest limits GraphQL.js to major version 15
- apollographql.com/docs/apollo-server/migration-from-v3: Apollo Server 5 requires GraphQL.js 16.11 or later
- typegraphql.com/docs/1.1.1/types-and-fields.html: Class-based schema features and reflection limits
- reddit.com/r/typescript/comments/1r8ra02/help_with_mono_repo_package_import: User reports a runtime type inference error under tsx
- tomekdev.com/posts/benchmarking-graphql-solutions-in-the-js-ts-landscape: Independent benchmark measured modest overhead in its setup
Holds up over time4.1
Will it still be a good choice in two years?
Claude Opus 5.5: 3.5, likely 2.5 to 5.0
There were only 24 commits and two RC releases in the last year, and the OpenSSF Maintained check scores 0. Work rests mostly on one maintainer, funded through sponsors. Version 2.0 has been in pre-release since 2023, and the RCs still bring breaking changes. Its reliance on legacy decorators also puts it at odds with where TypeScript is heading.
- github commitsLastYear: 24 commits; peers like Pothos have 1004
- scorecard Maintained: Score 0
- github.com/MichalLytek/type-graphql/releases: rc.3 and rc.4 in Feb 2026 include breaking changes; no stable 2.0
- github.com/MichalLytek/type-graphql/discussions/1549: User concerned about the dependency on legacy decorators
GPT-6.2 Sol: 4.7, likely 3.4 to 6.2
The repository recorded 24 commits and two GitHub releases in the past year, and the project receives recurring community funding. The latest stable release dates to 2020, February's 2.0.0-rc.4 is still the newest candidate, and npm lists one human collaborator. Pothos has a much faster release cadence, and TypeGraphQL's 2.0 migration changes subscriptions and scalar naming. The open 2.0 milestone leaves room for improvement, while the pace of stable fixes and ongoing issue response remain uncertain.
- github commitsLastYear, releasesLastYear, latestRelease: 24 commits, two releases, and a February release candidate
- peers Pothos: 1,004 commits and a November 2026 npm publication
- npmjs.com/package/type-graphql?activeTab=versions: Stable and candidate history, plus one listed collaborator
- github.com/MichalLytek/type-graphql/milestones: Open 2.0 milestone lists a December 2026 target
- opencollective.com/typegraphql: Recurring contributions support maintenance
- typegraphql.com/docs/migration-guide.html: Version 2 changes subscription setup and date scalar naming
Used widely5.2
How many use it, and is that growing?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
It has about 4.3M downloads in 4 weeks and about 7,000 dependent repositories, the second most among GraphQL peers after Yoga and well above Pothos. But its download ratio of 3.7 is below the 4.1 median, so it is losing ground. Many of the dependents are older codebases.
- npm downloadsLast4Weeks: 4.27M now vs 1.15M a year ago, ratio 3.7 below median 4.1
- dependents repos: 7054 repos, 447 packages
- bluesky posts: 1 bot post; little current attention
GPT-6.2 Sol: 4.9, likely 3.7 to 6.1
ecosyste.ms found about 7,100 dependent repositories and 450 dependent packages, and the project has about 8,100 GitHub stars. Four-week npm installs rose from 1.15 million to 4.27 million, about 3.7 times year over year against the 4.1 times catalog median and Pothos's 5.5 times. Automated and indirect installs, incomplete repository coverage, and little recent discussion leave the number of new projects choosing it uncertain.
- dependents repos, packages: 7,054 indexed repositories and 447 packages
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo: 4.27 million recent installs against 1.15 million a year earlier
- medianDownloadsRatio, peers Pothos: 3.7 times trails the 4.1 times baseline and Pothos's 5.5 times
- github stars, bluesky posts, hackerNews stories: 8,096 stars, one automated Bluesky link, and no matched Hacker News stories
- raw.githubusercontent.com/loopbackio/loopback-next/master/extensions/graphql/package.json: LoopBack's GraphQL extension adds indirect installs
Vouched for4.8
Who stands behind it being good?
Claude Opus 5.5: 4.5, likely 3.0 to 6.0
It has years of production use, and tools such as typegraphql-prisma and typegraphql-nestjs build on it. But current independent write-ups rank it below newer code-first libraries, and I found no recent survey or company endorsement.
- github.com/MichalLytek/typegraphql-nestjs: NestJS integration exists but lacks guards, interceptors and pipes
- dev.to/xcfox/decorators-vs-native-ts-which-won-2026s-typescript-graphql-schema-showdown-8-frameworks-c5n: 2026 comparison places it behind GQLoom and Pothos
- hackerNews stories: 0 stories
GPT-6.2 Sol: 5.1, likely 3.7 to 6.4
LoopBack's GraphQL extension still depends on TypeGraphQL, using the 2.0 candidate line. Graphweaver removed it in v1 and cited metadata growth and extensibility. An independent benchmark measured a throughput cost, while developer reports include both positive experiences and trouble with metadata setup. Recent production endorsements and satisfaction data for the stable release are sparse.
- raw.githubusercontent.com/loopbackio/loopback-next/master/extensions/graphql/package.json: LoopBack ships TypeGraphQL as a GraphQL extension dependency
- graphweaver.com/docs/upgrading-from-v0-to-v1: Downstream project explains why it removed TypeGraphQL
- tomekdev.com/posts/benchmarking-graphql-solutions-in-the-js-ts-landscape: Independent comparison with Pothos and other GraphQL stacks
- reddit.com/r/graphql/comments/1pamylo/whats_everyone_using_for_codefirst_gql_backends: Firsthand positive report in a code-first GraphQL discussion
- reddit.com/r/typescript/comments/1r8ra02/help_with_mono_repo_package_import: Firsthand report of decorator metadata friction
Safe5.9
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.5
Its record is clean: one low-severity advisory from 2020, nothing in the last 24 months, 6 dependencies, and an MIT licence. Against that, the Scorecard is weak at 3.1, with low scores on Code-Review, Token-Permissions, Dangerous-Workflow and Security-Policy, and releases depend largely on one person.
- advisories: 1 LOW advisory in 2020, none recent
- scorecard score: 3.1 overall; Dangerous-Workflow 0, Code-Review 1
- npm dependencies: 6 dependencies, MIT
GPT-6.2 Sol: 5.7, likely 4.4 to 7.0
The MIT license is permissive, and the sole known direct advisory was low severity and patched nine days after the public report. Stable 1.1.1 lists eight direct dependencies and runs a postinstall script. The current release process uses GitHub Actions and npm trusted publishing, while the package lists one human collaborator and Scorecard gives the repository 3.1 for controls that include weak review and workflow checks. Those gaps leave uncertainty about future release integrity and response times.
- scorecard score, checks: 3.1 overall, with low code review, token permissions, and workflow scores
- advisories total, last24Months: One historical advisory and none in the last 24 months
- osv.dev/vulnerability/GHSA-xf64-2f9p-6pqq: Low-severity issue fixed in 0.17.6
- github.com/MichalLytek/type-graphql/issues/489: Public report and fix dates are nine days apart
- app.unpkg.com/type-graphql@1.1.1/files/package.json: Stable package has an MIT license, eight direct dependencies, and an install hook
- raw.githubusercontent.com/MichalLytek/type-graphql/v2.0.0-rc.4/.github/workflows/release.yml: Candidate publishing workflow uses OIDC
- npmjs.com/package/type-graphql?activeTab=versions: One public npm collaborator
Good
- Classes and decorators make schema code easy to read, and each resolver class groups a type's queries, mutations and field resolvers.
- It has many built-in features: middleware, auth checkers, directives, extensions, subscriptions, custom scalars and class-validator integration.
- buildSchema returns a standard GraphQLSchema, so it works with Apollo Server, Yoga, Mercurius and others.
- It has a long track record, with about 7,000 dependent repositories and a small dependency tree.
Bad
- It needs experimentalDecorators, emitDecoratorMetadata and reflect-metadata, not standard TC39 decorators.
- Types are verbose: most fields need an explicit type function, enums must be registered, and interface fields are repeated.
- Version 2.0 has been in beta and release candidate since 2023, and the last stable release is from 2020.
- Development is slow and rests mostly on one maintainer, with about 24 commits in the last year.
The numbers
- npm downloads, 4 weeks
- 4.3M ×3.7 in a year
- GitHub stars
- 8.1k
- Commits, 12 months
- 24
- npm version
- 2.0.0-rc.3 Feb 2026
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 1 ever
- OpenSSF Scorecard
- 3.1 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (MichalLytek/type-graphql), npm (type-graphql), OSV and the OpenSSF Scorecard.
RPC and GraphQL libraries
- 8.2tRPC
- 8.0GraphQL Yoga
- 7.9Pothos
- 7.8oRPC
- 7.6GraphQL.js
- 7.5Connect
- 7.2Apollo Server
- 6.9Mercurius
- 5.0TypeGraphQL
- 1.7ts-rest