npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

glimr

v1.1.1

Published

Git Log Inferred Metrics and Reports Plugin for nit_for_git https://github.com/beplaya/glimr

Downloads

22

Readme

G.L.I.M.R.

Git Log Inferred Metrics and Reports
npm install glimr
Use in code (Example usage https://github.com/beplaya/Nit -->https://www.npmjs.com/package/nit_for_git)
var Glimr = require('glimr');
var glimr = new Glimr();
/*
    logContents - string of logs output from 'git log' command
    projectKey - e.g. "GLIMR".  Your project key used in git logs "GLIMR-101: log message" 
    returns - glimr analysis object (see results_all.json below)
*/
glimr.analyzeLogs(logContents, projectKey, { startDate : startDate, endDate : endDate});
CLI

node glimr-cli <project_key> <file_containing_logs> <start UNIX epoch OR 0 for all> <end UNIX epoch OR 0 for all>

WHY GLIMR???

~Follow the discussion on Reddit

Most organizations tend to abuse story points and measure productivity in frankly ridiculous ways (e.g. lines of code).
Even though story points measure complexity and are a trailing metric they’re used for prediction and treated as time. Velocity is a sum of guesses which are never revisited or rexamined. Velocity isn't bad, but it tends to be used improperly. The truth behind the scenes is lost at the water cooler or simply never investigated. Assumptions that built velocity reports are treated as facts and it is difficult to see the why behind velocity trends.

I’ve worked for many different companies as a software engineer and I’m convinced that even in the best environments there are usually only two conclusions that management arrives at from velocity:

  • Velocity is up = the team is working hard and is super smart
  • Velocity is down = the team is lazy and dumb

GLIMR is a tool that uses real data to easily and plainly show the most truth surrounding velocity. GLIMR does this because it:

  • Gives insight into productivity and team/project health
    • When are people committing?
    • Turnover, hiring, firing inferred from commit authors
    • Rework by detecting multiple merges
    • Infer estimation practices from changes in commits per story point over time
  • Incentivizes good and compliant practices:
    • Bad -> Linking lines of code to performance encourages poor practices.
    • Good -> Linking commit frequency and commit message compliance to performance encourages good practices.
  • Avoids any barriers to transparency (needs minimal access rights. If you can run git log, you can see the GLIMR data)
  • Avoids any barriers to use
    • It is completely agnostic (barring git)
    • Does not need access to multiple organizational systems. Can be run locally in milliseconds.

Outputs:

glimr_results_all.json

```
{
"logObjects": 
    [{
        "commit": HASH,
        "author": { "name": STRING,"email":STRING },
        "date": JS_DATE_STRING,
        "message": STRING,
        "pullRequest": { "isPullRequest": BOOLEAN, "number": INT, -1 },
        "deltas": {  "msSinceLast": REAL, "rollingAverageMs": REAL, "rollingStDevMs": REAL }
    }, ...],
"cards":
    [{
        "key": STRING,
        "number": INT,
        "projectKey": STRING,
        "numberOfPullRequests": INT,
        "commits": [...]
    }, ...],
"authors": 
    [{
       "name": STRING,
       "email": STRING,
       "activity": {
           "commits": [HASH,...],
           "contribution": {
               "total": INT,
               "totalCommitsByAll": INT,
               "fractionOfContribution": REAL
           }
       }
    }, ...],
"counts":
    "counts": {
        "commits": INT,
        "cards": INT,
        "pullRequests": INT
    }
}
```
    

Break down files of glimr_results_all.json:

- glimr_results_authors.csv
- glimr_results_authors.json
- glimr_results_cards.csv
- glimr_results_cards.json
- glimr_results_logs.csv
- glimr_results_logs.json