[Preview/Alpha] WordPress Headless Framework
Faust.js is a toolkit for building Next.js applications for headless WordPress sites. Faust.js provides tooling to reduce the pains of building a headless WordPress site (namely around data fetching, authentication, previews, and SSR/SSG) while offering a pleasant experience for both developers and publishers.
Visit https://faustjs.org/docs/ to view the full documentation.
Docs are MD in docs
. Here are a couple things you should know!
images/
folder.docs/images
Code Blocks:
```js
or `const inlineCode = [1,2,3];{:js}`
bash
ini
js
ts
gql
json
ini
and bash
don’t need to show line numbers generally. ```js showLineNumbers
```js title="pages/_app.js
Optional
```js {1,3-5}
. There are a variety of advanced highlighting methods, see: https://rehype-pretty.pages.dev/#highlight-linesLines may be diffed in a code block:
console.log('hewwo') // [!code --]
console.log('hello') // [!code ++]
console.log('goodbye')
There are two key parts to Faust.js: the NPM packages and the WordPress plugin. To take full advantage of headless, you will need to install the plugin in addition to the npm packages.
You can download and install FaustWP from the WordPress Plugin Directory, or by using the zip linked below.
To chat with other Faust.js users and the headless community as a whole, you can join the WP Engine Developers Discord.
Additionally, if you have questions or ideas, please share them on GitHub Discussions.
There are many ways to contribute to this project.
All external contributors to WP Engine products must have a signed Contributor License Agreement (CLA) in place before the contribution may be accepted into any WP Engine codebase.
❤️ Thank you for helping us fulfill our legal obligations in order to continue empowering builders through headless WordPress.