popeindustries / lit-html-server

Render lit-html templates on the server as Node.js streams
MIT License
265 stars 12 forks source link

lit-html-server and @lit-labs/ssr #137

Closed GHNewbiee closed 2 years ago

GHNewbiee commented 3 years ago

Hi, please let me know your thoughts about @lit-labs/ssr? What is the relative position of both projects? Tia

popeindustries commented 3 years ago

I had hoped to be able to retire this project once an official server renderer became available, but after some initial testing, it appears that @lit-labs/ssr is quite a lot slower (~14x) than this approach, even without the vm context isolation they are recommending (which must be even slower). Rendering performance is very important for my needs, while server rendering shadow DOM is not, so I will be working on a new version that can generate hydration metadata compatible with the upcoming lit-html@2 (if possible — it doesn't appear to have been designed with other implementations in mind).

popeindustries commented 2 years ago

Finally ready: popeindustries/lit