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

gmail-safe

v0.3.3

Published

Intelligent backup client for GMail.

Readme

gmail-safe

Easy commandline-driven backups of your Google Mail data.

Quick Start

$ npm install -g gmail-safe
$ gmail_safe ./path/to/store -u USERNAME -p PASSWORD

Legal Boilerplate

This project is Copyright (c) 2012 Erich Blume <[email protected]>.

Google and Google Mail are trademarks owned by Google. I am not Google. I do not own these trademarks. Hopefully everyone understands that this modest little app only serves to increase Google Mail's adoption, by whatever small amount.

This project is licensed under the MIT license, which is a permissive open-source license. See the LICENSE file for the full terms of the copyright. If this project didn't come with a LICENSE file, then someone messed up (probably me) and you can get a copy at http://www.opensource.org/licenses/mit-license.php.

About

gmail-safe was inspired by a desire to back up my Google Mail. I surveyed some of the options already available but could find none that were:

  • Decently fast
  • Supported incremental backup
  • Could be run in the background (eg. from a cron script)
  • Saved thread information (Google Mail 'conversations')
  • Saved Google Mail labels
  • and Saved attachments & alternate bodies in the standard email format

In that regard, gmail-safe:

  • Is pretty darn fast. How fast? On my home internet connection, I get about 16 emails per second - and that's including emails that have attachments.
  • Is not CPU or RAM intensive. It can easily run in the background. It will saturate your network connection a bit (but not too baddly) but it uses less than 10% of my CPU and about 100 MB of RAM, even with huge data sets.
  • WILL support incremental backup. I have a plan to implement this but it isn't in this release yet. If I can get it working correctly, it should be stupidly fast (to the point where it may become my default MUA (mail user agent).
  • Saves meta-data like conversations and labels in a secure, local-only redis database. At this time that data just sort of sits there, but eventually I hope to write tools to let you re-import your mail to Google using this database to preserve labels and threads. For now you can be confident that nothing was lost. Labels and threads do NOT appear in downloaded emails directly as those extensions are not part of the email spec.
  • Is designed from the ground up to be run in the background, eg. as a background (cron) job. (Ok, in this very early release this still needs a tiny bit of work, but it's going to get there very soon.)
  • Supports Google Application-Specific Passwords so people with two-factor authentication can still use it. (This comes gratis, it just replaces your normal password.)

Installation

Currently gmail-safe has three external dependencies you will need to install yourself:

If there is much demand I will probably make available a more complete guide for installing these dependencies - but really, it isn't very hard.

From there, just follow the quick start guide. :)

Plannead Features

  • Better backgrounding support (supress stdout & progress bar)
  • Asynchronous simultaneous email fetching - not sure if IMAP will support this
  • Incremental backup (suppress re-downloading emails)
  • Metadata transfer/import
  • Configuration file so you don't need to have your password on the command line

Most of these features are fairly simple to implement - mostly I just need motivation. So if you want this feature (or any other!) just file an issue on github.