qmetrics.net

Graphile Crystal

GraphQL planning engine and Postgres-backed API toolkit monorepo

Graphile Crystal screenshot

The Crystal monorepo from Graphile includes Grafast, PostGraphile, and supporting libraries. Grafast executes GraphQL plans efficiently; PostGraphile generates a GraphQL API from PostgreSQL schemas.

Overview

Crystal is Graphile’s monorepo of packages for building GraphQL APIs on Node.js, centered on Grafast and PostGraphile. Grafast is a planning and execution engine that can replace the default GraphQL.js execute path, using plan resolvers to run business logic with less redundant work per request.

PostGraphile focuses on generating a structured, high-performance GraphQL API with PostgreSQL as the primary data source, with emphasis on performance, conventions, and extension through plugins. Related packages include graphile-build for schema plugins, PostgreSQL dataplan helpers, SQL builders such as pg-sql2, pg-introspection for typed catalog access, graphile-config for shared configuration, and graphile-export to materialize dynamic schemas as importable JavaScript.

Use cases split between teams hand-authoring schemas that want Grafast’s execution model and teams that want an auto-generated API from an existing Postgres database they can still customize. PostGraphile stays aligned with upstream PostgreSQL rather than maintaining a separate database fork.

Key features

  • Grafast GraphQL plan execution
  • PostGraphile schema from Postgres
  • Plugin-based GraphQL schema building
  • Typed PostgreSQL introspection
  • SQL-safe dynamic query builder
  • Export in-memory schemas to JS
  • PostgreSQL dataplan integrations
  • Shared Graphile configuration layer

Use cases

  • Auto GraphQL API over PostgreSQL
  • High-efficiency custom GraphQL servers
  • Modular schema plugins and connections
  • Exportable production GraphQL schemas
  • Node.js apps with SQL-backed GraphQL

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