Frontity is joining Automattic! Read the full announcement post for more details 📣
A server side, dynamic framework for headless WordPress sites and blogs
WordPress is used as a headless CMS – just for creating and managing your content
The WordPress REST-API allows you to retrieve your content and generate the final HTML
Frontity apps built with React serve your content and run separately on a Node.js server
Frontity connects seamlessly with WordPress so you can focus on building your website or blog.
No complex configuration is left to the developer and the number of concepts you need to learn are minimal.
Use your WordPress dashboard to create and edit your content just as you usually do.
Provide an instant experience with dynamic content using Serverless Pre-rendering (SPR).
Frontity combines the best of both worlds with a great developer experience in mind
See what people are building with Frontity
Firstly, Frontity is 100% focused on WordPress. This means the number of concepts you need to learn are minimal. It doesn’t require complex configuration to get started, and the APIs that developers use to request content are pre-configured for the things that they most frequently need.
Secondly, Frontity is opinionated. It has its own state manager and CSS-in-JS solution. Thanks to that you don’t have to figure out how to configure these tools, or learn other technologies such as Redux or GraphQL.
Frontity powers a very flexible extensibility pattern, more similar to that of WordPress itself, rather than that of other JavaScript frameworks. In order to add new functionality, you can use any of the existing Frontity and npm packages without having to build them from scratch. Moreover, Frontity themes and extensions can be activated and deactivated without code changes and are reusable across projects.
Lastly, in Frontity the HTML is rendered dynamically by a Node.js server or a serverless service. This means the HTML does not have to be rebuilt each time the content is edited or new content is published.
Learn more about the differences from other React frameworks in the docs.
Yes, it is! Frontity does both server-side and client-side rendering.
This approach works great with dynamic content and SEO. And if you use a CDN, it is as fast as serving static files. It has all the content in the HTML so Google is happy and, once JavaScript takes control of the page, the experience feels like a native app.
Check out this guide for more information on how to optimize the SEO of your Frontity project.
Frontity is compatible with all the plugins that are compatible with the REST-API. Many of them just add their output to the content, and that would work by default.
For plugins that are not compatible with the REST-API you have two options. You can adapt the logic in your Frontity project, or you can use PHP to extend the uncooperative plugin either in your WordPress theme’s functions.php file or in a custom plugin.
Of course! You just have to add a few settings in your Frontity project and it will work. You can check out the docs and this video for a more detailed explanation.
The Frontity Community Forum is the best place to ask questions, share your knowledge, and build new connections.
Building a React front-end for your WordPress website has never been easier.
We’ve compiled several learning resources to guide you through how to get started with Frontity.