graphql-formatter

JSON →
library 1.0.3 ·javascript
verified Jun 4, 2026

A lightweight GraphQL code formatter that preserves structural indentation and layout. Current stable version is 1.0.3, with infrequent releases. It focuses on simple, predictable formatting of GraphQL schema definitions, queries, and fragments without heavy configuration or AST manipulation. Ships TypeScript type definitions. Differentiates from alternatives like prettier by being minimal, dependency-free, and respecting existing structural patterns.