graphql-query-compress

JSON →
library 1.2.4 ·javascript maintenance
verified Jun 7, 2026

A lightweight utility (v1.2.4, last updated in 2019, no active release cadence) that compresses GraphQL query strings by removing unnecessary whitespace and comments. Key differentiator: minimal dependency, focuses solely on string compression without parsing the GraphQL AST, making it fast and suitable for reducing payload size over network. Ships built-in TypeScript declarations. Not to be confused with graphql-compress or graphql-query-complexity.