# graphql/libgraphqlparser

A GraphQL query parser in C++ with C and C++ APIs

Repository: https://github.com/graphql/libgraphqlparser
Canonical: https://ross.abutalabs.com/products/libgraphqlparser
Language: C++
License: MIT
License Family: permissive
Archived: true
Last push: 2025-10-02T15:12:54+00:00

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

## Adoption (not part of the score)
Stars 1107, forks 174 (observed 2026-08-28T04:03:36.681982+00:00)

## What it is
libgraphqlparser is a C++11 parser for the GraphQL query language, exposing both C++ and pure C APIs. It uses flex and bison to generate the parser and includes a code-generation framework for AST classes and visitors, making it a foundation for building language bindings.

## Use cases
- parse GraphQL queries in a C++ application
- build a GraphQL parser binding for another programming language
- convert GraphQL query text into a JSON AST representation
- analyze or validate GraphQL syntax in a C or C++ codebase
- implement a GraphQL server or toolchain from scratch

## When to choose
- you need a fast native GraphQL parser with C or C++ APIs
- you are writing bindings for a language that lacks its own GraphQL parser
- you want programmatic access to a GraphQL AST with visitor support

## When to avoid
- you only need GraphQL parsing in JavaScript, Python, or another high-level language with native parsers
- you want a full GraphQL execution engine rather than just parsing
- you need Windows support, which is not listed as supported

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, sdk
- domain: parsers, apis, developer-tools
- platform: cpp, c, python
- tags: graphql, ast, flex-bison, language-bindings, macos, linux

## Member repositories
- graphql/libgraphqlparser (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:36.681982+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:44:02.139158+00:00, confidence not recorded.
  - readme: https://github.com/graphql/libgraphqlparser (fetched 2026-08-28T04:03:36.681982+00:00, sha 5c80e92d819e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
