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

koishi-plugin-docker-control

v0.1.7

Published

Koishi 插件 - 通过 SSH 控制 Docker 容器 (支持连接池、缓存、权限控制、审计日志)

Readme

koishi-plugin-docker-control

Koishi 插件 - 通过 SSH 管理远程 Docker 容器

简介

通过 SSH 连接管理远程 Docker 容器,支持容器列表、启动、停止、重启、日志查看、命令执行等功能。

快速开始

1. 配置节点

在 Koishi 控制台配置 SSH 凭证和 Docker 节点。

2. 订阅容器通知

# 订阅指定节点的指定容器
docker.subscribe yun myapp

# 订阅指定节点的所有容器
docker.subscribe yun all

# 订阅所有节点的指定容器
docker.subscribe all myapp

# 订阅所有容器的所有事件
docker.subscribe all all

# 只监听启动和停止事件
docker.subscribe all all -e start,stop

3. 查看订阅

docker.subscriptions

4. 取消订阅

docker.unsubscribe <订阅ID>

指令说明

基础指令

| 指令 | 说明 | |------|------| | docker.ls | 列出所有节点容器 | | docker.ls <selector> | 列出指定节点容器 | | docker.ls -a | 列出所有容器(含已停止) | | docker.ls -f image | 图片格式输出 |

控制指令

| 指令 | 说明 | |------|------| | docker.start <selector> <container> | 启动容器 | | docker.stop <selector> <container> | 停止容器 | | docker.restart <selector> <container> | 重启容器 | | docker.inspect <selector> <container> | 查看容器详情 |

日志与执行

| 指令 | 说明 | |------|------| | docker.logs <container> | 查看容器日志(自动搜索) | | docker.logs <container> <node> | 查看指定节点容器日志 | | docker.logs <container> -n 100 | 查看最近 100 行日志 | | docker.exec <selector> <container> <cmd> | 在容器内执行命令 |

订阅指令

| 指令 | 说明 | |------|------| | docker.subscribe <node> <container> | 订阅容器通知 | | docker.subscriptions | 查看当前订阅 | | docker.unsubscribe <id> | 取消订阅 |

参数说明

  • selector: 节点选择器,支持节点 ID、节点名称或 @标签
  • container: 容器名称或 ID(支持模糊匹配)
  • -n: 日志行数限制
  • -a: 显示所有容器(含已停止)
  • -f: 输出格式(simple/detail/json/image)
  • -e: 监听的事件类型(start/stop/restart/die)

配置项

  • debug: 调试模式
  • imageOutput: 图片格式输出
  • defaultLogLines: 默认日志行数