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

@icebreakers/changelog-github

v0.1.0

Published

Changesets GitHub changelog formatter for Icebreaker's dev-configs

Downloads

710

Readme

@icebreakers/changelog-github

概述

@icebreakers/changelog-github@changesets/changelog-github 的无缝替代版本。它保留原有的元组写法,却额外提供了我们在 Icebreaker 团队常用的格式优化:支持摘要里的自定义指令、更友好的提交链接,并且自动加载 dotenv,确保本地与 CI 的输出一致。

环境要求

  • Node.js 18+
  • 通过 GITHUB_TOKENGH_TOKEN.env 暴露 GitHub Token

安装

pnpm add -D @changesets/cli @icebreakers/changelog-github

快速开始

.changeset/config.json 中切换 changelog 生成器,并声明仓库地址:

{
  "changelog": [
    "@icebreakers/changelog-github",
    { "repo": "org/repo" }
  ]
}

之后执行 pnpm changeset 即可,生成的 changelog 会使用增强版格式器。

@changesets/changelog-github 的差异

  • 摘要指令:额外识别位于摘要首部的 pr:commit:author: / user:(不区分大小写),用于覆盖 GitHub 拉取的元数据,同时保留正文内容。
  • 短哈希链接:当提供 commit: 指令时,会以短 SHA 生成链接(若同时提供 pr:,会与 PR 链接并列展示),阅读体验更好。
  • 优化的格式:采用简洁的多行布局,仅保留核心元数据,移除冗余的分隔符和标签,提升 GitHub 上的可读性。
  • 自动加载 dotenv:在访问 GitHub API 前调用 dotenv,本地 CLI 与 CI 行为保持一致,无需额外手动引入。
  • 依赖更新板块:列出依赖升级时,会根据变更集补全提交链接,并统一 Markdown 缩进,便于对齐阅读。

其它行为(元组参数、必须提供 repo 选项、基础排版)与上游保持兼容,因此迁移仅需替换包名。

编写变更摘要的技巧

可以借助摘要指令精准控制展示的元数据:

pr: #42
commit: 1234567890abcdef1234567890abcdef12345678
author: @octocat

为 lint preset 新增可选的 `tailwind-config` 配置项

- 接受相对路径指向 `tailwind.config.ts`
- 未设置时默认读取工作区根目录

最终 changelog 会渲染为:

- ✨ **为 lint preset 新增可选的 `tailwind-config` 配置项** [#42] [`1234567`](https://github.com/org/repo/commit/1234567890abcdef1234567890abcdef12345678) by @octocat
  - 接受相对路径指向 `tailwind.config.ts`
  - 未设置时默认读取工作区根目录

GitHub 鉴权

设置具备读取公开仓库权限的 GITHUB_TOKEN(或 GH_TOKEN)。本地开发时可放在 .env 中;由于格式器会自动执行 dotenv/config,无需额外配置。

常见问题

  • 缺少 repo 报错:确认元组里包含 org/repo 字符串,缺失时格式器会立即抛错。
  • 元数据为空:检查 GitHub Token 是否生效,以及提交 / PR 是否存在于对应仓库。
  • 摘要指令未生效:指令需要放在摘要最顶部,并且每行单独书写;正文内容必须位于指令之后。