{"id":13469587,"url":"https://github.com/hayes/pothos","last_synced_at":"2026-03-16T16:39:15.654Z","repository":{"id":37250202,"uuid":"214364558","full_name":"hayes/pothos","owner":"hayes","description":"Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach","archived":false,"fork":false,"pushed_at":"2025-05-04T19:53:18.000Z","size":74970,"stargazers_count":2461,"open_issues_count":45,"forks_count":170,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-05-07T22:19:48.650Z","etag":null,"topics":["graphql","typescript"],"latest_commit_sha":null,"homepage":"https://pothos-graphql.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hayes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"hayes"}},"created_at":"2019-10-11T06:51:46.000Z","updated_at":"2025-05-07T17:46:00.000Z","dependencies_parsed_at":"2023-02-19T15:31:47.638Z","dependency_job_id":"9e2cba56-2856-4c7d-bb5e-2dc8e41df8e4","html_url":"https://github.com/hayes/pothos","commit_stats":{"total_commits":2059,"total_committers":124,"mean_commits":16.60483870967742,"dds":0.494900437105391,"last_synced_commit":"c1eda853fd715b03b11092e2e168c403078d4de6"},"previous_names":["hayes/giraphql"],"tags_count":3945,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayes%2Fpothos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayes%2Fpothos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayes%2Fpothos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayes%2Fpothos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hayes","download_url":"https://codeload.github.com/hayes/pothos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252962845,"owners_count":21832408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphql","typescript"],"created_at":"2024-07-31T15:01:46.037Z","updated_at":"2025-12-29T22:30:56.771Z","avatar_url":"https://github.com/hayes.png","language":"TypeScript","readme":"![Pothos](https://pothos-graphql.dev/assets/logo-name-auto.svg)\n\n# Pothos GraphQL\n\nPothos is a plugin based GraphQL schema builder for typescript.\n\nIt makes building graphql schemas in typescript easy, fast and enjoyable. The core of Pothos adds 0\noverhead at runtime, and has `graphql` as its only dependency.\n\nPothos is the most type-safe way to build GraphQL schemas in typescript, and by leveraging type\ninference and typescript's powerful type system Pothos requires very few manual type definitions and\nno code generation.\n\nPothos has a unique and powerful plugin system that makes every plugin feel like its features are\nbuilt into the core library. Plugins can extend almost any part of the API by adding new options or\nmethods that can take full advantage of the Pothos type system.\n\n## Hello, World\n\n```typescript\nimport { createYoga } from 'graphql-yoga';\nimport { createServer } from 'node:http';\nimport SchemaBuilder from '@pothos/core';\n\nconst builder = new SchemaBuilder({});\n\nbuilder.queryType({\n  fields: (t) =\u003e ({\n    hello: t.string({\n      args: {\n        name: t.arg.string(),\n      },\n      resolve: (parent, { name }) =\u003e `hello, ${name || 'World'}`,\n    }),\n  }),\n});\n\nconst yoga = createYoga({\n  schema: builder.toSchema(),\n});\n\nconst server = createServer(yoga);\n\nserver.listen(3000);\n```\n\n## What sets Pothos apart\n\n- Pothos was built from the start to leverage typescript for best-in-class type-safety.\n- Pothos has a clear separation between the shape of your external GraphQL API, and the internal\n  representation of your data.\n- Pothos comes with a large plugin ecosystem that provides a wide variety of features while\n  maintaining great interoperability between plugins.\n- Pothos does not depend on code-generation or experimental decorators for type-safety.\n- Pothos has been designed to work at every scale from small prototypes to huge Enterprise\n  applications, and is in use at some of the largest tech companies including Airbnb and Netflix.\n\n## Plugins that make Pothos even better\n\n- [**Add GraphQL**](https://pothos-graphql.dev/docs/plugins/add-graphql)\n\n  Add existing GraphQL types to your schema\n\n- [**Auth**](https://pothos-graphql.dev/docs/plugins/scope-auth)\n\n  Add global, type level, or field level authorization checks to your schema\n\n- [**Complexity**](https://pothos-graphql.dev/docs/plugins/complexity)\n\n  A plugin for defining and limiting complexity of queries\n\n- [**Directives**](https://pothos-graphql.dev/docs/plugins/directives)\n\n  Integrate with existing schema graphql directives in a type-safe way.\n\n- [**Errors**](https://pothos-graphql.dev/docs/plugins/errors)\n\n  A plugin for easily including error types in your GraphQL schema and hooking up error types to\n  resolvers.\n\n- [**Dataloader**](https://pothos-graphql.dev/docs/plugins/dataloader)\n\n  Quickly define data-loaders for your types and fields to avoid n+1 queries.\n\n- [**Mocks**](https://pothos-graphql.dev/docs/plugins/mocks)\n\n  Add mock resolvers for easier testing\n\n- [**Prisma**](https://pothos-graphql.dev/docs/plugins/prisma)\n\n  A plugin for more efficient integration with prisma that can help solve n+1 issues and more\n  efficiently resolve queries\n\n- [**Relay**](https://pothos-graphql.dev/docs/plugins/relay)\n\n  Easy to use builder methods for defining relay style nodes and connections, and helpful utilities\n  for cursor based pagination.\n\n- [**Simple Objects**](https://pothos-graphql.dev/docs/plugins/simple-objects)\n\n  Define simple object types without resolvers or manual type definitions.\n\n- [**Smart Subscriptions**](https://pothos-graphql.dev/docs/plugins/smart-subscriptions)\n\n  Make any part of your graph subscribable to get live updates as your data changes.\n\n- [**Sub-Graph**](https://pothos-graphql.dev/docs/plugins/sub-graph)\n\n  Build multiple subsets of your graph to easily share code between internal and external APIs.\n\n- [**Tracing**](https://pothos-graphql.dev/docs/plugins/tracing)\n\n  Add tracing for resolver execution, with support for opentelemetry, newrelic, century, logging,\n  and custom tracers\n\n- [**With-Input**](https://pothos-graphql.dev/docs/plugins/with-input)\n\n  Define fields with inline input objects\n\n- [**Zod Validation**](https://pothos-graphql.dev/docs/plugins/zod)\n\n  Validating your inputs and arguments\n\n## Sponsors\n\nPothos development supported by [sponsorships](https://github.com/sponsors/hayes) from these\ngenerous people and organizations:\n\n- [![The Guild](https://pothos-graphql.dev/assets/the-guild-logo.svg)](https://www.the-guild.dev/)\n- [![Prisma](https://pothos-graphql.dev/assets/prisma-logo.svg)](https://www.prisma.io/)\n- [![GitHub](https://pothos-graphql.dev/assets/github-logo.svg)](https://github.com/)\n- [![Stellate](https://pothos-graphql.dev/assets/stellate-logo.svg)](https://stellate.co/)\n- [@saevarb](https://github.com/saevarb)\n- [@seanaye](https://github.com/seanaye)\n- [@arimgibson](https://github.com/arimgibson)\n- [@ccfiel](https://github.com/ccfiel)\n- [@JoviDeCroock](https://github.com/JoviDeCroock)\n- [@hellopivot](https://github.com/hellopivot)\n- [@robmcguinness](https://github.com/robmcguinness)\n- [@Gomah](https://github.com/Gomah)\n- [![@IPS-Hosting](/assets/ips-logo.svg)](https://github.com/IPS-Hosting)\n- [@garth](https://github.com/garth)\n- [@lifedup](https://github.com/lifedup)\n- [@skworden](https://github.com/skworden)\n- [@jacobgmathew](https://github.com/jacobgmathew)\n- [@aniravi24](https://github.com/aniravi24)\n- [@mizdra](https://github.com/mizdra)\n- [@3nk1du](https://github.com/3nk1du)\n- [@FarazPatankar](https://github.com/FarazPatankar)\n- [@noxify](https://github.com/noxify)\n- [@matthawk60](https://github.com/matthawk60)\n- [@BitPhinix](https://github.com/BitPhinix)\n- [@nathanchapman](https://github.com/nathanchapman)\n- [@pradyuman](https://github.com/pradyuman)\n- [@tmm](https://github.com/tmm)\n","funding_links":["https://github.com/sponsors/hayes"],"categories":["TypeScript","Implementations","Community","Essentials","**1. Libraries**"],"sub_categories":["JavaScript/TypeScript","GraphQL"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhayes%2Fpothos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhayes%2Fpothos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhayes%2Fpothos/lists"}