Skip to content

Instantly share code, notes, and snippets.

View BenJam's full-sized avatar
💭
Will never update this again.

Benjamin Nickolls BenJam

💭
Will never update this again.
  • Bath
View GitHub Profile

What is this?

A scratchpad for a number of measures of software libraries focussing on areas that will guide users to make more informed decisions about whether to include a library within their own project.

See librariesio/libraries.io#1486 for more information and https://gist.github.com/BenJam/9e1d6276efabced6e3973137e6993b01 for a list of questions we are building these measures from. Measures here are in addition to those already gathered: https://docs.libraries.io/overview#sourcerank

Distribution

  • last release
  • av. time between releases
  • av. size of release: #commits/size of diff

What is in this release?

In this release you will find data about software distributed and/or crafted publicly on the Internet. You will find information about its development, its distribution and its relationship with other software included as a dependency. You will not find any information about the individuals who create and maintain these projects.

This dataset contains seven files:

Projects

A project is a piece of software available on any one of the 33 package managers supported by Libraries.io.

Versions

A Libraries.io version is an immutable published version of a Project from a package manager. Not all package managers have a concept of publishing versions, often relying directly on tags/branches from a revision control tool.

├─┬ del@2.2.2
│ ├─┬ globby@5.0.0
│ │ ├── array-union@1.0.2
│ │ ├── arrify@1.0.1
│ │ └─┬ glob@7.1.2
│ │ ├── fs.realpath@1.0.0
│ │ ├─┬ inflight@1.0.6
│ │ │ └── wrappy@1.0.2
│ │ ├─┬ minimatch@3.0.4
│ │ │ └─┬ brace-expansion@1.1.7

What is this?

A scratchpad for a classifer of software libraries focussing on a number of areas that will guide users to make more informed decisions about whether to include a library within their own project.

See librariesio/libraries.io#1486 for more information.

Themes/Questions

There are a number of key themes here that we need to look at. Within each I have posed a number of questions that might be of interest to a developer or maintainer.

Code

  • What scale is this project? - Looking at things like novel LoC, #dependencies and LoC in dependencies perhaps.

Libraries.io's Curent Metrics

Entity Name Type Description (if not obvious)
Project name String -
Project description String -
Project homepage URl -
Project keywords Array of String -
Project language String -
Project platform array of string List of distribution sources for this project e.g. npm, rubygems etc
Maven/junit:junit
Maven/commons-collections:commons-collections
NPM/grunt
NPM/grunt-cli
Rubygems/rubocop
Rubygems/rake
Rubygems/selenium-webdriver
Rubygems/mime-types
NPM/grunt-contrib-jshint
Rubygems/faker
### Keybase proof
I hereby claim:
* I am benjam on github.
* I am benjam (https://keybase.io/benjam) on keybase.
* I have a public key ASAjgUGSlDDN0hh4f_d-MenDKWJ_Xo61YaGlmLGeY5TTwAo
To claim this, I am signing this object:
@BenJam
BenJam / load-templates.js
Last active December 10, 2015 22:38
A util function to load external templates into a backbone project.
tpl = {
// Hash of preloaded templates for the app
templates:{},
// Recursively pre-load all the templates for the app.
// This implementation should be changed in a production environment. All the template files should be
// concatenated in a single file.
loadTemplates:function (names, callback) {
Warning: Your Homebrew is outdated
You haven't updated for at least 24 hours, this is a long time in brewland!
@BenJam
BenJam / pages-with-template.php
Created July 2, 2012 16:18
A wordpress query to return all pages with the template $template
<?php
// Get all pages that use a particular template.
// This is used in footer-about.php to generate the navigation sections.
function pages_with_template($templates) {
$templates["compare"] = "IN";
return new WP_Query(
array(
'post_type' => 'page',
'meta_query' => array(
array(