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

dockerbuild

v0.1.2

Published

a client to build and publish docker images from a local build context

Downloads

4

Readme

Dockerbuild is a command-line tool written in node.js that enables you to bulid and publish docker images using a remote server that you have access to. This is particularly useful if your developmenet machine is OSX or Windows where Docker does not run natively. Rather than setting up a local VM on your local machine just to build and publish Docker images, you can simply proxy these requests to your Linux server.

While you could get the same functionality using Docker's trusted build + github repo, this is a better work flow when doing development. It doesn't require commiting changes through a github repo, which is useful when you just want to do test deployments. But more importantly, it doesn't overwhelm Docker's servers with your own development build jobs. You should be paying for these builds, not Docker :)

Usage

  1. Setup build server (see its readme.md)
  2. Install this client on your dev machine: npm install -g dockerbuild
  3. Set environment variables to point to your build server and auth credentials:
* BUILD_HOST - host of build-server deployment
* BUILD_PORT - port of build-server deployment
* BUILD_AUTH - server-side auth token

Now you can publish docker images from local source trees:

publish <username/repo>

This will tar+gzip your build context, taking into consideration your .gitignore file (so node_modules will not transmit, for instance). It will then run a docker build job on the remote server, and push the resulting image to the docker registry (index.docker.io), tagging it as username/repo.

Security

Security is pretty basic for right now. Just choose a shared token for your client and server. The token is passed via http authorization headers. Your server-side environment must be setup with proper docker authentication so that you can push to the docker.io image registry. You can push to both public and private repos as long as you have correct authorization to do so.