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

tractor-plugin-loader

v0.6.4

Published

Plugin loader for [**tractor**](https://github.com/TradeMe/tractor) to provide additional UI testing capabilities.

Readme

tractor-plugin-loader

Plugin loader for tractor to provide additional UI testing capabilities.

Greenkeeper badge npm version bitHound Overall Score Code Climate Test Coverage

How it works:

tractor-plugin-loader is automatically installed whenever you run tractor init in a project. Then, whenever tractor start is run on that project, the loader looks through your installed node modules, and finds any that are called tractor-plugin-whatever. Those plugins could provide new actions for Page Objects, new report generators, or entirely new bits of UI/Functionality for the tractor-client application, all depending on what the plugin exports.

API:

A tractor plugin is just a plain old node module, with a few specially named exports, and maybe some bundled UI code. If you want to see an example of a basic plugin, check out tractor-plugin-browser.

description (optional)

The description of any actions that the plugin provides to tractor. It should be an object with a single property, methods: Array<Method>.

create (optional):

Defines how an instance of the plugin will be instantiated when Protractor runs. It should return a concrete implementation of each of the description.

Returns:

  • plugin: any

init (optional):

Initialise anything that your plugin needs before it runs. This may be things like creating directories or getting information about the current environment, before tractor starts running.

Returns:

  • promise?: Promise

run (optional):

Run any extra code you need before the app server starts. At the point that this is called all other plugins have been initialised and served.

Returns:

  • promise?: Promise

serve (optional):

Define any new endpoints that you want to attach to the tractor-server, typically for consuming from the tractor-client.

Returns:

  • promise?: Promise

UI Script (optional):

A plugin can also contain UI code. The loader looks for a file at node_modules/tractor-plugin-my-plugin/dist/client/bundle.js and injects that into the tractor-client when it is served. It is run before the bootstrapping of the Angular application, so it can set-up routes etc. To see an example of how this works, check out tractor-plugin-visual-regression.

Interfaces:

Method:

interface Method {
    name: string;
    description: string;
    arguments: Array<Argument>;
    returns?: 'promise' | 'boolean' | 'number' | 'string';
}

Argument:

interface Argument {
    name: string;
    description: string;
    type: 'boolean' | 'number' | 'string';
    required?: boolean;
}