Graphile Crystal is a monorepo that houses multiple GraphQL-related packages, with Grafast and PostGraphile as its headline projects.
Grafast addresses the challenge of executing GraphQL queries efficiently by providing a planning and execution engine that replaces the standard execute method from GraphQL.js. Rather than relying on traditional resolver functions, Grafast uses "plan resolvers" that leverage the declarative structure of GraphQL requests to optimize how business logic executes. This approach reduces server load by allowing the engine to understand the full shape of a request before execution begins, enabling batching, caching, and other optimizations automatically.
PostGraphile solves the problem of building a GraphQL API from scratch by automatically generating one from a PostgreSQL database schema. It treats the database as the source of truth and creates a well-structured, high-performance API with minimal configuration. The tool emphasizes automatic best-practices and remains customizable for cases where you need to diverge from the generated schema. PostGraphile suits teams with existing PostgreSQL databases who want instant GraphQL access without building resolvers manually, and it can serve as a starting point for APIs you later manage independently. The monorepo also contains supporting packages like pg-introspection and pg-sql2 that can be used independently of the main projects.
Development on the project shows consistent engagement with regular commits across multiple areas of the codebase. The maintainers actively respond to issues and pull requests, indicating ongoing attention to user concerns. Work spans both the core execution engine and the PostgreSQL integration layer, suggesting balanced investment in the two headline projects. Documentation and examples receive updates alongside code changes, reflecting a commitment to keeping guidance current with implementation.