p5.js-website icon indicating copy to clipboard operation
p5.js-website copied to clipboard

Fetch extra library info from NPM

Open davepagurek opened this issue 4 months ago • 2 comments

One of the bits of info we collected from library authors was NPM info so that we could do things like automatically create a CDN script tag, fetch the license if not manually provided, and show users how actively developed the library is. This does some of that initial fetching, currently in a quick-and-dirty little list of tags:

image

@Qianqianye This additional info isn't currently in the designs because we were considering it a nice-to-have that we might not have had the ability to collect, but it looks like it's going to be feasible. Design-wise, what do you think the best approach for something like this should be? One option is to try to mimic the style of tags the designers had in some old iterations for things like examples, which we later took out from that section. Another option is to just hide this info for now and think of a more permanent placement at a later date.

davepagurek avatar Apr 07 '24 16:04 davepagurek

I generally like how ofxaddons does it with basically all data coming from GitHub and I think something like license can be a field of its own instead of being in the same place as the tags.

limzykenneth avatar Apr 09 '24 08:04 limzykenneth

Update: the designers are OK with us using the tag design from this file image

I've updated things slightly to look more in line with that, but also @stalgiag @outofambit we don't need this to hold up the rest of the site, so we're also OK just hiding this extra info for now if that makes things easier.

davepagurek avatar Apr 10 '24 00:04 davepagurek