Spin up a headless WordPress site where editors manage content in wp-admin and the public-facing pages are rendered by a React app.
Evaluate the REST API vs GraphQL approach to WordPress data fetching by running both included example frontends side by side.
Migrate content from an existing WordPress site into this headless setup using the included content-import tooling.
Requires Docker and Docker Compose, one command brings up four containers including WordPress, MySQL, and two React frontends.
Headless WordPress Starter is a toolkit created by Postlight that combines WordPress as a content backend with React as the front-end display layer. The idea is to let editors manage content in the familiar WordPress admin interface while the public-facing website is built with modern JavaScript tools instead of traditional WordPress themes. The term "headless" means WordPress is used only for storing and managing content, while its usual visual output is replaced by a completely separate React application. The two are connected via APIs: WordPress exposes its data through its built-in REST API and through GraphQL (a different style of data query language). The starter kit includes both options so a developer can choose which approach fits their project. Setting it up requires Docker, a tool that packages software into isolated containers so it runs the same way on any machine. Running one command brings up four containers: the WordPress backend, a MySQL database, and two sample React frontends (one for each API style). The WordPress admin interface is then available at a local address, and both frontend examples are available at separate local ports for comparison. The starter kit bundles several WordPress plugins pre-configured: Advanced Custom Fields and Custom Post Type UI for adding structured data beyond standard posts, and JWT authentication plugins so users can log in through the React frontend rather than the WordPress login page. It also includes tooling for importing content from an existing WordPress site. Developers can extend both the REST and GraphQL APIs from within the included WordPress theme, or build out the React frontends however they choose. The README includes linting setup instructions for both the PHP backend code and the JavaScript frontend code. This project is a starting point, not a finished product. It is intended for developers building content-driven websites who want WordPress for content management but prefer to write the front end in React.
← postlight on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.