- Notifications
You must be signed in to change notification settings - Fork151
Faust.js™ - The Headless WordPress Toolkit
License
wpengine/faustjs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
- Node.js v16.0.0 or newer (v16.8.0 when using Next.js 13 and v18.17 when using Next.js 14).
- MacOS, Windows (including WSL), and Linux are supported.
Visithttps://faustjs.org/docs/ to view the full documentation.
Docs are MD indocs
. Here are a couple things you should know!
Our Docs supportGithub Flavored Markdown (GFM).
Images should be stored along side the doc that uses them in an
images/
folder.Shared Images can be stored in a shared folder @
docs/images
Callouts: These are similar to block quotes or an aside but for various warnings, info, pro times, etc.
Code Blocks:
Required
- Specify a language:
```js
or`const inlineCode = [1,2,3];{:js}`
- Commands for a users terminal =
bash
- env files =
ini
- JavaScript =
js
- TypeScript =
ts
- GraphQL =
gql
- JSON =
json
- For a full list see:https://shiki.style/languages
- Commands for a users terminal =
- Addline numbers to any complex code.
ini
andbash
don't need to show line numbers generally.```js showLineNumbers
- Complete files should have afile names
```js title="pages/_app.js
- Specify a language:
Optional
Lines can behighlighted in code blocks
```js {1,3-5}
. There are a variety of advanced highlighting methods, see:https://rehype-pretty.pages.dev/#highlight-linesLines may bediffed 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 theWordPress 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 theWP Engine Developers Discord.
Additionally, if you have questions or ideas, please share them onGitHub Discussions.
There are many ways tocontribute to this project.
- Discuss open issues to help define the future of the project.
- Submit bugs and help us verify fixes as they are checked in.
- Review and discuss thesource code changes.
- Contribute bug fixes
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.
- Submit your name and email
- 📝 Sign the CLA emailed to you
- 📥 Receive copy of signed CLA
❤️ Thank you for helping us fulfill our legal obligations in order to continue empowering builders through headless WordPress.
About
Faust.js™ - The Headless WordPress Toolkit
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.