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 🙏

© 2026 – Pkg Stats / Ryan Hefner

minsky-plugin-manager

v1.0.0

Published

A manager that can be added to classes internally in order to have a plugin structure.

Downloads

4

Readme

Plugin Manager

A manager that can be added to classes internally in order to have a plugin structure.

This manager should run inside a class providing a way to support a plugin-like structure. Even though it is still unfinished, it is already somewhat incorporated inside some classes.

Class type: Manager

Dependencies

  • Core 1.0.0

Getting started

Inits in a static way. Provided class definition gets the right injections every time it is constructed.

// Add to the bottom of the class
let plugins = new PluginManager({
    Target: [Class],
});

Constructor Parameters

Target

Type: Class Default: none

The target class definition it will manage.

plugins

Type: Array Default: []

Array of plugins it will automatically define when it is constructed.


Interface

Options

Target

Type: Class Default: none

The target class definition it will manage.

plugins

Type: Array Default: []

Array of plugins it will automatically define when it is constructed.

Properties

Target

Type: Class Default: none

The target class definition it will manage.

plugins

Type: Array Default: []

Array of plugins it will automatically define when it is constructed.

Methods

define

Parameters: plugins:Array Return: undefined

Registers a plugin so it can be added to every instance that is managed by the manager.

get

Parameters: pluginsId:Number Return: Plugin Object

Returns the requested plugin if found.

setOption

Parameters: pluginsId:Number, options:Object Return: Plugin Object

Sets the given options by merging the given options object with the one of the given plugin.

run

Parameters: method:String, args:Object, scope:Function/Object Return: Undefined

Runs a specific method of the class it manages with given args. Scope can be altered with the third parameter.

logPlugins

Parameters: none Return: undefined

Logs a list of registered plugins => usefull for development

destroy

Parameters: none Return: undefined

Destroys the plugin manager.


To Do

  • Finish the class
  • Fix scope inconsistencies.
  • Provide plugin base class instead of using object literal as plugin definition.
    • Provide plugin with setOption method for quickly deep mergin of object settings