anvaka / anvaka/pm

CPAN graph?

Open
#11 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
156
PR merge metrics
No merged PRs in 30d

Description

I don't have the JS chops to build one myself, but i can tell you where to easily get the data.

There's the ElasticSearch-based metacpan API which is documented here and here:
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
https://github.com/CPAN-API/cpan-api/blob/master/docs/API-docs.md

To get all the distributions on CPAN, you can build on this query:
http://api.metacpan.org/v0/distribution/_search

To get the dependencies for each distribution, you can build on this query:
http://api.metacpan.org/v0/search/reverse_dependencies/MetaCPAN-API

Note also that these URLs can easily be tested on the metacpan explorer:
https://explorer.metacpan.org/#/5706053

Total graph size should be around 32469 nodes.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no repository files, tests, or entry points. Start with the existing JavaScript visualization structure, then read the MetaCPAN API documentation and test the distribution and reverse-dependency queries in the MetaCPAN Explorer. Done means the project can represent the proposed CPAN dependency graph of roughly 32,469 nodes.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, javascript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.