# graphql-nexus/nexus

Code-First, Type-Safe, GraphQL Schema Construction

Repository: https://github.com/graphql-nexus/nexus
Canonical: https://ross.abutalabs.com/products/nexus
Homepage: https://nexusjs.org
Language: TypeScript
License: MIT
License Family: permissive
Topics: graphql, typescript, nexus, graphql-nexus, graphql-schema
Last push: 2023-11-19T09:46:52+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2861, "days_push": 1018, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3430, forks 273 (observed 2026-08-28T04:08:04.019395+00:00)

## What it is
GraphQL Nexus is a declarative, code-first library for building strongly typed GraphQL schemas in TypeScript and JavaScript. It layers an ergonomic builder API on top of graphql-js, auto-generating SDL and TypeScript type definitions while remaining interoperable with Apollo Server and other ecosystem tools.

## Use cases
- build a type-safe GraphQL schema in TypeScript
- generate SDL and typings automatically from code
- migrate an SDL-first GraphQL schema to code-first
- define GraphQL resolvers with inline functions and full type inference
- create reusable composable field helpers to DRY up schema design
- integrate a GraphQL schema with Apollo Server or graphql-middleware

## When to choose
- you want code-first schema construction with end-to-end type safety in TypeScript
- you prefer IDE autocompletion and auto-generated type definitions over hand-written SDL
- you need interoperability with vanilla graphql-js types and existing GraphQL servers

## When to avoid
- your team strongly prefers SDL-first schema design
- you need a library with frequent releases and active development - the project has been quiet since late 2023
- you are not using TypeScript or JavaScript

## Facets
- artifact type: library
- maturity: maintenance
- function: graphql, api-framework, type-system, plugin-system
- domain: web-development, backend, apis, developer-tools
- platform: cross-platform
- tags: code-first, schema-construction, type-safety, graphql-schema, sdl-generation, resolver-api, nodejs, typescript

## Member repositories
- graphql-nexus/nexus (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:04.019395+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:37:47.346670+00:00, confidence not recorded.
  - readme: https://github.com/graphql-nexus/nexus (fetched 2026-08-28T04:08:04.019395+00:00, sha 9700c589dcf3)
  - homepage: https://nexusjs.org (fetched 2026-08-29T09:32:10.430211+00:00, sha aa1ab628244e)
  - site_page: https://nexusjs.org/docs (fetched 2026-08-29T09:32:10.439221+00:00, sha e31cbc337bc9)
  - site_page: https://nexusjs.org/docs/getting-started (fetched 2026-08-29T09:32:10.441474+00:00, sha 61bce52da041)
  - site_page: https://nexusjs.org/docs/api-core-concepts (fetched 2026-08-29T09:32:10.443277+00:00, sha 2040d8e25f0a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
