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

puush

v0.1.9

Published

A simple wrapper for the puush API

Downloads

17

Readme

node-puush

Simple wrapper for puush.


  • Puush ([apiKey]) - Constructor, apiKey is optional.
  • auth (email, password [, callback]) - Authenticate user. API key saved on success.
  • auth_key (email, apikey [, callback]) - Same as auth(), using apikey instead of plain text password.
  • up (filename [, callback]) - Upload file. Maximum filesize for free account: 272629051 bytes
  • del (fileID [, callback]) - Remove uploaded file.
  • hist ([callback]) - List of previously uploaded files. Limited to 10 on server side.

Example

var Puush = require('puush');

var puush = new Puush();
// or, if you know your API Key already:
var puush = new Puush('YOURAPIKEY');

// callback function to show results
function showResult(err, result) {
  console.log(result)
};

puush.auth('[email protected]', 'SuperSecretPassword');
// or
puush.auth_key('[email protected]', 'YOURAPIKEY');

puush.up('yourfile.ext', showResult);
puush.hist(showResult); // limited to 10 on server side
puush.del(12345678, showResult);

Puush([apiKey])

Constructor, apiKey is optional.


auth(email, password [, callback])

Authenticate user. API key saved on success.

Result from callback:
{ premium: 0,           // account is premium (?)
  apiKey: 'YOURAPIKEY', // API key of the user
  expire: '',           // premium expiration date (?)
  sizeSum: 0 }          // sum of file sizes (?)

auth_key(email, apikey [, callback])

Same as auth(), using apikey instead of plain text password.


up(filename [, callback])

Upload a file.
Maximum file size for free account: 260MB-708B-filename.length,
if your filename is only 1 character, then it is: 272629051 bytes

Result from callback:
{ id: 123465,                // uploaded file id
  url: 'http://puu.sh/x/y' } // download url

del(fileID [, callback])

Remove uploaded file. Result is the same as hist().

hist([callback])

List of previously uploaded files. Limited to 10 on server side.

Result from callback:
[ { id: 123456,               // uploaded file id
    datetime: 'Wed Jan 01 2014 00:00:00 GMT', // upload datetime
    url: 'http://puu.sh/x/y', // download url
    filename: 'yourfile.txt', // name of the uploaded file
    views: 1 },               // number of views
  { // more files...
  }
]

##Notes

  • If you include your API key in the constructor, you dont have to auth.
  • Question marked properties at callback results are wild guesses.

##Todo

  • Constructor ([email, password]|[apiKey])
  • Implement thumb
  • raw property at result, for unparsed response