packages/lit-dev-content/site/docs/v3/ssr/overview.md
{% labs-disclaimer %}
Server-side rendering (SSR) is a technique for generating and serving the HTML of your components, including shadow DOM and styles, before their JavaScript implementations have loaded and executed.
You can use SSR for a variety of reasons:
For a deeper dive into server-side rendering concepts and techniques generally, see Rendering on the Web on web.dev.
Lit supports server-side rendering through the Lit SSR package. Lit SSR renders Lit components and templates to static HTML markup in non-browser JavaScript environments like Node. It works without fully emulating the browser's DOM, and takes advantage of Lit's declarative template format to enable fast performance, achieve low time-to-first-byte, and support streaming.
Lit SSR is a low-level library that you can use directly in your Node-based server or site generator. Check out an example of Lit SSR used in a Koa server.
A number of integrations have also been published which make Lit SSR work out-of-the-box:
This library is under active development with some notable limitations we hope to resolve:
ElementRendererRegistry for interop with other custom elements.