Maybe useful for others: I’ve struggled a bit to easily include Observable Plot graphics in my Astro website. Following the code by
@Fil in
https://github.com/withastro/astro/issues/2451 both client and server side rendering work. However, my goal was to have both at the same time for (a) static SVGs included in the HTML, and (b) interactivity with the plots (tooltips, rerendering, …). Due to the strict server-client separation in Astro this turned out to be a bit of a struggle. In the end I found a nice working solution using
https://qwik.dev (a minimalistic Javascript framework), see my short blog post
https://dominik.page/blog/observable-qwik/ for an example, and the Qwik component.