mermaid-render This package renders mermaid diagrams outside of the browser using puppeteer. It's a stripped out and improved version of mermaid-cli. The typescript types are the best documentation of the API. import { renderMermaid } from 'mermaid-render';const svg = await renderMermaid(`pie title NETFLIX "Time spent looking for movie" : 90 "Time spent watching it" : 10` );console.log(svg);