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

awspm-cli

v1.0.2

Published

AWS Profile Manager with interactive CLI - Switch AWS profiles easily with a beautiful interface

Readme

AWS Profile Manager CLI

Banner

Switch AWS profiles easily with a beautiful interactive terminal interface

npm version License: MIT

🚀 Features

  • Interactive Interface: Beautiful terminal UI for profile selection
  • Easy Switching: Switch between AWS profiles with just a few keystrokes
  • Profile Management: Automatically detects your AWS profiles from ~/.aws/config
  • Session Persistence: Maintains profile selection within your current terminal session
  • Cross-Platform: Works on macOS, Linux, and Windows(WSL or Git Bash)

📦 Installation

Install globally via npm:

npm install -g awspm-cli

🎯 Quick Start

After installation, you can run the AWS Profile Manager:

awspm

However, for the profile changes to persist in your current terminal session, you need to source the command:

source awspm

⚙️ Setup for Better Experience

For the best experience, add an alias to your shell configuration file so profile changes persist in your current session.

🚀 Automatic Setup (Recommended)

Use the included installation script that automatically detects your shell and adds the necessary alias:

./install.sh

The script will:

  • ✅ Detect if you're using zsh or bash
  • ✅ Check if awspm is properly installed
  • ✅ Verify if the alias already exists
  • ✅ Add the alias to the appropriate config file (~/.zshrc, ~/.bashrc, or ~/.bash_profile)

📝 Manual Setup

Alternatively, you can manually add the alias:

For Zsh users (~/.zshrc)

echo "alias awspm='source awspm'" >> ~/.zshrc
source ~/.zshrc

For Bash users (~/.bashrc or ~/.bash_profile)

echo "alias awspm='source awspm'" >> ~/.bashrc
source ~/.bashrc

After setting up the alias, you can simply run:

awspm

And the profile changes will automatically apply to your current terminal session.

🖥️ Interface

CLI Interface

🔧 How It Works

  1. Profile Detection: Automatically reads your AWS profiles from ~/.aws/config
  2. Interactive Selection: Presents a beautiful terminal interface for profile selection
  3. Environment Setup: Sets the AWS_PROFILE environment variable for your selected profile
  4. Session Management: Maintains the selected profile for your current terminal session

📋 Requirements

  • Node.js >= 14.0.0
  • Existing AWS profiles configured in ~/.aws/config

🛠️ AWS Profile Setup

If you haven't set up AWS profiles yet, you can create them using:

aws configure --profile your-profile-name

Or manually edit ~/.aws/config:

[default]
region = us-east-1

[profile development]
region = us-west-2

[profile production]
region = us-east-1

🚦 Usage Examples

Basic Usage

# Run the profile selector
awspm

# Verify current profile
echo $AWS_PROFILE

# Use AWS CLI with selected profile
aws s3 ls

With Alias (Recommended)

# After setting up the alias
awspm  # Select profile and apply changes automatically

# Continue using AWS CLI
aws ec2 describe-instances

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Links

⭐ Show Your Support

Give a ⭐️ if this project helped you!


Made with ❤️ by Seymourdev