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

@nguyenhien2611/master-npm-demo

v1.6.0

Published

Master demo package for learning npm publish with CI/CD

Readme

Master NPM Demo

Dự án mẫu hướng dẫn quy trình đóng gói và xuất bản thư viện Node.js lên GitHub Packages thông qua quy trình CI/CD tự động bằng GitHub Actions.

🚀 Quy trình phát hành phiên bản mới (Release Flow)

Quy trình phát hành hiện tại được thiết kế theo dạng "Bán Tự Động" (Semi-automated): Bạn quyết định khi nào sẽ ra phiên bản mới, còn lại GitHub Actions sẽ tự động hóa việc xuất bản (Publish).

Các bước thực hiện:

  1. Thay đổi mã nguồn (Code) Cập nhật mã nguồn thư viện của bạn và commit.

    git add .
    git commit -m "Thêm tính năng mới"
  2. Đánh dấu phiên bản mới (Bump Version) Thay vì sửa số version trong file package.json bằng tay, hãy sử dụng lệnh npm version để npm tự động tăng số version, tạo commit, và sinh ra một Git Tag mới.

    # Sửa lỗi nhỏ
    npm version patch 
       
    # Thêm tính năng mới (tương thích ngược)
    npm version minor
       
    # Thay đổi lớn (không tương thích ngược)
    npm version major

    Ví dụ: Nếu thư viện đang là 1.0.1, chạy npm version patch sẽ tự động nhảy lên 1.0.2 và tạo tag v1.0.2.

  3. Đẩy mã nguồn và Tag lên GitHub Bạn cần đẩy cả code mới và Tag vừa tạo lên GitHub để kích hoạt con Bot CI/CD.

    git push origin master --tags
  4. Bot CI/CD tự động xuất bản (Publish) Ngay khi GitHub nhận được Tag có định dạng v*.*.*, luồng GitHub Actions (được cấu hình trong .github/workflows/publish.yml) sẽ tự động được kích hoạt:

    • Checkout mã nguồn mới nhất.
    • Setup Node.js và thông tin xác thực Registry (sử dụng GITHUB_TOKEN).
    • Cài đặt dependencies bằng npm ci.
    • Chạy npm publish để đẩy thư viện lên GitHub Packages.

Bạn có thể theo dõi tiến trình chạy và kết quả của Bot trực tiếp tại tab Actions trên repo GitHub của bạn.