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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@simbo/monorepo-packages-list

v1.1.3

Published

A utility library that generates a list of monorepo packages with metadata.

Readme

Monorepo Packages List

📦 @simbo/monorepo-packages-list

A utility library that generates a list of monorepo packages with metadata.

It works with npm and pnpm workspaces and is built on top of @simbo/monorepo-utils.

See @simbo/monorepo-packages-list-cli for the corresponding CLI.

Features

  • Collects workspace metadata from npm or pnpm monorepos

  • Fully customizable output via templates and hooks

  • Supports filtering, sorting, and URL generation for each package

  • Handles inserting content before and after the list for complete page sections

  • Async, Promise-based API

  • Fully typed with TypeScript

Installation

Install @simbo/monorepo-packages-list from the npm registry:

npm i [-D] @simbo/monorepo-packages-list

Usage

monorepoPackagesList() uses metadata from your monorepo and returns a Markdown list as string.

🎨 The output can be completely customized.

For a complete API reference, see the documentation.

Examples

Basic Usage

Assume you have two packages in your monorepo: @scope/pkg-a and @scope/pkg-b

import { monorepoPackagesList } from '@simbo/monorepo-packages-list';

const list = await monorepoPackagesList();

console.log(list);

Produces:

There are currently _**2**_ packages managed in this repository:

- 📂 **`pkg-a`**
  - **Package A**

    > A sample package

    📦 `@scope/pkg-a` @ `1.2.3`

- 📂 **`pkg-b`**
  - **Package B**

    > Another sample package

    📦 `@scope/pkg-b` @ `3.2.1`

Custom URLs

You can provide URL functions via the templateData option:

import {
  monorepoPackagesList,
  type WorkspaceMetadata,
} from '@simbo/monorepo-packages-list';

const list = await monorepoPackagesList({
  templateData: {
    repoUrlFn: (workspace: WorkspaceMetadata) =>
      `https://github.com/user/repo/tree/main/${workspace.relativePath}/`,
    packageUrlFn: (workspace: WorkspaceMetadata) =>
      `https://www.npmjs.com/package/${workspace.name}`,
    docsUrlFn: (workspace: WorkspaceMetadata) =>
      `https://user.github.io/repo/modules/${workspace.name.replaceAll(/[^\da-z-]/gi, '_')}`,
    readmeUrlFn: (workspace: WorkspaceMetadata) =>
      `https://github.com/user/repo/blob/main/${workspace.relativePath}/README.md`,
    changelogUrlFn: (workspace: WorkspaceMetadata) =>
      `https://github.com/user/repo/blob/main/${workspace.relativePath}/CHANGELOG.md`,
  },
});

Produces a list with clickable links:

There are currently _**2**_ packages managed in this repository:

- 📂 [**`pkg-a`**](https://github.com/user/repo/tree/main/packages/pkg-a/)
  - **Package A**

    > A sample package

    📦 [`@scope/pkg-a`](https://www.npmjs.com/package/@scope/pkg-a) @ `1.2.3`

    [README.md](https://github.com/user/repo/blob/main/packages/pkg-a/README.md)  • 
    [CHANGELOG.md](https://github.com/user/repo/blob/main/packages/pkg-a/CHANGELOG.md)  • 
    [Documentation](https://user.github.io/repo/modules/_scope_pkg-a)

- 📂 [**`pkg-b`**](https://github.com/user/repo/tree/main/packages/pkg-b/)
  - **Package B**

    > Another sample package

    📦 [`@scope/pkg-b`](https://www.npmjs.com/package/@scope/pkg-b) @ `3.2.1`

    [README.md](https://github.com/user/repo/blob/main/packages/pkg-b/README.md)  • 
    [CHANGELOG.md](https://github.com/user/repo/blob/main/packages/pkg-b/CHANGELOG.md)  • 
    [Documentation](https://user.github.io/repo/modules/_scope_pkg-b)

Related Packages

License

MIT © Simon Lepel