Data analysis of hackage activities

Hi,

Is there any easy way (or someone has done already?) to analyze the activities happening on hackage?

It would be good to understand the long term trend of some sorts, and what categories of packages are being actively maintained there.

2 Likes

You can download the index and extract the categories and upload dates for each version of each package. If you are using cabal you probably already have the index at ~/.cabal/packages/hackage.haskell.org/01-index.tar.

That would require some programming to extract all the data. I don’t know if anybody has done it already.

1 Like

I fear the index doesn’t include things like upload time and download counts, as well as deprecation markers. :slight_smile:

It does include upload times in the form of timestamps on the .cabal files. Or at least that seems accurate on my system.

And you can get a list of deprecated packages from https://hackage.haskell.org/packages/deprecated

And you can probably get download counts from https://hackage.haskell.org/packages/downloads. This seems to require admin authorization for some reason.

See Server API | Hackage

1 Like