Comment by JimDabell

12 hours ago

Why wouldn’t you just use Mermaid to generate the PNG directly?

One reason I could think of: Fewer dependencies that need integration

  • By introducing a dependency on a third-party service with no SLA? This seems to make the dependency situation worse.

    • Ah haha. I love this conversation of trying to find a product market fit in public.

      What if the input to the JavaScript (mermaid in this case) is not trusted to run on the end client machines but by running untrusted input on a sandbox (this service, or self hosted idk) is somehow acceptable and the output a blob of an image is acceptable to display on the actual client machines.

      Takes the planets to align just right and need us to squint just enough but I think we can find something if we look hard enough.

      But then mermaid can simply output PNG so you could run it as a worker... Thinking...