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

ws-root-changelog

v3.0.9

Published

Generate a root CHANGELOG.md with links to all workspace package changelogs

Readme

ws-root-changelog

Generate a root CHANGELOG.md with links to all workspace package changelogs.

Features

  • Table of Contents: Creates a centralized changelog index for monorepos
  • Package Icons: 🔒 for private packages, 🌏 for public packages
  • Quick Navigation: Direct links to each package's changelog
  • CLI Tool: Easy-to-use command line interface
  • Sync/Async API: Both synchronous and asynchronous functions available

Install

# Using yarn
yarn add ws-root-changelog

# Using yarn-tool
yarn-tool add ws-root-changelog

# Using yt (alias)
yt add ws-root-changelog

CLI Usage

# Generate root changelog in current directory
ws-root-changelog

# Generate for specific directory
ws-root-changelog /path/to/workspace

API Usage

Create Root Changelog

import { createWorkspacesRootChangelog, outputWorkspacesRootChangelog } from 'ws-root-changelog';

// Generate markdown content
const markdown = createWorkspacesRootChangelog(process.cwd());
console.log(markdown);

// Output to file (sync)
const result = outputWorkspacesRootChangelog(process.cwd());
console.log(`Created: ${result.file}`);

// Output to file (async)
const result = await outputWorkspacesRootChangelogAsync(process.cwd());

List Package Changelogs

import { listChangelog } from 'ws-root-changelog';

const links = listChangelog(process.cwd());
// Returns: ['* 🔒 [`@scope/private-pkg`](./packages/private/CHANGELOG.md) *packages/private*', ...]

Get Changelog Path

import { getWorkspacesRootChangelogPath } from 'ws-root-changelog';

const path = getWorkspacesRootChangelogPath(process.cwd(), './CHANGELOG.md');

Output Example

Generated CHANGELOG.md:

# Change Log

Please see the individual package changelogs for what's new:

* 🔒 [`@scope/private-pkg`](./packages/private/CHANGELOG.md "packages/private") *packages/private*
* 🌏 [`public-pkg`](./packages/public/CHANGELOG.md "packages/public") *packages/public*
* 🌏 [`ws-root-changelog`](./packages/ws-root-changelog/CHANGELOG.md "packages/ws-root-changelog") *packages/ws-root-changelog*

API Reference

Functions

| Function | Description | Returns | |----------|-------------|---------| | createWorkspacesRootChangelog(cwd?) | Generate markdown content | string | | outputWorkspacesRootChangelog(cwd?, filename?) | Write to file (sync) | { file, md } | | outputWorkspacesRootChangelogAsync(cwd?, filename?) | Write to file (async) | Promise<{ file, md }> | | listChangelog(cwd) | Get list of markdown links | string[] | | getWorkspacesRootChangelogPath(cwd?, filename?) | Get file path | string |

Icons

| Icon | Meaning | |------|---------| | 🔒 | Private package | | 🌏 | Public package |

Use Cases

CI/CD Integration

# Update root changelog before release
ws-root-changelog

git add CHANGELOG.md
git commit -m "docs: update root changelog"

Pre-release Hook

{
  "scripts": {
    "prerelease": "ws-root-changelog && git add CHANGELOG.md"
  }
}

Related

License

ISC