echosvg
planter
echosvg | planter | |
---|---|---|
7 | 4 | |
35 | 533 | |
- | - | |
8.4 | 4.3 | |
9 days ago | about 1 month ago | |
Java | Go | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
echosvg
-
Documentation as Code for Cloud Using PlantUML
My cross-platform desktop text editor, KeenWrite, allows users to define variables in an external YAML file. The editor calls out to Kroki[1] to convert text-based diagrams to SVG. The diagrams can reference variables and are rendered using EchoSVG[2].
KeenWrite[3] can produce PDF documentation from Markdown documents that has PlantUML diagrams with elements stored in an external, machine-readable file. Here are screenshots showing variables on the left, diagram text in the middle, and a real-time render on the right:
* https://raw.githubusercontent.com/DaveJarvis/KeenWrite/main/...
* https://raw.githubusercontent.com/DaveJarvis/KeenWrite/main/...
KeenWrite supports all diagrams offered by Kroki, which includes "diagram-plantuml".
[1]: https://kroki.io/
[2]: https://github.com/css4j/echosvg/
[3]: https://github.com/DaveJarvis/keenwrite
-
EchoSVG: SVG rasterizer library supporting level 4 selectors (Apache 2)
There's a discussion item about the reason for the fork.
- Inkscape 1.2.2 Released
-
EchoSVG: Pure Java SVG renderer with level 4 CSS selectors
EchoSVG is a library for handling Scalable Vector Graphics (SVG) images for various purposes, such as viewing, generation, or manipulation. By leveraging CSS4J, the library supports level 4 CSS selectors and RGBA color values (colors with alpha channel). To my knowledge, there are no other cross-platform, FOSS libraries that can correctly render MermaidJS diagrams outside of a web browser. I've tried Apache Batik, svgSalamander, resvg, rsvg-convert, svglib, CairoSVG, ConTeXt, and QtSVG.
- EchoSVG: Pure Java SVG renderer supporting level 4 CSS selectors
- Pure Java SVG Implementation
planter
-
Documentation as Code for Cloud Using PlantUML
Here's three interesting Rust projects that use plantuml
You can embed plantuml and drawio diagrams in Rust doc comments and have it rendered in the docs, using this crate
https://crates.io/crates/rsdoc
And you can generate plantuml from SQL tables using
https://crates.io/crates/sqlant (this one is a rust port of a go tool, https://github.com/achiku/planter)
And you can embed plantuml in mdbook
https://crates.io/crates/mdbook-plantuml
-
TIL: about Entity Relationship Schemas
You also have PlantUML. There exists an SQL generator for MySQL - not tested - and this utility for generating PlantUML ERD from PostgreSQL tables. This tool is more focussed on communication and allows you to draw large diagrams. However, you loose the sync between the diagram and the code base. You have the official PlantUML on-line drawer.
- Planter: Auto-generate Plant UML diagrams from Postgres tables
-
Plant UML – open-source UML Tool
I use Plant UML in combination with planter [1] to auto-generate a DB schema during CI runs.
Recently I see a lot general statements on HN like "UML is dead" which I think is not the case. Especially in complex, data-heavy projects it's a great way to visualize how things work -- if kept up-to-date and precise.
[1] https://github.com/achiku/planter
What are some alternatives?
css4j - CSS parser with Event and Object Model APIs, a DOM wrapper and a CSS-aware DOM implementation. Written in the Java™ language.
plantuml - Generate diagrams from textual description
mdbook-plantuml - mdBook preprocessor to render PlantUML diagrams to png images in the book output directory
pgadmin4 - pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.
KeenWrite - Free, open-source, cross-platform desktop Markdown text editor with live preview, string interpolation, and math.
Wiki.js - Wiki.js | A modern and powerful wiki app built on Node.js
aws-icons-for-plantuml - PlantUML sprites, macros, and other includes for Amazon Web Services services and resources
AndroidSVG - SVG rendering library for Android
ecto_erd - A mix task for generating Entity Relationship Diagram from Ecto schemas available in your project.
roam - Roam notes