{"id":28920187,"url":"https://github.com/wp-graphql/wp-graphql-block-editor","last_synced_at":"2025-06-22T04:12:47.833Z","repository":{"id":51562048,"uuid":"362175421","full_name":"wp-graphql/wp-graphql-block-editor","owner":"wp-graphql","description":"EXPERIMENTAL plugin extending WPGraphQL to support querying (Gutenberg) Blocks as data, using Server Side Block registries to map Blocks to the GraphQL Schema. ","archived":false,"fork":false,"pushed_at":"2022-08-02T12:54:31.000Z","size":66,"stargazers_count":33,"open_issues_count":3,"forks_count":6,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-10T05:44:38.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wp-graphql.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-27T16:13:44.000Z","updated_at":"2024-10-07T14:22:24.000Z","dependencies_parsed_at":"2022-08-22T07:40:13.695Z","dependency_job_id":null,"html_url":"https://github.com/wp-graphql/wp-graphql-block-editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wp-graphql/wp-graphql-block-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-graphql%2Fwp-graphql-block-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-graphql%2Fwp-graphql-block-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-graphql%2Fwp-graphql-block-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-graphql%2Fwp-graphql-block-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-graphql","download_url":"https://codeload.github.com/wp-graphql/wp-graphql-block-editor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-graphql%2Fwp-graphql-block-editor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260917644,"owners_count":23082405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-22T04:12:46.185Z","updated_at":"2025-06-22T04:12:47.817Z","avatar_url":"https://github.com/wp-graphql.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WPGraphQL Block Editor\n\nThis is an experimental plugin to work toward compatiblity between the WordPress Gutenberg Block \nEditor and WPGraphQL, based on Server Side registration of Gutenberg Blocks.\n\nThis stems from this blog post: https://www.wpgraphql.com/2021/03/09/gutenberg-and-decoupled-applications/\n\nAnd this Github issue: https://github.com/wp-graphql/wp-graphql/issues/1764\n\n## BETA NOTICE\n\nThis plugin is an experimental beta plugin. It is not officially supported at the moment and will have breaking changes as it progresses. Use at your own risk.\n\n## Problems\n\n### Server Awareness\nGutenberg is a JavaScript application where Blocks are registered in JavaScript and the WordPress\nserver doesn't know what a block is, what attributes a block _can_ have, etc. \n\nWithout server awareness of Gutenberg blocks, APIs such as WP-CLI, the WP REST API and WPGraphQL can't\nexpose blocks in a scalable way for decoupled clients to interact with. \n\n### Query Blocks as Data\nDevelopers that are working with WordPress in a decoupled context, with WPGraphQL specifically, have\nexpressed a desire to want to query Gutenberg Blocks as data, then use the data in Component-based\narchitectures with Next, Vue, React Native, and similar. \n\nInstead of querying a block of unpredictable markup and parsing it, or querying unpredictable JSON and parsing it, \ndevelopers want to see what Blocks are available as GraphQL Types, then specify the exact fields\nthey want for their components.\n\n### Server Validation\n\nCurrently, since blocks are largely client-side only and the server doesn't know about their existence, \nthe server isn't able to validate input from the client before the data is saved. \n\nI don't think we'll be able to solve this for Gutenberg via this plugin, but we _might_ be able to solve\nit for decoupled clients interested in using GraphQL Mutations to post data back to WordPress\nand modify blocks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-graphql%2Fwp-graphql-block-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-graphql%2Fwp-graphql-block-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-graphql%2Fwp-graphql-block-editor/lists"}