tiny-graphql-query-compiler

JSON →
library 0.2.3 ·javascript
verified May 1, 2026

A JavaScript DSL for constructing GraphQL queries programmatically. v0.2.3 (pre-1.0, experimental). Converts a plain object representation into a valid GraphQL query string with support for arguments, variables, and fragment composition. Key differentiators: extremely lightweight (~1KB), no runtime GraphQL parser, TypeScript-first with full type inference for fields and arguments, and includes compileWithVariableValues for extracting both query and variable bindings. Ideal for codebases that need to dynamically generate queries without the overhead of graphql-tag or Apollo.

total hits 10
actors 2 distinct systems
last hit 4d ago AhrefsBot
GPTBot
5
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · PT · 🇬🇧 United Kingdom