# shurcooL/githubv4

Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql).

Repository: https://github.com/shurcooL/githubv4
Canonical: https://ross.abutalabs.com/products/githubv4
Language: Go
License: MIT
License Family: permissive
Topics: go, github, graphql, client
Last push: 2026-02-09T03:33:21+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 66, release rhythm 35, longevity 100
- inputs: {"age_days": 3385, "days_push": 205, "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 1198, forks 96 (observed 2026-08-28T04:03:57.668604+00:00)

## What it is
githubv4 is a Go client library for accessing the GitHub GraphQL API v4. It lets developers define Go structs that mirror GraphQL queries and execute them against GitHub or GitHub Enterprise with an authenticated HTTP client.

## Use cases
- query the GitHub GraphQL API from Go
- fetch repository, issue, and pull request data via GraphQL
- build GitHub integrations and CLI tools in Go
- query GitHub Enterprise GraphQL endpoint
- paginate through GitHub API results with GraphQL queries

## When to choose
- you're writing Go code that needs GitHub data via the more flexible GraphQL API
- you want a typed, struct-based query builder without hand-writing GraphQL strings
- you need GitHub Enterprise support

## When to avoid
- you need the GitHub REST API v3 — use go-github instead
- you're not using Go
- you need a client that handles authentication itself rather than accepting an http.Client

## Facets
- artifact type: library
- maturity: active
- function: graphql-client, http-client, sdk
- domain: apis, developer-tools, web-development
- platform: go, cross-platform
- tags: github-api, graphql, api-client, github-graphql-v4

## Member repositories
- shurcooL/githubv4 (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:57.668604+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:21:11.611230+00:00, confidence not recorded.
  - readme: https://github.com/shurcooL/githubv4 (fetched 2026-08-28T04:03:57.668604+00:00, sha ae5b829a2e67)
- Data as of 2026-08-30T08:39:29.467469+00:00.
