qmetrics.net

Graffle

Extensible type-safe GraphQL client for JavaScript

Graffle screenshot

Graffle is a minimal GraphQL client for JavaScript with HTTP and in-memory transports, extensions, and inferred TypeScript types.

Overview

Graffle is a GraphQL client for JavaScript environments that emphasizes small core APIs, optional typing features, and composable extensions. It succeeds the older graphql-request project under a new name while aiming to run across common JS runtimes.

You configure a client instance with a transport URL or execute documents against in-memory schemas through the same interface. Queries can be written as standard GraphQL strings with inferred result types, or through an optional document builder that exposes root fields as typed methods.

Extensions add cross-cutting behavior such as OpenTelemetry tracing, schema-aware error handling, file upload support, and custom scalar codecs that encode arguments and decode responses automatically. Output modes let callers choose whether errors throw, return as values, or arrive in an envelope structure.

The client aligns with GraphQL over HTTP and multipart request specifications. Documentation positions it for teams that want progressive type safety and middleware-style customization rather than deep framework-specific clients for React or similar UI stacks.

Key features

  • HTTP and in-memory transports
  • GraphQL string type inference
  • Optional document builder API
  • Type-safe extension hooks
  • Custom scalar codecs
  • Configurable error output modes

Use cases

  • Calling GraphQL APIs from Node or browsers
  • Typed queries without code generation
  • Adding telemetry to GraphQL requests

Tags

Similar software

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

OkHttp

HTTP client for JVM, Android, and GraalVM

OkHttp is an HTTP client library tuned for efficient networking on Android, Java, and GraalVM native images. It offers synchronous and asynchronous call APIs with a fluent request builder.

★ 47.1k⟳ yesterdayApache-2.0
Frameworks & PlatformsDesktop/CLI app

gRPC

Cross-language remote procedure call framework

gRPC is an RPC framework that lets client and server programs communicate transparently and supports building connected, multi-language systems.

★ 45.5k⟳ todayApache-2.0

tRPC

End-to-end typesafe TypeScript APIs without code generation

tRPC helps teams define server procedures and call them from clients with full TypeScript types for inputs, outputs, and errors—no schemas or codegen step.

★ 40.9k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

go-zero

Cloud-native Go microservices and RPC framework

go-zero is a Go web and RPC framework with code generation, built-in resilience middleware, and tooling aimed at stable high-traffic services.

★ 33.5k⟳ 9 days agoMIT