# ardatan/graphql-tools

:wrench: Utility library for GraphQL to build, stitch and mock GraphQL schemas in the SDL-first approach

Repository: https://github.com/ardatan/graphql-tools
Canonical: https://ross.abutalabs.com/products/graphql-tools
Homepage: https://www.graphql-tools.com
Language: TypeScript
License: MIT
License Family: permissive
Topics: graphql-schema, schema-language, graphql, graphql-api, javascript, mock, typescript, schema-stitching, graphql-js
Last push: 2026-08-26T17:01:55+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 81, longevity 100
- inputs: {"age_days": 3817, "days_push": 7, "days_rel": 47, "gap_med": 5.0, "n_releases_24m": 69}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5432, forks 830 (observed 2026-08-28T04:09:18.061463+00:00)

## What it is
GraphQL Tools is a TypeScript/JavaScript utility library for building, manipulating, mocking, and stitching GraphQL schemas using an SDL-first approach. It produces schemas fully compatible with GraphQL.js and includes utilities for resolvers, schema merging, directives, and schema delegation.

## Use cases
- build a GraphQL schema from SDL type definitions with resolvers
- mock a GraphQL API with per-type fake data for frontend development
- stitch multiple GraphQL schemas into one unified API
- merge and transform existing GraphQL schemas
- add custom scalars, enums, and schema directives
- compose middleware-like wrappers around resolvers
- load and manipulate GraphQL documents in JavaScript

## When to choose
- you want an SDL-first workflow for defining GraphQL schemas in JavaScript or TypeScript
- you need to combine or delegate across multiple GraphQL APIs (schema stitching/federation-style merging)
- you need fine-grained schema mocking for testing or frontend prototyping
- you build GraphQL tooling and need low-level schema manipulation utilities

## When to avoid
- you only need an HTTP GraphQL server - use GraphQL Yoga, Apollo Server, or similar instead
- you want a code-first schema builder without SDL strings
- you need a full API gateway rather than schema utilities
- you work outside the JavaScript/TypeScript ecosystem

## Facets
- artifact type: library
- maturity: active
- function: graphql, mocking, middleware, developer-tools
- domain: web-development, backend, apis, developer-tools, testing
- platform: cross-platform
- tags: schema-stitching, sdl-first, executable-schema, schema-merging, graphql-schema, resolvers, schema-mocking, nodejs, typescript, javascript

## Member repositories
- ardatan/graphql-tools (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:18.061463+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-29T17:56:53.776480+00:00, confidence not recorded.
  - readme: https://github.com/ardatan/graphql-tools (fetched 2026-08-28T04:09:18.061463+00:00, sha b5404f85e963)
  - homepage: https://www.graphql-tools.com (fetched 2026-08-29T08:52:28.789270+00:00, sha 220f32abe171)
  - site_page: https://the-guild.dev/graphql/tools/docs/introduction (fetched 2026-08-29T08:52:28.805609+00:00, sha cd178a6a14ce)
  - site_page: https://the-guild.dev/graphql/tools/docs/generate-schema (fetched 2026-08-29T08:52:28.807451+00:00, sha 1fca11c0801f)
  - site_page: https://the-guild.dev/graphql/tools/docs/resolvers (fetched 2026-08-29T08:52:28.809346+00:00, sha f15bf5bcad0f)
  - site_page: https://the-guild.dev/graphql/tools/docs (fetched 2026-08-29T08:52:28.801833+00:00, sha aea188aec6b2)
  - site_page: https://the-guild.dev/about-us (fetched 2026-08-29T08:52:28.803748+00:00, sha 4c4f11519fb9)
  - site_page: https://the-guild.dev/graphql/tools/docs/resolvers-composition (fetched 2026-08-29T08:52:28.811152+00:00, sha a451f29adaa6)
  - site_page: https://the-guild.dev/graphql/tools/docs/scalars (fetched 2026-08-29T08:52:28.812900+00:00, sha f9c806a7ec03)
  - site_page: https://the-guild.dev/graphql/tools/changelogs (fetched 2026-08-29T08:52:28.799536+00:00, sha ebecc86eb9a8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
