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 🙏

© 2024 – Pkg Stats / Ryan Hefner

mupee

v3.0.0

Published

Mupee is a proxy between the Mozilla.org update servers and your corporate Mozilla software.

Downloads

10

Readme

Mozilla Updater

About

Mupee acts as a proxy between the Mozilla.org update servers and your corporate Mozilla software. Using it, you can allow/deny updates of Mozilla products per version. As an example, you can tell Mupee to allow updates of Thunderbird up to the last minor version of the 17 branch, but not switch to the 24 branch.

Requirements

Mozilla updater proxy needs:

  • node.js version >= 0.10.x
  • a MongoDB server
  • an internet connection to the Mozilla update servers

How to use it

    npm install mupee
    cd node_modules/mupee
    npm start

It will start the server with some default values (1234 as the server port or 27017 as the mongodb server port).

On your Mozilla softwares (Thunderbird and Firefox), add a setting :

app.update.url.override=http://[your proxy IP address or hostname]/update/3/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml

How to configure it

Rename ./conf/config.json.sample to ./conf/config.json.

Here's the details:

    {
      "download" : {
        "dir" : "./data/files",                               // default path to store mozilla updates.
        "autoCache" : true                                    // not implemented yet
      },
      "database" : {
        "url" : "mongodb://localhost:27017/mozilla-updater",  // mongodb server location
        "options" : {                                         // options for the mongodb driver
          "auto_reconnect" : true,
          "w" : 1,
          "journal" : true,
          "fsync" : true,
          "safe" : true
        }
      },
      "fetch" : {
        "remoteHost" : "https://aus3.mozilla.org/update/3",  // remote mozilla repository
        "autoCache" : true                                   // not implemented yet
      },
      "server" : {
        "port" : 1234,                                       // default node server port
        "url" : "http://localhost"
      },
      "log" : {                                              // loggin options
        "file" : {
          "enabled" : true,
          "filename" : "./log/mozilla-updater.log",
          "level" : "info",
          "handleExceptions" : true,
          "json" : false,
          "prettyPrint" : true,
          "colorize" : false
        },
        "console" : {
          "enabled" : true,
          "level" : "debug",
          "handleExceptions" : true,
          "json" : false,
          "prettyPrint" : true,
          "colorize" : true
        }
      }
    }

By default, logging is done into ./log/mozilla-udpater.log.

What now?

Mupee comes with a user friendly frontend which allow an administrator to manage Thunderbird and Firefox updates policies by creating rules.

Open a browser to your mupee server (depending on the previous configuration) then choose one of the Mozilla products to handle. The frontend is composed of:

  • The default policy which applies to every clients.
  • The list of clients who have requested an update.
  • For each client, a specific policy that can be modified.

For now, 4 rules are available:

  • Allow all upgrades: Mupee will accept every update. Mupee works as a simple proxy between the mozilla repository and the client.
  • Deny all upgrades: Mupee will reject every update. Mupee works as a deny all firewall.
  • Upgrade to latest release of a given branch: Mupee will return the latest update of to the specific given branch.
  • Upgrade to latest release of the current branch: Mupee will return the latest update corresponding to the current major version of the client.

Mupee also comes with an extendable rules engine. We will deliver more informations about creating new rules very soon...

Contributing

We love contributions, don't hesitate to send Pull requests! The bug tracker is @ https://github.com/linagora/mupee/issues.