# graphql/swapi-graphql

A GraphQL schema and server wrapping SWAPI.

Repository: https://github.com/graphql/swapi-graphql
Canonical: https://ross.abutalabs.com/products/swapi-graphql
Homepage: http://graphql.org/swapi-graphql/
Language: JavaScript
License: MIT
License Family: permissive
Topics: graphql, swapi, swapi-graphql
Last push: 2026-05-25T15:00:41+00:00

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

## Adoption (not part of the score)
Stars 1062, forks 267 (observed 2026-08-28T04:03:26.103195+00:00)

## What it is
A GraphQL schema and server that wraps the Star Wars API (SWAPI), exposing its data through a GraphQL endpoint. It is the official example GraphQL server from the GraphQL Foundation, hosted at graphql.org and deployable locally, on Heroku, or AWS Lambda.

## Use cases
- learn GraphQL with a real public API
- test GraphQL clients against a sample server
- explore a GraphQL schema in GraphiQL
- prototype apps needing Star Wars data
- demo GraphQL tooling and queries
- study how to wrap a REST API with GraphQL

## When to choose
- you need a well-known public GraphQL API for learning or testing
- you want a reference implementation of a GraphQL server in JavaScript
- you need Star Wars data exposed via GraphQL

## When to avoid
- you need production-grade or guaranteed-uptime API access
- you need data beyond the Star Wars universe
- you want a maintained REST client for SWAPI instead

## Facets
- artifact type: service
- maturity: maintenance
- function: graphql, http-server, api-framework
- domain: apis, web-development, developer-tools
- platform: serverless, self-hosted
- tags: swapi, star-wars, graphql-server, graphiql, dataloader, sample-api, express-graphql, nodejs, web-server

## Member repositories
- graphql/swapi-graphql (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:26.103195+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-30T06:56:44.665571+00:00, confidence not recorded.
  - readme: https://github.com/graphql/swapi-graphql (fetched 2026-08-28T04:03:26.103195+00:00, sha d695bd2a5a4f)
  - homepage: http://graphql.org/swapi-graphql/ (fetched 2026-08-29T12:58:20.211767+00:00, sha 86e49936edbe)
  - registry_npm: https://registry.npmjs.org/swapi-graphql (fetched 2026-08-29T12:58:20.220977+00:00, sha 71a345f6654c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
