Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count the number of usages in open-source projects #130

Open
krzema12 opened this issue Nov 24, 2022 · 5 comments
Open

Count the number of usages in open-source projects #130

krzema12 opened this issue Nov 24, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@krzema12
Copy link

One of the metrics on how a given library is "good" (adopted, known, stable - many other detailed features ) is the number of projects that depend on it. E. g. GitHub provides it for npm packages, probably because it's easy to parse this information from package.json. For Maven it's doable as well, but with Gradle it starts to be tricky. Anyway, IMO it's a problem worth tackling.

@mpetuska
Copy link
Owner

Hmm, might be hard to do without scanning the entirety of GitHub as well. The only doable thing I could think of is using existing mavenCentral scan and at least count how many other libraries depend on each particular artefact there.

Do you have any other ideas on how this could be achieved?

@mpetuska mpetuska added the enhancement New feature or request label Nov 25, 2022
@krzema12
Copy link
Author

I thought about GitHub search API: https://fusebit.io/blog/github-search-api/?utm_source=www.google.com&utm_medium=referral&utm_campaign=none I haven't used it, though, so it's just a quick idea.

@mpetuska
Copy link
Owner

Just read through that link and I didn't see any mention of direct search of repo dependants. Are you aware of any? Also gh dependencies mapping for gradle is still quite bad.

@krzema12
Copy link
Author

krzema12 commented Nov 25, 2022

I meant naively searching for strings like groupId:artifactId. I know there's a bunch of edge cases (the variant with named arguments, it can be formatted differently, and so on), but just wanted to share the general idea.

@mpetuska
Copy link
Owner

Ah, makes sense. Doesn't sound too different from what kamp already does with maven central. API limiters might be a blocker though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants