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

monorepo-switcher

v1.0.1

Published

Intelligent CLI for fast monorepo workspace switching

Readme

monorepo-switcher

Intelligent CLI for fast monorepo workspace switching with context awareness and smart discovery.

Features

  • 🔍 Fast Discovery: Instantly list all packages in your monorepo
  • 🎯 Smart Switching: Quickly navigate between packages with intelligent completion
  • 📊 Context Awareness: See git status and recent activity for each package
  • 🕐 Session Persistence: Remember your workspace context across terminal sessions
  • 🔧 Framework Detection: Auto-detect package types (React, Node.js, Next.js, etc.)
  • 🎨 Rich UI: Beautiful terminal output with colors and icons

Installation

npm install -g monorepo-switcher

Usage

List all packages

monorepo-switcher list
# or
monorepo-switcher ls

Switch to a specific package

monorepo-switcher switch backend
# or
monorepo-switcher s backend

Show recently used packages

monorepo-switcher recent

Filter packages

# Show only recently used packages
monorepo-switcher list --recent

# Show only packages with uncommitted changes
monorepo-switcher list --dirty

# Filter by package type
monorepo-switcher list --type react

Generate shell completion

# For bash
monorepo-switcher completion --shell bash

# For zsh
monorepo-switcher completion --shell zsh

Examples

Basic usage

$ monorepo-switcher

📦 Monorepo: /Users/dev/my-project (12 packages)

🎯 RECENTLY USED:
├── backend/          ⚠️ 2 files modified
├── frontend/        ✅ clean
└── shared/          🔥 5 files modified (active)

🔍 ALL PACKAGES:
├── backend/ (Node.js) - REST API service
├── frontend/ (React) - Web UI  
├── shared/ (TypeScript) - Common utilities
├── admin/ (React) - Admin dashboard
├── mobile/ (React Native) - Mobile app
└── docs/ (Markdown) - Project documentation

Switch to package: backend

Quick switching

$ monorepo-switcher backend

🚀 Switching to package: backend
📁 Path: /Users/dev/my-project/packages/backend

💡 To navigate to this package, run: cd "/Users/dev/my-project/packages/backend"
✅ Directory change recorded. You can now navigate to: /Users/dev/my-project/packages/backend

Requirements

  • Node.js >= 18.0.0
  • Git (for git status detection)

Supported Monorepo Structures

monorepo-switcher automatically detects packages in common monorepo layouts:

my-project/
├── packages/
│   ├── backend/
│   ├── frontend/
│   └── shared/
├── apps/
│   ├── web/
│   └── mobile/
├── libs/
│   ├── ui/
│   └── utils/
└── workspaces/
    ├── admin/
    └── api/

Package Detection

The tool automatically detects package types based on dependencies:

  • Node.js: Express, Koa, Hapi, or other Node.js frameworks
  • React: React and React DOM dependencies
  • Next.js: React + Next.js dependencies
  • React Native: React Native dependencies
  • Docs: Docusaurus, Docsify, VuePress, or other documentation tools
  • Unknown: Unrecognized package types

Configuration

monorepo-switcher is designed to work out of the box with zero configuration. However, you can customize its behavior by creating a .monorepo-switcher.json file in your monorepo root:

{
  "packagePatterns": ["packages", "apps", "libs", "workspaces"],
  "excludePatterns": ["**/node_modules/**", "**/.git/**"],
  "maxDepth": 3
}

Development

# Clone the repository
git clone https://github.com/quadbyte/monorepo-switcher.git
cd monorepo-switcher

# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm test

# Run in development mode
npm run dev

License

MIT - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for new functionality
  5. Run the test suite
  6. Submit a pull request

Roadmap

  • [ ] Fuzzy search for package names
  • [ ] Integration with VS Code
  • [ ] Package dependency visualization
  • [ ] Session persistence across terminal restarts
  • [ ] Configuration file customization
  • [ ] Integration with popular monorepo tools (Turbo, Nx)

Support

If you encounter any issues or have questions, please file an issue.