I have developed an SVG library for P5. It’s unique feature is that it processes any SVG fragment in addition to files. The result is painted on an image with user-specified dimensions. There are numerous examples together with the library at https://editor.p5js.org/Bobcook47/sketches/Dk3Osbx3z
The code makes heavy use of pattern matching so it has some restrictions; see readme file. I would appreciate some folks to try it out and provide feedback as to whether it is useful enough to add as a library.