Giter Site home page Giter Site logo

packagehub's Introduction

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.

Related

  • 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

packagehub's People

Contributors

brainmaestro avatar yfdyh000 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.