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

project-switcher-cli

v2.0.2

Published

A simple and efficient CLI tool for quickly navigating and opening your development projects

Readme

Project Switcher (ps)

A simple and efficient CLI tool for quickly navigating and opening your development projects. No more cd-ing through multiple directories or remembering complex folder paths!

🚀 Features

  • Quick Project Access: Open any project with a simple command
  • Smart Project Discovery: Automatically finds projects in your base folder
  • Interactive UI: Browse projects with an intuitive interface
  • Flexible Opening: Open projects by name, index, or browse anywhere
  • One-time Setup: Configure once, use everywhere

📦 Installation

npm install -g project-switcher-cli

Or if you prefer using it locally:

npm install project-switcher-cli
npx ps

🛠️ Setup

Before using the tool, you need to set your base project folder:

ps set

This will prompt you to select the folder where your projects are located. The tool will create a config.json file to remember this setting.

📋 Commands

ps set

Configure or change your base project folder.

ps set

ps list

Display all projects in your base folder and select one to open.

ps list

ps open <project>

Open a specific project by name or index.

# Open by project name
ps open my-awesome-project

# Open by index (from list command)
ps open 3

ps openui [folder]

Browse and open projects within your base folder using an interactive UI.

# Browse base folder
ps openui

# Browse specific subfolder
ps openui subfolder-name

ps openany

Browse and open any folder on your system (not limited to base folder).

ps openany

ps --version [format]

Display version information.

ps --version

🗂️ Configuration

The tool stores its configuration in a config.json file located in the same directory as the executable. The configuration includes:

{
	"baseFolder": "/path/to/your/projects"
}

📁 Project Structure

Your projects should be organized in a base folder like this:

Projects/
├── web-app-1/
├── mobile-app/
├── api-server/
└── personal-website/

🔧 Usage Examples

# First-time setup
ps set

# List all projects and select one
ps list

# Quickly open a known project
ps open web-app-1

# Browse projects interactively
ps openui

# Open a project in a subfolder
ps openui mobile

# Browse any folder on your system
ps openany

⚡ Quick Tips

  1. Auto-setup: If you haven't configured a base folder, the tool will automatically prompt you to set one
  2. Tab completion: Use tab completion with project names for faster access
  3. Index shortcuts: Remember project indices from ps list for super-quick access
  4. Subfolders: Use ps openui <subfolder> to navigate organized project hierarchies

🐛 Troubleshooting

"Base folder is not set or invalid"

This means your configured base folder doesn't exist or hasn't been set. Run ps set to reconfigure.

Command not found

Make sure the package is installed globally (npm install -g project-switcher-cli) or use npx ps if installed locally.

Projects not showing up

Verify that your base folder is correctly set and contains the expected project directories.

🤝 Contributing

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.

📄 License

MIT License - see LICENSE file for details.


Happy coding! 🎉