Elestia Open Source Ratings
5.0

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.

WebsiteGitHubnpm

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

  1. 8.2tRPC
  2. 8.0GraphQL Yoga
  3. 7.9Pothos
  4. 7.8oRPC
  5. 7.6GraphQL.js
  6. 7.5Connect
  7. 7.2Apollo Server
  8. 6.9Mercurius
  9. 5.0TypeGraphQL
  10. 1.7ts-rest
Compare all 10 on six scores