jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
41.15k stars 7.64k forks source link

Custom shape libraries: Searchable, Import on demand via REST API #3466

Open duerrsimon opened 1 year ago

duerrsimon commented 1 year ago

Is your feature request related to a problem? Please describe. I develop Bioicons, A database of illustrations for scientists and made it available for drawio via the custom shape library function. Due to the way how shapes are currently imported I had to build a small app to select the imported sub shape libraries since the XML files get too big. You guys also wrote a blog post on this so you also seem to like it: https://www.diagrams.net/blog/biochem-clipart-in-diagrams

The issue is now that the database is getting too big and even single category XML files exceed 50 MB and can therefore no longer be easily hosted e.g on GitHub without LFS. When users selected multiple libraries it sometimes also takes a minute or so to load drawio since the illustrations are often quite detailed and are about 150 to 300 kb per illustration.

Describe the solution you'd like Custom libraries should be searchable via REST Endpoint that provides categories, preview images and the actual SVG to import. In the ideal case also the license should be imported and an attribution field generated.

Other SVG collections could be added such as https://www.svgrepo.com/ Wikimedia Commons

stale[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

davidjgraph commented 7 months ago

It's a good idea, but we lack the resources to implement such a thing.

In terms of the XML size, what about getting a free cloudflare account and using that as a CDN in front of github?