hydris
Generic node service to handle SSR for SPA made with any kind of frontend framework. It uses puppeteer under the hood and it requires Chrome to be installed on your client.
Usage
As node service
; { const html = await ; console; // +41 43 322 06 44 (node innerHTML included javascript generated markup)};
As Proxy Server
You can use hydris as a proxy server to render your javascript contents as string
;;; if clusterisMaster for let i = 0; i < length; i++ cluster; else // server running on 0.0.0.0:3000 serverstart port: 3000 launchOptions: // options that will be passed to puppeteer.launch defaultViewport: width: 1024 height: 768 ; // 0.0.0.0:3000?url=https://dreipol.ch&node=.main-footer--contacts>.main-footer--link// +41 43 322 06 44
Via CLI
You can use hydris also via cli
npm i hydris -ghydris --url https://www.dreipol.ch --node ".main-footer--contacts>.main-footer--link"+41 43 322 06 44