Javascript implementation

+2 votes
asked Jan 17, 2017 in Wanted features by anonymous

Are there any plans to write a javascript implementation of PlantUML in javascript?

I'm looking for a way to generate diagrams on the client side for use in markdown pages, without requireing a server-side tool. Like https://knsv.github.io/mermaid/, but it has currently only a few diagram types available.

Thanks.

1 Answer

0 votes
answered Jan 18, 2017 by plantuml (297,300 points)

Hello,

There are no such plan (yet?).

But we are wondering if we could use http://www.jsweet.org/ to have a full javascript implementation.

Looks like some huge task, but who knows ?

commented Jan 10, 2020 by Marc-vA (240 points)

Looking at the source code of PlantUML ... this will probably be a very big task!

Maybe this should start with separating the 'API' / definition of the PlantUML language from the implementation? (I couldn't find it yet) This might help moving towards the goal of a standardized textual UML language or more interopebility as mentioned here.

I wonder if separating the language itself, generation of images and all other features (like file watching, runtime, online and offline support, etc) is possible?

And is rebuilding the essentials for validating the language and generating an image in JavaScript similar in size as moving forward with the current code base and trying to remove the Graphiz dependency? JavaScript might be the better choice (today) than Java to generate images? (as JS has more visual application than Java, which is more backend and transformation applied)

...