crystal

🔮 Graphile's Crystal Monorepo; home to Grafast, PostGraphile, pg-introspection, pg-sql2 and much more!

RepoPi no longer tracks this repository daily. Stats below were last updated on 2026-09-07. See current data on GitHub.

12.9k
Stars
TypeScript
Language

💡 Why It Matters

This monorepo consolidates Graphile's core GraphQL-related packages, including PostGraphile and Grafast, addressing the challenge of efficiently building GraphQL APIs backed by PostgreSQL. Unlike typical GraphQL server libraries that require manual resolver implementation, PostGraphile auto-generates a high-performance, extensible GraphQL API directly from a PostgreSQL schema, reducing boilerplate and enforcing best practices. Grafast offers a novel planning and execution engine that replaces GraphQL.js's execute method with a declarative, plan-based approach, improving request efficiency and server load. The project is mature with over 12,000 stars and recent commits, but it lacks notable growth momentum, suggesting a stable but niche user base. Teams without PostgreSQL or those needing a more general-purpose GraphQL server should consider alternatives like Apollo Server or Hasura, as this monorepo is heavily PostgreSQL-centric and may be overly complex for simpler schemas.

🎯 When to Use

Choose this if your backend is primarily PostgreSQL and you want an auto-generated, extensible GraphQL API with advanced query planning. If you need a more database-agnostic GraphQL server or simpler setup, alternatives like Apollo Server or Prisma might be better suited.

👥 Team Fit & Use Cases

Commonly adopted for internal tools or customer-facing APIs where PostgreSQL is the source of truth and rapid GraphQL API generation is required. Typical use cases include data-driven dashboards, content management systems, or complex relational data interfaces that benefit from automatic schema generation and efficient query execution.

🏷️ Topics & Ecosystem

api automatic-api express graphile graphql graphql-api graphql-js http instant koa koa2 node nodejs pg pgsql postgraphql postgres postgresql schema typescript

📊 Activity

Latest commit: 2026-09-04. Activity data is based on daily RepoPi snapshots of the GitHub repository.