Is the Typst web preview available as a standalone JS library?

Is the Typst web preview available as a standalone JS library? I’m loving Typst and would like to make some interactive tutorials on it. I basically want to re-create the Typst Playground but manage CodeMirror myself, so I just need the preview code. I found https://www.npmjs.com/package/typst but that doesn’t work in the browser + hasn’t been updated in 3 years.

According to Typst: Open Source, the web app is closed-source.

Alternatively, you can use the community project typst.ts.

If that tutorial is about typst itself, then there have already been some similar projects. Check :books: Documentation | Best of Typst (TCDM). To name a few:

However, none of them is mature at present.