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

@vonage/monowatch

v0.0.7

Published

watch your monorepo with joy!

Readme

What is Monowatch?

Monowatch is a basic file watcher/npm runner made especially for use with monorepos hosting NPM packages.

How it works

  • It automatically detects:
    • Yarn/Npm CLIs
    • Repository root
    • Yarn workspaces and Lerna packages
  • Ignores unaltered files.
  • Runs dependant packages builds concurrently.

Installation

To install monowatch, run

npm i -g @vonage/monowatch

Notice: This package is only available through our private Github repository atm.

Then just run

monowatch

anywhere within your monorepo (don't worry, it will detect your project root and packages automatically)

Usage

Monowatch comes pre-configured (batteries included) to watch for changes in Typescript Sass and Less code files and launch the build script. Simply run:

monowatch

from anywhere within your monorepo to get it started and ready for battle!

Configuration

Monowatch supports three configuration methods:

  1. Command line arguments
  2. .monowatch file (in each package)
  3. monowatch.json file (in monorepo root)

The configuration is applied in the order mentioned above, meaning that a command line argument will always take precedence over configuration that is applied in a configuration file etc.

monowatch.json

This file should be positioned at the root of your monorepo to setup Monowatch configuration.

Configuration Fields

script

Sets which npm script to run in each package. Defaults to build.

watch

A list of glob strings, defining which files to watch in each package.

ignore

A list of glob string to exclude from files selected with watch

include_dependants

Sets whether a change in a specific package will trigger all dependant packages as well. Defaults to false.

abort_on_errors

Sets Monowatch to abort the build process upon errors (applicable in case include_dependants has been set). Defaults to true.

npm_cli

Sets which NPM client Monowatch should use. If not defined, Monowatch will try to detect the correct client according to hints.

packages

A hash map that can be used to override configuration settings for a specific package. For instance:

{ 
  "watch": "*.ts",
  "script" : "build",
  "packages": {
    "@myuser/my-script-name": {
      "watch": "*.scss",
      "script": "my-custom-build"
    }    
  }
}

Will watch *.ts in all packages except @myuser/my-script-name where *.scss. Similarly, changes in any package will trigger the build script, except for @myuser/my-script-name where my-script-build will be launched.

Usage samples

This configuration will listen to changes on .ts and .scss files excluding files ending with *.css.ts, *.autogenerated.*, *.d.ts

{
  "watch": ["**/*.ts", "**/*.scss"],
  "ignore": ["**/*.d.ts", "**/*.css.ts", "**/*.autogenerated.*"],
  "include_dependants": true,
  "abort_on_errors": true
}

Command line arguments

You can pass any of following fields as command line arguments to override any general configuration file field:

include-dependants (overrides "include_dependants"), npm-script (overrides "script"), abort-on-errors (overrides "abort_on_errors"), npm-client (overrides "client"), watch (overrides "watch"), ignore (overrides "ignore") The following additional arguments are also available:

project-root

Set the monorepo's root folder (it usually being detected automatically)

output-format

Determines what the watcher will output:

  • human - Will display human-friendly progress indication.
  • debug - Will output a JSON line stream containing rich debug information.