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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@qy-utils/fe-deployer

v1.0.13

Published

Frontend deployment toolset: SSH deploy, Docker scaffolding, multi-cloud upload (OSS/MinIO/S3/COS), YAML config, notifications.

Readme

fe-deployer

前端工程部署工具集(TypeScript):

  • 一键部署到服务器(SSH + 压缩/解压)
  • Docker 模板生成(Dockerfile + docker-compose)
  • 多云上传:阿里云 OSS / MinIO / AWS S3 / 腾讯云 COS
  • YAML 配置(fe-deployer.yamldeploy.config.yaml
  • 部署通知(钉钉、飞书、Slack 或通用 Webhook)

快速开始

npm i -g fe-deployer
fe-deployer --help

# 生成 Docker 模板
fe-deployer docker

# 上传构建产物到云存储
fe-deployer upload -t oss

# 部署到服务器(读取 YAML 配置)
fe-deployer deploy -e prod

配置文件

创建 fe-deployer.yaml(或 deploy.config.yaml)在你的项目根目录:

envs:
  dev:
    host: 1.2.3.4
    port: 22
    username: root
    # 私钥方式(推荐)或 password 二选一
    privateKey: ~/.ssh/id_rsa
    # password: "your-password"
    deployPath: /var/www/apps/myapp
    preCommands:
      - mkdir -p /var/www/apps/myapp
    postCommands:
      - ls -lah
  prod:
    host: 5.6.7.8
    port: 22
    username: ubuntu
    privateKey: ~/.ssh/id_rsa
    deployPath: /srv/myapp

storage:
  provider: oss # 可选:oss|minio|s3|cos
  baseDir: dist
  oss:
    region: oss-cn-hangzhou
    bucket: your-bucket
    accessKeyId: ${OSS_ID}
    accessKeySecret: ${OSS_SECRET}
  minio:
    endPoint: 127.0.0.1
    port: 9000
    useSSL: false
    accessKey: ${MINIO_KEY}
    secretKey: ${MINIO_SECRET}
    bucket: my-bucket
  s3:
    region: ap-southeast-1
    bucket: my-bucket
    accessKeyId: ${AWS_ID}
    secretAccessKey: ${AWS_SECRET}
  cos:
    SecretId: ${COS_ID}
    SecretKey: ${COS_SECRET}
    Bucket: my-bucket-1250000000
    Region: ap-singapore

notify:
  enable: true
  channels:
    - type: dingtalk
      webhook: https://oapi.dingtalk.com/robot/send?access_token=xxx
    - type: feishu
      webhook: https://open.feishu.cn/open-apis/bot/v2/hook/xxx
    - type: slack
      webhook: https://hooks.slack.com/services/xxx/yyy/zzz
    - type: webhook
      webhook: https://example.com/deploy-callback

支持 ${ENV_VAR} 占位符:会从环境变量里取值。

安全提示

  • 推荐使用 SSH 私钥,不在 YAML 里写明文密码。
  • CI 环境把密钥设置在 Secrets 中。

License

MIT