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

@varlabs/monorun

v0.1.5

Published

A monorepo build system for JavaScript and TypeScript projects.

Readme

@varlabs/monorun

Monorun is a fast, extensible monorepo task runner for JavaScript/TypeScript projects. Inspired by tools like Turborepo and Nx, it brings powerful filtering, dependency-aware task execution, caching, and Docker-optimized pruning — all while staying minimal and fast.

🚀 Features

  • 🧠 Dependency Graph Execution – Tasks run in topological order based on workspace relationships.
  • 🔍 Advanced Filtering – Use name filters, git-diff filters ([main...], [HEAD^1]), and custom logic to scope execution.
  • 📦 Script Expansion – Dependency-aware dependsOn for tasks (supports ^script, package#script, and local script references).
  • ⚙️ Task Configuration – Central monorun.config.ts for custom task definitions.
  • 🪝 Hooks & Caching – Cache task results locally with SQLite. Use hooks in the config file to handle remote caching.
  • 🐳 Prune for Docker – Output a production-ready pruned repo with optional json/ + full/ structure.
  • 🧪 Dry Run Support – Visualize what would run without side effects.
  • 🧩 Custom Output Formats – JSON, YAML, XML, TOML support for outputs like ls.
  • 📁 Smart Workspace Detection – Detects workspace globs from your package manager config (npm, pnpm, yarn, bun).

📦 Usage

Run a task/script:

monorun build

Filter to specific packages:

monorun build --filter=apps/web

Git diff filter:

monorun build --filter='[main...]'

Combine filters:

monorun build --filter=apps/web --filter='[main...branch]'

Dry run:

monorun build --dry-run

List packages:

monorun ls --output json

Graph dependencies:

monorun graph

Prune for deployment:

monorun prune --docker

📦 Configuration (monorun.config.ts or monorun.config.js)

Monorun supports a configuration file named monorun.config.ts or monorun.config.js located at the root of your monorepo.

Example (monorun.config.ts)

import { buildConfig } from '@varlabs/monorun';

export default buildConfig({
  tasks: {
    build: {
      dependsOn: ['^build', 'utils#test', 'lint'], // Run build on all dependencies first, test from utils package, and lint current package
    },
    test: {
      dependsOn: ['^build', 'lint'],
    },
    lint: {},
    'e2e': {
      dependsOn: ['build'],
    },
  },
  hooks: {
    cache: { // Optional hooks for custom cache management
      read: (hash: string) => CacheRow;
      write: (hash: string, ctx: TaskContext) => void;
    }
  }
});

🔧 Features

  • Task Definition: Define reusable named tasks to orchestrate across packages.

  • Dependency Chaining: Use dependsOn to specify task execution order.

  • Microsyntax in dependsOn:

    • ^task: Run task on all dependencies first.
    • package#task: Run task from another package.
    • task: Run task from the same package.
  • Custom Task Names: Define custom task names for better organization.

🧪 Supported Flags

| Flag | Description | |-------------------|-----------------------------------------------| | --filter | Filter packages by name or git diff syntax | | --watch | Re-run tasks on file changes | | --concurrency | Limit concurrency for task execution | | --output | Format output: json, yaml, xml, toml | | --dry-run | Run without executing tasks | | --force | Force run all tasks, even if cached | | --skip-cache | Skip writing to cache | | --docker | Enable Docker-optimized output in prune | | --out-dir | Custom output directory for prune | | --package-manager | Override detected package manager | | --help | Show help information | | --version | Show version information |


📁 Example Structure

monorepo/
├── packages/
│   ├── core/
│   └── utils/
├── apps/
│   └── web/
├── monorun.config.ts
├── package.json
└── .gitignore

📦 Install

npm:

npm install -g @varlabs/monorun

pnpm:

pnpm add -g @varlabs/monorun

yarn:

yarn global add @varlabs/monorun

bun:

bun add -g @varlabs/monorun

Runtime Requirements

  • Node.js 20 or higher
  • Bun 1.2.0 or higher (if using Bun)

🛠️ Future Plans

  • Support for watch mode
  • GitHub Actions integrations
  • Improved speed and performance