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/
it can be browser-based but there are many integrations, for example it's trivial to have it rendered as image in markdown files