Hey all, I’ve recently created a little library called observable-press that provides some simple infrastructure and an opinionated pattern for publishing Observable notebooks on other sites. The basic idea is to do all your coding in your notebook, write an HTML skeleton for the content to live in, and let observable-press glue them together. If this doesn’t immediately make sense, the examples in the repo might clarify; here’s a simple demo.
I also used the library to power a simple website [edit: site removed for licensing issues], which takes a notebook and attempts to render a single cell as large as possible.
I originally made this to power a side project that didn’t really go anywhere, but I was surprised how fun it was to build a tiny web app with this technique. I’d love to hear any feedback anyone has.
Sidenote: I do not intend to overstep in any way with the naming of these things, I just wasn’t sure what to call them. If anyone working at Observable objects to these names being too close, I’d be happy to change them, and also happy to hand over the
.press domain if you want it for some other purpose – it was $2 so I figured why not.