wp-graphql / wp-graphql
GraphQL API for WordPress
Installs: 379 852
Dependents: 16
Suggesters: 5
Security: 2
Stars: 3 772
Watchers: 62
Forks: 469
Open Issues: 126
Type:wordpress-plugin
pkg:composer/wp-graphql/wp-graphql
Requires
- php: ^7.4 || ^8.0
- appsero/client: 2.0.5
- ivome/graphql-relay-php: 0.7.0
- webonyx/graphql-php: 15.29.3
Requires (Dev)
- automattic/vipwpcs: ^3.0
- codeception/module-rest: ^2.0
- composer/semver: ^3.0
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- lucatume/wp-browser: ^3.7.0
- phpcompatibility/phpcompatibility-wp: ^3.0.0-alpha
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ~2.1.2
- phpstan/phpstan-deprecation-rules: ^2.0.1
- phpunit/phpunit: ^9.5
- slevomat/coding-standard: ^8.9
- szepeviktor/phpstan-wordpress: ^2.0.1
- wp-cli/wp-cli-bundle: ^2.12
- wp-graphql/wp-graphql-testcase: ^3.0
- v2.6.0
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- v2.3.8
- v2.3.6
- v2.3.3
- v2.3.0
- v2.2.0
- v2.1.1
- v2.1.0
- v2.0.0
- v2.0.0-beta.2
- v2.0.0-beta.1
- v1.32.1
- v1.32.0
- v1.31.1
- v1.31.0
- v1.30.0
- v1.29.3
- v1.29.2
- v1.29.1
- v1.29.0
- v1.28.1
- v1.28.0
- 1.27.2
- v1.27.1
- v1.27.0
- v1.26.0
- v1.25.0
- v1.24.0
- v1.23.0
- v1.22.1
- v1.22.0
- v1.21.0
- v1.20.0
- v1.19.0
- v1.18.2
- v1.18.1
- v1.18.0
- v1.17.0
- v1.16.0
- v1.15.0
- v1.14.10
- v1.14.9
- v1.14.8
- v1.14.7
- v1.14.6
- v1.14.5
- v1.14.4
- v1.14.3
- v1.14.2
- v1.14.0
- v1.13.10
- v1.13.9
- v1.13.8
- v1.13.7
- v1.13.6
- v1.13.5
- v1.13.4
- v1.13.3
- v1.13.2
- v1.13.1
- v1.13.0
- v1.12.3
- v1.12.2
- v1.12.1
- v1.12.0
- v1.11.3
- v1.11.2
- v1.11.1
- v1.11.0
- v1.10.0
- v1.9.1
- v1.9.0
- v1.8.7
- v1.8.6
- v1.8.5
- v1.8.4
- v1.8.3
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.12
- v1.6.11
- v1.6.10
- v1.6.9
- v1.6.8
- v1.6.7
- v1.6.6
- v1.6.5
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.9
- v1.5.8
- v1.5.7
- v1.5.6
- v1.5.5
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.7
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.10
- v1.3.9
- v1.3.8
- v1.3.7
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- 1.2.2
- v1.2.1
- v1.2.0
- v1.1.8.0
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0
- v0.15.6
- v0.15.5
- v0.15.4
- v0.15.3
- v0.15.2
- v0.15.1
- v0.15.0
- v0.14.0
- v0.13.3
- v0.13.2
- v0.13.1
- v0.13.0
- v0.12.3
- v0.12.2
- v0.12.1
- v0.12.0
- v0.11.0
- v0.10.3
- v0.10.2
- v0.10.1
- v0.10.0
- v0.9.1
- v0.9.0
- v0.8.4
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.1
- v0.7.0
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.1
- v0.5.0
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.8
- v0.3.7
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.01
- v0.3.0
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.34
- v0.0.33
- v0.0.32
- 0.0.31
- 0.0.30
- 0.0.29
- 0.0.28
- 0.0.27
- 0.0.26
- 0.0.25
- 0.0.24
- 0.0.23
- 0.0.22
- 0.0.21
- 0.0.20
- v0.0.19
- v0.0.18
- v0.0.17
- v0.0.16
- v0.0.15
- v0.0.14
- v0.0.13
- v0.0.12
- v0.0.11
- v0.0.10
- v0.0.9
- v0.0.8
- v0.0.7
- v0.0.6
- 0.0.5
- 0.0.3
- 0.0.2
- dev-develop
- dev-master
- dev-devops/wp-graphql-testcase-update
- dev-feat/1757
- dev-v2.0/develop
This package is auto-updated.
Last update: 2026-02-11 18:54:16 UTC
README
WPGraphQL Monorepo
Unlock the power of WordPress data with GraphQL
WPGraphQL provides an extendable GraphQL API for any WordPress site, unlocking modern development workflows.
Whether you're a WordPress developer exploring GraphQL or a GraphQL expert diving into WordPress, WPGraphQL simplifies data interaction and empowers your development workflow.
📁 Repository Structure
This is a monorepo containing the WPGraphQL ecosystem of plugins and websites:
wp-graphql/
├── plugins/
│ ├── wp-graphql/ # WPGraphQL core plugin
│ ├── wp-graphql-ide/ # IDE extension plugin
│ └── wp-graphql-smart-cache/ # Smart Cache extension plugin
├── websites/
│ └── wpgraphql.com/ # WPGraphQL.com Next.js website
├── .wp-env.json # Shared WordPress environment config
├── package.json # Root workspace configuration
└── turbo.json # Turborepo build orchestration
For end users: Nothing changes! Install WPGraphQL from WordPress.org, Composer, or download the release zip.
For contributors: Clone the repo and run:
npm install # Install dependencies (uses workspaces) npm run wp-env start # Start WordPress environment with all plugins
📚 See the Development Guide for detailed setup instructions.
🎯 Vision
WPGraphQL aims to be the canonical GraphQL API for WordPress, providing:
- A complete, flexible GraphQL schema for accessing WordPress data
- Standards-based implementation following GraphQL and WordPress best practices
- An extensible foundation for plugins to build upon
- Production-ready performance suitable for high-traffic sites
- Long-term stability with semantic versioning and backward compatibility
What Belongs in WPGraphQL Core?
In scope:
- GraphQL schema for WordPress core features (posts, pages, users, taxonomies, etc.)
- Performance optimizations that benefit all users
- Developer APIs for extending the schema
- Standards and patterns for the WPGraphQL ecosystem
Candidates for core (via Experiments):
- Proposed features that need real-world validation before committing
- Breaking changes that require community feedback
- Performance improvements that need testing at scale
- Learn more about Experiments →
Better as extensions:
- Plugin-specific integrations (ACF, Yoast, WooCommerce, etc.)
- Opinionated workflows or conventions
- Features specific to particular frameworks or use cases
The difference: Experiments are potential core features being validated. Extensions are intentionally separate functionality that should remain as plugins. Experiments may graduate to core or be removed; extensions live independently forever.
This focus keeps WPGraphQL maintainable while enabling a rich ecosystem of extensions.
🚀 Get Started
- 📦 Install WPGraphQL:
wp plugin install wp-graphql --activate - 👩💻 Try it out: Live Demo
- 📖 Read the Quick Start Guide.
- 💬 Join the Community on Discord
- ⭐ Star the Repo on GitHub 😉
🌟 Key Features
- Flexible API: Access posts, pages, custom post types, taxonomies, users, and more.
- Extendable Schema: Easily add functionality with functions like
register_graphql_fieldandregister_graphql_connection.- Plugins like WPGraphQL Smart Cache, WPGraphQL for ACF and other extension plugins demonstrate the power of extendability.
- Modern Framework Integration: Works seamlessly with Next.js, Svelte, Astro and other frameworks.
- Optimized Performance: Query only the data you need. Collect multiple resources in one request, reducing round-trips. Use WPGraphQL Smart Cache for enhanced performance and network-level caching and cache-invalidation.
- Developer Tools: Explore the schema with tools like the GraphiQL IDE and WordPress Playground.
📖 Documentation
For Users:
For Contributors:
- Development Setup - Local environment setup
- Contributing Guide - How to contribute
- Testing Guide - Running tests
- Architecture - Codebase overview
🤝 Community Support
WPGraphQL is powered by a passionate community of contributors, backers, and sponsors.
Want to help maintain and grow WPGraphQL?
- Support the project on Open Collective
- Join the Community on Discord
- Contribute to the project on GitHub
🙌 Shout Outs
We extend our gratitude to the following projects and organizations for their contributions to the WordPress and GraphQL ecosystems:
- Webonyx: For the amazing
graphql-phplibrary that powers WPGraphQL's core functionality. - Ivome: For the
graphql-relay-phplibrary used in relay connections. - Automattic: For supporting WPGraphQL's ongoing development as a canonical WordPress plugin.
- Gatsby: For their contributions to the WPGraphQL ecosystem and support for headless WordPress development.
- WPEngine: For funding early development of WPGraphQL and supporting its growth.
- Facebook: For open-sourcing the GraphQL spec, GraphiQL, and maintaining the JavaScript reference implementation.
- Apollo: For pushing GraphQL forward and inspiring schema design best practices.
- The WordPress REST API Contributors: For paving the way with the WP-API project, inspiring WPGraphQL's architecture.
Thank you to all these organizations and individuals for their efforts in shaping the tools we rely on today.
🔌 Canonical Plugin
WPGraphQL is becoming a Canonical Plugin on WordPress.org, ensuring long-term support and a growing community of users and contributors.
🛠 Privacy & Telemetry
WPGraphQL uses the Appsero SDK to collect telemetry data only after user consent, helping us improve the plugin responsibly.

