Skip to content

teamopen-dev/sourcecred-stack-lookup

Repository files navigation

Build Status license BlueOak-1.0.0 npm version

SourceCred stack lookup

Find out how your direct NPM dependencies are doing.

Learn more about SourceCred: https://sourcecred.io/

Status: pauzed

As an experiment this has been pretty interesting. You can read some more about my thoughts on it here: https://discourse.sourcecred.io/t/experiment-sourcecred-stack-lookup/287

However since it's not in active use as far as I can tell, it's a little wasteful to keep running hourly cronjobs all the time. So I'm turning this cronjob off, leaving this repository for reference.

If you're interested in SourceCred and/or this experiment, feel free to reach out here or on the SourceCred forums.

Example usage

Install npm i -D @teamopen/sourcecred-stack-lookup.

Add a script:

{
  "scripts": {
    "lookup": "sourcecred-stack-lookup"
  }
}

Run the lookup npm run -s lookup.

Parameters

ENV vars to tweak:

  • DETAILED=n [y/n], gives more detail about scores
  • RATING=3 [1,2,3,4], the minimal rating to report. Corresponds to 1=Low, 2=Medium, 3=High, 4=CRITICAL.

Example usage in scripts:

{
  "scripts": {
    "lookup": "DETAILED=y RATING=4 sourcecred-stack-lookup"
  }
}

Shows detailed information for critical results.