Is there API for Clojars?

I want to add a script like yarn outdated, which is for detecting outdated jars. Any APIs to use?

Will it involve Maven APIs if some jars are hosted on Maven?

https://github.com/xsc/lein-ancient 这个嚒?

1 Like

Cool but I’m not using Lein. My dependencies are specified in shadow-cljs.edn.

You can also check:

What I do is manage my dependencies using deps.edn, and then just reference the deps file from shadow-cljs.edn.

1 Like

How do you reference the deps BTW?

Here is the section in the shadow-cljs manual:
https://shadow-cljs.github.io/docs/UsersGuide.html#deps-edn

1 Like

The Clojars API is documented here: https://github.com/clojars/clojars-web/wiki/Data

3 Likes

Cheers~

Got another question, some of the packages are deployed on maven. How can I check them, and how do I tell where the package is served?

Turned out API is not available for mirrors. Mirrors only got files cached https://mirrors.ustc.edu.cn/clojars/ .