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

pmpy

v0.4.5

Published

A push-me-pull-ya client for consule + vault

Downloads

55

Readme

NPM version Build Status Dependency Status

PMPY: A push-me-pull-ya client for consul + (WIP) vault

PMPY makes it easier to manage key-value data in consul. Currently get/set operations do not consider cas/ModifyIndex, etc. It simply sets or retrieves values from Consul. Both JSON and env formats for input and output.

Pushing data into Consul is as simple as:

$ pmpy consul push --path myapp --value='{"key1": "value1"}'

Pulling it back out again is just as easy:

$ pmpy consul pull --path myapp 
{
  "key1": "value1"
}

When pulling data out of Consul, PMPY allows you to specify multiple paths. The resulting document is a merged document with values specified later overriding previous values. This allows you to easily setup more complex documents to support multiple environments/applications.

For example, given these three paths:

$ pmpy consul push --path myapp/defaults --value='{"host": "foo.bar"}'
$ pmpy consul push --path myapp/prod --value='{"database": "prod_db"}'
$ pmpy consul push --path myapp/dev --value='{"database": "dev_db"}'

You can retrieve data for a specific environment by specifying mutiple paths:

$ pmpy consul pull --path myapp/defaults --path myapp/prod
{
  "host": "foo.bar",
  "database": "prod_db"
}
$ pmpy consul pull --path myapp/defaults --path myapp/prod
{
  "host": "foo.bar",
  "database": "dev_db"
}

Install

$ npm install --save pmpy

Usage

Code

var consul = require('pmpy').consul;

// prefix is options - defaults to 'pmpy'
consul({ prefix: 'myorg' })
  .pull('myapp/beta')
  .subscribe(
    (conf) => console.log(JSON.stringify(conf),
    (err)  => console.log(err.stack)
  );

CLI

$ npm install -g pmpy
$ pmpy --help

Playground

PMPY comes with a docker based playground for Consul and Vault. You will need to install the Docker tools - including compose to use it. Once you have, the playground can be managed from the cli.

pmpy playground --help
playground <action>

Commands:
  start    Start playground services
  stop     Stop playground services
  restart  Restart playground services
  reset    Resets consul & vault without a full restart
  env      Display vault keys

License

MIT © David J. Clarke