{"id":13433100,"url":"https://github.com/graphql-nexus/nexus","last_synced_at":"2025-05-13T17:09:11.007Z","repository":{"id":37780556,"uuid":"155921978","full_name":"graphql-nexus/nexus","owner":"graphql-nexus","description":"Code-First, Type-Safe, GraphQL Schema Construction","archived":false,"fork":false,"pushed_at":"2023-11-19T09:46:52.000Z","size":19085,"stargazers_count":3417,"open_issues_count":256,"forks_count":276,"subscribers_count":31,"default_branch":"main","last_synced_at":"2025-05-09T22:39:09.275Z","etag":null,"topics":["graphql","graphql-nexus","graphql-schema","nexus","typescript"],"latest_commit_sha":null,"homepage":"https://nexusjs.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graphql-nexus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"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}},"created_at":"2018-11-02T21:11:33.000Z","updated_at":"2025-05-06T11:01:37.000Z","dependencies_parsed_at":"2024-05-05T12:48:32.828Z","dependency_job_id":null,"html_url":"https://github.com/graphql-nexus/nexus","commit_stats":{"total_commits":717,"total_committers":129,"mean_commits":5.558139534883721,"dds":0.5481171548117154,"last_synced_commit":"9e5c27c50901b038e276c8a2ec4bb5ace1415580"},"previous_names":["graphql-nexus/schema","prisma/nexus"],"tags_count":173,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-nexus%2Fnexus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-nexus%2Fnexus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-nexus%2Fnexus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-nexus%2Fnexus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphql-nexus","download_url":"https://codeload.github.com/graphql-nexus/nexus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253990468,"owners_count":21995774,"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","graphql-nexus","graphql-schema","nexus","typescript"],"created_at":"2024-07-31T02:01:20.996Z","updated_at":"2025-05-13T17:09:10.962Z","avatar_url":"https://github.com/graphql-nexus.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Implementations","📦 Legacy \u0026 Inactive Projects"],"sub_categories":["JavaScript/TypeScript"],"readme":"# Nexus\n\n[![trunk](https://github.com/graphql-nexus/nexus/workflows/trunk/badge.svg)](https://github.com/graphql-nexus/nexus/actions/workflows/trunk.yml)\n[![npm version](https://badge.fury.io/js/nexus.svg)](https://badge.fury.io/js/nexus)\n\nDeclarative, code-first and strongly typed GraphQL schema construction for TypeScript \u0026 JavaScript.\n\n## Installation\n\n```\nnpm install nexus graphql\n```\n\nNote you must also add `graphql`. Nexus pins to it as a [peer dependency](https://nodejs.org/en/blog/npm/peer-dependencies/).\n\n## Features\n\n- **Expressive, declarative API for building schemas**\n- **Full type-safety for free**\n- **Powerful plugin system**\n- **No need to re-declare interface fields per-object**\n- **Optionally possible to reference types by name (with autocomplete)**  \n  Rather than needing to import every single piece of the schema\n- **Interoperable with vanilla `graphql-js` types, and it's _just_ a [`GraphQLSchema`](https://graphql.org/graphql-js/type/#graphqlschema)**  \n  So it fits in just fine with existing community solutions of `apollo-server`, `graphql-middleware`, etc.\n- **Inline function resolvers**  \n  For when you need to do simple field aliasing\n- **Auto-generated graphql SDL schema**  \n  Great for when seeing how any code changes affected the schema\n- **DRY-up schema design**  \n  Create higher level \"functions\" which wrap common fields\n\n## Example\n\n```ts\nimport { queryType, stringArg, makeSchema } from 'nexus'\nimport { GraphQLServer } from 'graphql-yoga'\n\nconst Query = queryType({\n  definition(t) {\n    t.string('hello', {\n      args: { name: stringArg() },\n      resolve: (parent, { name }) =\u003e `Hello ${name || 'World'}!`,\n    })\n  },\n})\n\nconst schema = makeSchema({\n  types: [Query],\n  outputs: {\n    schema: __dirname + '/generated/schema.graphql',\n    typegen: __dirname + '/generated/typings.ts',\n  },\n})\n\nconst server = new GraphQLServer({\n  schema,\n})\n\nserver.start(() =\u003e `Server is running on http://localhost:4000`)\n```\n\nMore examples can be found in the [`/examples`](./examples) directory:\n\n- [githunt-api](./examples/githunt-api)\n- [ts-ast-reader](./examples/ts-ast-reader)\n- [apollo-fullstack](./examples/apollo-fullstack)\n- [star-wars](./examples/star-wars)\n- [kitchen-sink](./examples/kitchen-sink)\n\n## Documentation\n\nYou can find the docs for Nexus [here](http://nexusjs.org/).\n\n## Migrate from SDL\n\nIf you've been following an [SDL-first](https://www.prisma.io/blog/the-problems-of-schema-first-graphql-development-x1mn4cb0tyl3/) approach to build your GraphQL server and want to see what your code looks like when written with GraphQL Nexus, you can use the [**SDL converter**](https://nexusjs.org/converter).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-nexus%2Fnexus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphql-nexus%2Fnexus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-nexus%2Fnexus/lists"}