https://mermaid-js.github.io/mermaid/#/
Regarding mermaidjs, I draw attention to the fact that GitLab's markdown language supports it, which is incredibly handy in MR descriptions or wiki pages: https://docs.gitlab.com/ee/user/markdown.html#mermaid
Or for a graphical online UML editor (https://modeling-languages.com/web-based-modeling-tools-uml-...)?
If the former, then plantUML is my favourite. If the latter, there quite a few options but one that's easy and fast is http://www.umletino.com/
Mermaid is in the comments, not the main list, but I have been using it for a while now for our specs; it can be rendered to whatever image, but also on the client side which is great for embedding in 'living documents'.
it can be browser-based but there are many integrations, for example it's trivial to have it rendered as image in markdown files
https://github.com/plantuml-stdlib/C4-PlantUML
https://mermaid-js.github.io/mermaid/#/