anime.js is a viable option for creating animations, including animations that could be used to simulate flow diagrams or similar visual effects. However, it's important to note that anime.js is primarily an animation library and doesn't specialize in generating flow diagrams or diagrams in general like Mermaid does.
draw.io: While not a pure JavaScript library, draw.io is a powerful diagramming tool that can be integrated into web applications. It provides an embeddable iframe that allows users to create various types of diagrams, including flowcharts.
JointJS: JointJS is a more comprehensive library that can handle not only flowcharts but also other types of diagrams like ER diagrams, UML diagrams, and more.
Viz.js: This library is a JavaScript wrapper for Graphviz, which is a popular tool for generating diagrams and graphs from textual descriptions. It's more complex to use but provides a lot of flexibility.