an api for searching packages/libraries in unpkg like the cdnjsAPI?

427 Views Asked by At

pardon if it is a silly question, I am trying to make a Javascript code editor React app and I have come across the need to add external javascript libraries as dependencies to the editor(not for the app to run, but for the editor inside it). I found the cdnjs API https://api.cdnjs.com/ which would have been perfect except for the fact that certain libraries like ml5js are not to be found in here. However if there was some way I could search unpkg like this, I could add particular libraries according to the user's choice. So, is there some api like that which could return a json object containing the list of libraries with their unpkg cdns, matching the queries sent for the library names?

Or, is there any other way I could get search from a list of javascript libraries other than unpkg?

1

There are 1 best solutions below

0
On

There is no official way to search for UNPKG packages but there is a third part website https://www.unpkgsearch.com/

You can search for packages and directly copy the unpkg link