Pothos
A strong pick. 3rd of 10 RPC and GraphQL libraries.
Pothos is a plugin-based, code-first GraphQL schema builder for TypeScript. It gives strong type inference without decorators or code generation. It is the strongest current pick for building a GraphQL schema in TypeScript, but it only builds the schema: you serve it with GraphQL Yoga, Apollo Server or Mercurius.
Best for: TypeScript teams building a GraphQL API who want inferred types without decorators or codegen, especially with Prisma or Drizzle.
Scores
Overall7.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Pothos is clearly the best pick for building a code-first GraphQL schema in TypeScript today. It beats TypeGraphQL on type inference and maintenance, and its usage is growing faster than the median. It is a schema builder, not a full server, and it relies heavily on one maintainer. Teams that do not need GraphQL are often better served by tRPC or oRPC.
- dev.to/xcfox/decorators-vs-native-ts-which-won-2026s-typescript-graphql-schema-showdown-8-frameworks-c5n: Top-tier rating among TypeScript GraphQL frameworks
- encore.dev/articles/typescript-graphql-api-guide: Recommended default for code-first TypeScript GraphQL
- npm downloads ratio: 5.5x, above the 4.1 median
- peers TypeGraphQL commitsLastYear: TypeGraphQL had 24 commits vs 1004 for Pothos
GPT-6.2 Sol: 8.2, likely 7.0 to 9.1
I would pick Pothos over TypeGraphQL for a new project that wants a code-first GraphQL schema, given its resolver inference, plugin support, and faster release cadence. Its standard schema makes it a good fit with Yoga, while tRPC is a simpler fit for teams that need only TypeScript-to-TypeScript RPC. Smaller verified adoption and reliance on one lead maintainer keep it below the top tier for the full category.
- pothos-graphql.dev/docs/guide/schema-builder: Typed schema definition produces a portable GraphQLSchema.
- typegraphql.com/docs/getting-started: TypeGraphQL offers a class-and-decorator approach to the same schema-building job.
- trpc.io/docs: tRPC provides end-to-end inference for TypeScript clients and servers.
- pothos-graphql.dev/sponsors: Sponsor support and contributions are visible, with development concentrated in the lead maintainer.
- npm latestPublishedAt, npm versionsLastYear, dependents, peers: Core shipped on November 20 after 12 versions in a year, with fewer indexed dependent repositories than TypeGraphQL or Yoga.
Needed by many4.0
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
Pothos serves only TypeScript developers who build GraphQL servers code-first. That is a clear niche inside a category where many teams now pick RPC tools such as tRPC or oRPC. It does run on any runtime and works with any GraphQL server.
- peers downloadsLast4Weeks: tRPC and oRPC have far more downloads than GraphQL schema builders
- encore.dev/articles/typescript-graphql-api-guide: Positions Pothos for TypeScript GraphQL servers, paired with Yoga
GPT-6.2 Sol: 3.9, likely 2.8 to 5.2
GraphQL is an established choice among API teams, and Pothos works across server frameworks. Its audience is narrower because it fits teams that want to author a GraphQL schema in TypeScript. Postman's survey measures GraphQL use among API professionals, so it gives only an indirect estimate of how many JavaScript and TypeScript developers need Pothos.
- postman.com/state-of-api/2025: 33% of respondents reported working with GraphQL.
- pothos-graphql.dev/docs/guide/schema-builder: The TypeScript builder emits a standard GraphQLSchema.
- zenn.dev/chillnn_tech/articles/15462cffcdecd3: CHILLNN tried Pothos and switched to schema-first development.
Helps a lot8.5
How well does it do the job for those who need it?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
Pothos has excellent type inference without decorators, a minimal core and a deep set of official plugins for Prisma, Drizzle, Relay, DataLoader and auth. Independent comparisons rate it at or near the top of TypeScript GraphQL schema builders. The verbose builder syntax and the need for several plugins keep it short of a 9. Its docs publish an llms-full.txt, which helps AI coding agents.
- dev.to/xcfox/decorators-vs-native-ts-which-won-2026s-typescript-graphql-schema-showdown-8-frameworks-c5n: Ranked second of 8 frameworks, top tier for architecture, 5 stars for parameter inference
- blog.logrocket.com/pothos-vs-typegraphql-for-typescript-schema-building: Comparison favors Pothos, notably its Prisma integration
- pothos-graphql.dev/llms-full.txt: Full docs published in a form AI agents can read
GPT-6.2 Sol: 8.5, likely 7.3 to 9.4
Resolver inference and a broad plugin catalog make Pothos a strong code-first builder. An independent benchmark found little request-time overhead in its tested stacks, and 4.18.1 fixes a separate slowdown during schema builds. The compiler can catch mistakes in agent-written resolvers, but complex types can slow editor feedback and produce dense errors. The benchmark predates 4.18.1, and coding-agent accuracy was not measured.
- pothos-graphql.dev/docs/guide/schema-builder: Documents typed resolver context and backing models.
- pothos-graphql.dev/docs/plugins: Covers ORM integration, batching, federation, authorization, and validation.
- tomekdev.com/posts/benchmarking-graphql-solutions-in-the-js-ts-landscape: The tested Pothos stacks showed little overhead from the schema builder.
- github.com/hayes/pothos/releases/tag/@pothos%2Fcore@4.18.1: Fixes slow schema builds when many fields reuse input types.
- pothos-graphql.dev/docs/guide/troubleshooting: Documents hard-to-read type errors, slow editor feedback, and duplicate core installs.
Holds up over time7.7
Will it still be a good choice in two years?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Activity is very high: about 1,000 commits and 130 releases last year, a release the day before the read, and 140 contributors. The v4 line has been stable for a long time. The main risk is that one lead maintainer does most of the work, and no company funding is visible.
- github commitsLastYear: 1004 commits in the last year
- github releasesLastYear: 130 releases; latest on 2026-11-20
- github openIssues/closedIssues: 47 open vs 510 closed, so the issue backlog is well handled
- hayes/pothos maintainership: Mostly led by one maintainer, Michael Hayes
GPT-6.2 Sol: 7.8, likely 6.4 to 8.8
Twelve core versions shipped in a year, and a reported Drizzle limitation drew a community patch that merged the next day. The v4 migration preserves v3 defaults through a compatibility option, though some plugin fixes require coordinated upgrades. Sponsors help support development, while contributions and visible publishing access remain concentrated. One quick merge gives limited evidence about typical response times.
- npm versionsLastYear, github commitsLastYear, github releasesLastYear, github contributors: 12 core versions, 1,004 repository commits, 130 repository releases across packages, and 140 contributors.
- github.com/hayes/pothos/pull/1440: A user's Drizzle pagination contribution went from opening to merge in one day.
- pothos-graphql.dev/docs/migrations/v4: Shows how to retain v3 defaults and identifies plugin migration steps.
- github.com/hayes/pothos/releases: Recent scope authorization changes required updating core and affected ORM plugins together.
- pothos-graphql.dev/sponsors: Lists sponsors and shows that the lead maintainer supplies most historical commits.
- npmjs.com/package/%40pothos/core: The available npm snapshot lists one package collaborator.
Used widely4.6
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Downloads reached 2.7M in the last 4 weeks, up from 494k a year before. That 5.5x ratio is above the 4.1 median, so Pothos is gaining ground. Dependents (316 repos) and stars (2.6k) are well below TypeGraphQL and Yoga, so the number of projects that choose it is more modest than the downloads suggest.
- npm downloadsLast4Weeks: 2,717,628 vs 494,024 a year ago, a 5.5x ratio
- dependents: 316 repos and 77 packages, vs 7054 for TypeGraphQL
- github stars: 2627 stars
GPT-6.2 Sol: 4.2, likely 2.9 to 5.6
Four-week downloads rose from 494,024 to 2.72 million, or 5.5× year over year. That exceeds the 4.1× catalog baseline and the growth ratios for TypeGraphQL and Yoga. Ecosyste.ms found 316 dependent repositories and 77 packages, with repository counts near Mercurius and far below TypeGraphQL and Yoga. Repeat installs, plugin-driven installs, and partial repository coverage leave the number of teams choosing Pothos uncertain.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: 5.5× year-over-year download growth against a 4.1× baseline.
- dependents, peers: 316 indexed repositories versus 341 for Mercurius, 7,054 for TypeGraphQL, and 10,200 for Yoga.
- github stars, bluesky posts, hackerNews stories: 2,627 repository-wide stars, one Bluesky link post, and zero title-matched Hacker News stories.
- raw.githubusercontent.com/hayes/pothos/7882d43/packages/plugin-prisma/package.json: The Prisma plugin declares core as a peer dependency, another route to a core install.
Vouched for6.3
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 4.5 to 7.0
Recent independent guides, such as Encore's 2026 guide, call Pothos the recommended default for code-first TypeScript GraphQL, and comparison write-ups rank it at the top. The README says Airbnb and Netflix use it, but that claim comes from the project itself. I found no current survey data and almost no Hacker News or Bluesky discussion.
- encore.dev/articles/typescript-graphql-api-guide: Calls Yoga + Pothos the pragmatic modern choice in 2026
- github.com/hayes/pothos: README says it is used at Airbnb and Netflix
- hasura.io/blog/state-of-graphql-2022-survey-report-summary-and-insights: Listed only in passing in the 2022 State of GraphQL survey
- hackerNews stories: 0 HN stories; 1 Bluesky post
GPT-6.2 Sol: 6.6, likely 5.3 to 7.7
Buildplace reports using Pothos in its backend, and the Hackers’ Pub API lists it and several plugins as dependencies. Prisma and GraphQL Yoga both show how to use it in their current docs, and an independent benchmark found low overhead in its test setup. Recent evidence of adoption at large organizations and broad satisfaction data are limited.
- news.ycombinator.com/item?id=46466074: Buildplace identifies Pothos as part of its backend in a January 2026 hiring post.
- github.com/hackers-pub/hackerspub/blob/main/graphql/package.json: The Hackers’ Pub GraphQL API directly depends on core and several plugins.
- docs.prisma.io/docs/orm/v7/core-concepts/api-patterns: Prisma lists Pothos in a ready-to-run GraphQL example with Yoga.
- the-guild.dev/graphql/yoga-server/docs: Yoga includes Pothos as a supported schema-building option in its quickstart.
- tomekdev.com/posts/benchmarking-graphql-solutions-in-the-js-ts-landscape: Independent performance comparison includes both Pothos and TypeGraphQL.
Safe7.8
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
No advisories have ever been published, the core has no dependencies besides the graphql peer, and the ISC licence is permissive. No Scorecard data exists, and releases appear to depend on a small number of publishers. That keeps the score from going higher.
- advisories total: 0 advisories
- npm dependencies: 0 dependencies
- scorecard: No OpenSSF Scorecard data
- npm license: ISC
GPT-6.2 Sol: 7.5, likely 6.1 to 8.7
Core uses the permissive ISC license and declares GraphQL.js as its only runtime peer dependency. OSV lists zero core advisories, and a November release fixed an authorization issue in the optional scope-auth plugin. Release automation requests npm provenance and configures a publishing token, while the available npm snapshot lists one collaborator. The missing Scorecard and lack of a published GitHub security policy limit confidence.
- npm license, npm dependencies, advisories total, scorecard: ISC, zero direct dependencies, zero OSV advisories for core, and no Scorecard result.
- raw.githubusercontent.com/hayes/pothos/7882d43/packages/core/package.json: The 4.18.1 manifest declares GraphQL.js as a peer and enables provenance.
- raw.githubusercontent.com/hayes/pothos/7882d43/.github/workflows/changesets.yml: The publishing workflow uses GitHub Actions and configures npm token authentication.
- npmjs.com/package/%40pothos/core: The available npm snapshot lists one collaborator.
- github.com/hayes/pothos/security: GitHub shows no published security policy or repository advisories.
- github.com/hayes/pothos/releases: Scope-auth 4.5.0 corrected how authorization checks are combined.
Good
- Resolver arguments, parents and return types are inferred from plain TypeScript, with no decorators and no code generation step.
- Official plugins cover Prisma, Drizzle, Relay, DataLoader, auth scopes, errors, validation and tracing.
- The core has no runtime dependencies besides graphql, and its output is a standard schema that works with any GraphQL server.
- It is maintained very actively, with about 1,000 commits and 130 package releases in the last year.
Bad
- It only builds the schema, so you still need a separate server such as GraphQL Yoga or Apollo Server.
- The fields: (t) => ({...}) builder style is verbose, and validation, DataLoader and directives each need a separate plugin.
- Most of the work comes from one lead maintainer, so the project depends heavily on one person.
- It serves only GraphQL, and many full-stack TypeScript teams now choose tRPC or oRPC instead of GraphQL.
The numbers
- npm downloads, 4 weeks
- 2.7M ×5.5 in a year
- GitHub stars
- 2.6k
- Commits, 12 months
- 1k
- npm version
- 4.18.1 Nov 2026
- Versions, 12 months
- 12
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- ISC
Read on 21 November 2026 from GitHub (hayes/pothos), npm (@pothos/core), 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