Server side rendering + LiveView

I am interested in handing off some heavy Javascript code to a Deno port, rendering the HTML, then passing that to LiveView to handle the diffing with the client. Does a Plug for this already exist? Is this even possible?

Liveview does not diff HTML; it maintains its own data structure, diff the data structure, then convert the diff to something like a HTML diff.

Makes sense. So the correct order of events would be to render a .heex template with all the correct variables substituted, pass that resulting HTML to Deno/Node, and then use the output of Deno/Node as a variable through the assign for a LiveView socket?