RFC: Blocks #51
josephfusco
started this conversation in
RFC
Replies: 1 comment
-
@josephfusco the RFC looks great 🚀 👏 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
RFC: Next-Generation Block Support in the Headless WordPress Toolkit
Abstract
The Headless WordPress Toolkit aims to simplify how developers integrate WordPress blocks in headless environments. Current methods for handling Gutenberg blocks in decoupled architectures often require excessive customization, making projects complex and difficult to maintain. This RFC proposes an approach to querying, registering, and rendering WordPress blocks in headless applications through a GraphQL-driven data layer and framework-agnostic rendering utilities, building on wp-graphql-content-blocks as its foundation.
Motivation
WordPress blocks are powerful, but implementing them in headless applications remains challenging. Developers frequently encounter:
The Headless WordPress Toolkit can provide a more structured approach to working with WordPress blocks across JavaScript frameworks.
Research & Background
Several approaches to handling blocks in headless WordPress have emerged:
wp-graphql-content-blocks has shown promise by providing structured block content through GraphQL. By incorporating this tool into a broader toolkit, we can better serve developers building block-based headless applications.
Proposal: A Unified Block Rendering System
1. GraphQL-Enhanced Block Querying
2. CLI for Block Management
3. Framework-Agnostic Rendering
4. Configuration & Documentation
Alternatives Considered
GraphQL provides the necessary structure and flexibility for complex block data.
Adoption Strategy
Future Considerations
How You Can Help
The success of this project depends on community input. We're particularly interested in:
Closing Thoughts
This RFC proposes a path toward better block handling in headless WordPress. By focusing on GraphQL querying, automated tooling, and flexible rendering, we can improve how developers work with blocks in modern JavaScript applications.
We welcome community discussion to refine and improve this proposal.
Beta Was this translation helpful? Give feedback.
All reactions