Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including reginabox with all npm packages installed. Try it out:

var reginabox = require("reginabox")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

reginabox v1.0.1

instant npm mirror


Build Status

reginabox (Registry In A Box) is an easy way to set up an npm registry mirror on your local network, and let local network users know about it.


$ npm i -g reginabox

Installation on Windows

Things are a little trickier on Windows. This project depends on node_mdns which in turn depends on Apple's "Bonjour SDK for Windows." You'll need an Apple Developer account to download the SDK, and the SDK should be installed before you attempt to install reginabox or node_mdns. See the node-mdns installation instructions for more details on installing node_mdns.


$ reginabox mirror [outputdir] will run registry-static and a corresponding web server to go along with it. If outputdir is provided, it will be used as the output directory, where it stores all the tarballs and metadata. Otherwise, $PWD/registry will be used. It will also make the server discoverable via zeroconf.

$ reginabox discover queries the local network for servers that are run using the command above. Once it finds a usable server, it outputs the command to set the registry, and then exits.



RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free