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

certctl-cli

v1.0.10

Published

Lightweight SSL Certificate CLI Tool

Readme

certctl-cli

轻量级 SSL 证书申请工具 / Lightweight SSL Certificate Tool

支持通配符证书申请 & 阿里云/腾讯云 DNS 自动验证。

安装

npm install -g certctl-cli

CLI 使用

# 交互式菜单
certctl

# 手动 DNS 验证
certctl apply -d example.com -e [email protected]

# 阿里云 DNS 自动验证
certctl apply -d example.com --dns aliyun --ali-key YOUR_KEY --ali-secret YOUR_SECRET

# 腾讯云 DNS 自动验证  
certctl apply -d example.com --dns tencentcloud --tencent-id YOUR_ID --tencent-secret YOUR_KEY

# 查看证书
certctl list

# 续期证书
certctl renew

# 验证证书
certctl verify -d example.com

# 修复证书链(自动补全中间证书)
certctl fix-chain -d example.com

Programmatic API(在代码中调用)

如果你需要在 Node.js 项目中通过代码调用证书申请功能,请参考:

📚 完整 API 文档

快速示例:

const { spawn } = require('child_process');

// 申请证书
const certctl = spawn('certctl', [
  'apply',
  '-d', 'example.com',
  '-e', '[email protected]',
  '--dns', 'aliyun',
  '--ali-key', process.env.ALI_KEY,
  '--ali-secret', process.env.ALI_SECRET
]);

certctl.on('close', (code) => {
  if (code === 0) {
    console.log('证书申请成功!');
    console.log('证书位置: ./certs/example.com/example.com.pem');
  }
});

完整封装示例见 API.md

特性

  • 🔐 通配符证书:支持 *.example.com
  • 🤖 自动 DNS 验证:阿里云/腾讯云 DNS 自动验证
  • 🛠️ 证书链修复:自动补全缺失的中间证书
  • 📱 微信小程序兼容:确保证书链完整
  • 🌍 多语言:中英文界面
  • 🚀 轻量快速:Go 实现,单二进制文件

环境要求

  • Node.js >= 14
  • 支持 macOS、Linux、Windows

文档

  • CLI 文档:https://github.com/Heartbeatc/certctl#readme
  • API 文档:API.md

License

MIT