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

docker-upload

v0.3.0

Published

总所周知,由于一些无可奉告的原因,在云服务器`docker pull`拉取镜像都会显示`connect: connection timed out`超时报错。 当前的几种解决方法: 1. 云服务器搭建科学上网(生产环境你搭个试试) 2. 使用一些没经过审查的镜像源(可能随时用不了,还有可能装到不安全的镜像) 3. 自己搭建镜像源(麻烦) 4. 用有科学上网的本地电脑拉取镜像后再上传到云服务器

Downloads

54

Readme

Docker Upload

适合中国程序员的docker镜像中转工具,支持一键将本地镜像上传到云服务器

📖简介

总所周知,由于一些无可奉告的原因,在云服务器docker pull拉取镜像都会显示connect: connection timed out超时报错。 当前的几种解决方法:

  1. 云服务器搭建科学上网(生产环境你搭个试试)
  2. 使用一些没经过审查的镜像源(可能随时用不了,还有可能装到不安全的镜像)
  3. 自己搭建镜像源(麻烦)
  4. 用有科学上网的本地电脑拉取镜像后再上传到云服务器

DockerUpload 使用的是第4种方法,只需要一行命令,帮你自动执行命令,完成多个镜像打包、传输和加载。

🔨使用指南

配置SSH

~/.ssh/config中添加云服务器的配置信息,例如:

Host myserver
    HostName your.server.ip
    User yourusername
    Port 22
    IdentityFile ~/.ssh/id_rsa

运行docker-upload

npx docker-upload
  1. 根据提示选择要传输的镜像(支持多选)
  2. 根据提示选择云服务器(支持搜索)
  3. 输入ssh密码
    Demo.gif

🔣原理

docker-upload 只是帮你自动执行了下面命令而已,没有什么技术含量:

# 1. 打包docker image
docker save xxx
# 2. 传输到云服务器
scp xxx.tar user@server:/tmp/xxx.tar
# 3. 在云服务器加载docker image
ssh user@server 'docker load -i /tmp/xxx.tar'