WP SSR
Server-side rendering for JavaScript apps inside WordPress templates.
by Roope Merikukka · github.com/columbiaroad/wp-ssr · website
★ 4stars
2.1kcomposer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/columbiaroad/wp-ssr/archive/refs/heads/master.zipAlso on Packagist as columbiaroad/wp-ssr:
composer require columbiaroad/wp-ssrFrom the readme
WordPress SSR
Poor man's Server Side Rendering
This application aims to solve server side rendering of JavaScript applications inside WordPress templates. It runs in two parts. First there is the WordPress plugin which creates new post type for the renders and REST API endpoints to get an array of render objects. Secondly there is Express server which when accessed fetches these render objects and launches puppeteer to render the pages. When the page is rendered and the wanted application part of that page is parsed, it will save the html back to the post through the REST API.
Disclaimer
This application doesn't provide you real time server side rendering but it's suitable for better SEO accessibility for your content. The puppeteer renders the page always as unauthenticated user and it requires that the state changes are reflected in the url.
Setup
WordPress
You can install the plugin using composer:
First you need to navigate to the plugin settings and fill in the required information. You need to provide an API key to be used for authenticating with the REST API. Then you need to give WordPress the Node application url what to ping for renders. Last you can define the i
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| 1.1.3 | Mar 31, 2021 |
| v1.1.2 | Mar 21, 2021 |
| v1.1.1 | Mar 15, 2021 |
| v1.1.0 | Mar 9, 2021 |
| v1.0.0 | Jun 17, 2020 |
| 0.1.2 | Feb 19, 2020 |
| 0.1.1 | Feb 14, 2020 |
| 0.1.0 | Feb 12, 2020 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.