Back to directory
BrainMaestro avatar

packagehub

An extension for displaying dependencies of projects on GitHub . Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/BrainMaestro/packagehub.git

87

Stars

10

Forks

7

Watchers

MIT

License

Package Hub

Chrome Web Store Chrome Web Store Mozilla Add-on Mozilla Add-on

An extension for displaying dependencies for different package managers on GitHub

Package Manager Support

  • Npm/Yarn.
  • Composer.
  • Pip.
  • Cargo.

Usage

Clicking the extension icon opens a popup where you can provide an API key from libraries.io that you can get from here. This API key allows the extension to make bulk requests instead of single ones which improves the experience greatly. Encountering projects with too many dependencies now works correctly. It is a little unpleasant, but getting an API key is worth it.

Rationale

Why build this? We already have npmhub?

npmhub is great, but why should npm have all the fun? I wanted to see if I could implement something similar while making it easy to add support for other package managers. Also, to make it more fun, I decided to accomplish this without any fancy libraries (jQuery) or apis (fetch). So, packagehub should have support for most browsers in use today.

  • npmhub - inspired the idea for this extension.

Install

Development

  1. Clone this repo.
  2. Go to chrome extensions chrome://extensions.
  3. Enable developer mode.
  4. Click on load unpacked extension and select the source folder of this cloned repo.

To add support for a new package manager

  1. Add a new config entry with the relevant details. The registry in the config should be one of the supported ones in Libraries.io
  2. Add a new parser if the package manager dependencies are not specified in one of the already existing formats (JSON, TOML, etc.).

Appreciation

Thanks to Libraries.io for providing an excellent api with returns just the right amount of data to make this extension useful without being wasteful.

License

MIT © Ezinwa Okpoechi

Releases

Jun 29, 2017

v1.0.0

Download .zip

Add support for specifying a libraries.io API key to get around rate limiting and improve user experience

Apr 23, 2017

v0.8.0

Download .zip

Use homepage if repository_url is a git repo

Apr 11, 2017

v0.7.0

Download .zip

Add icons for maximize and minimize functionality

Feb 27, 2017

v0.5.0

Download .zip

Add ability to toggle dependencies in a category Clicking on either 'Project Dependencies' or 'Development Dependencies' will toggle the display of the dependencies underneath