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

sshmate

v1.1.0

Published

TUI quản lý và kết nối SSH servers ngay trong terminal.

Readme

sshmate

TUI quản lý và kết nối SSH servers ngay trong terminal.

Node.js License

Cài đặt

# Chạy trực tiếp (không cần cài)
npx sshmate

# Hoặc cài global
npm i -g sshmate

Từ source

git clone <repo-url>
cd sshmate
npm install
npm run build
npm link

Sử dụng

# Mở TUI
sshm

# Quick connect tới server đã lưu
sshm <tên-server>

Phím tắt

| Phím | Chức năng | | ------------ | ---------------------- | | j / Down | Di chuyển xuống | | k / Up | Di chuyển lên | | Enter | Kết nối SSH | | a | Thêm server mới | | u | Cập nhật server | | d | Xóa server | | r | Tái tạo SSH key | | q / Ctrl+C | Thoát |

Xác thực

sshmate hỗ trợ 2 kiểu xác thực:

SSH Key

  • Dùng file key có sẵn (mặc định ~/.ssh/id_rsa)
  • Hoặc dán nội dung private key — sshmate sẽ lưu vào ~/.sshm/keys/

Password (cần sshpass)

Khi xác thực bằng password, sshmate sử dụng sshpass để truyền password cho SSH.

Auto-install: Lần đầu kết nối bằng password, nếu sshpass chưa có trong hệ thống, sshmate sẽ tự động phát hiện OS và cài đặt.

Cài thủ công (nếu auto-install thất bại):

# Ubuntu / Debian
sudo apt install -y sshpass

# Arch Linux
sudo pacman -S sshpass

# Fedora / RHEL
sudo dnf install -y sshpass

# Alpine
apk add sshpass

# macOS (cần Homebrew)
brew install esolitos/ipa/sshpass

Lưu trữ dữ liệu

Tất cả dữ liệu được lưu tại ~/.sshm/:

~/.sshm/
├── servers.json    # Danh sách server
├── credentials/    # Password (mã hóa)
└── keys/           # SSH private keys

Publish lên npm

1. Chuẩn bị

Đảm bảo package.json đã có đầy đủ thông tin:

# Sửa name nếu bị trùng trên npm
# Ví dụ: @your-scope/sshmate

2. Đăng nhập npm

npm login

3. Build và publish

# Dry run để kiểm tra trước
npm publish --dry-run

# Publish thật
npm publish

prepublishOnly sẽ tự động chạy npm run build trước khi publish.

4. Publish với scope (nếu name bị trùng)

// package.json
{
  "name": "@your-scope/sshmate",
  "bin": {
    "sshm": "dist/index.js"
  }
}
npm publish --access public

5. Cập nhật version

npm version patch  # 1.0.0 → 1.0.1
npm version minor  # 1.0.0 → 1.1.0
npm version major  # 1.0.0 → 2.0.0
npm publish

License

ISC