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

deploylify

v1.0.1

Published

A CLI tool for automated CI/CD deployments to AWS EC2 via GitHub Actions

Downloads

2

Readme

Deploylify

A CLI tool that helps developers to set up automated deployment of services to AWS EC2 instances via GitHub Actions.

Features

  • Simple configuration file for deployment settings
  • Automatic GitHub Actions workflow generation
  • Support for Node.js and Docker projects
  • Secure deployment using SSH keys
  • Zero-config deployment process
  • Secure environment variable handling via GitHub secrets

Installation

npm install -g deploylify

Usage

  1. Initialize a new configuration:
deploylify init

This will create a deploy.json file with your deployment settings.

  1. Generate the GitHub Actions workflow:
deploylify generate

This creates the .github/workflows/deploy.yml file that handles the automated deployment.

  1. Add required secrets to your GitHub repository:

    Learn how to add secrets to your repository

    Required secrets:

    • EC2_HOST: Your EC2 instance's public DNS or IP
    • EC2_USER: SSH user (usually 'ubuntu')
    • EC2_KEY: Base64-encoded SSH private key (how to create and encode SSH keys)
      # Generate SSH key
      ssh-keygen -t rsa -b 4096 -C "[email protected]" -f ./deploy_key
           
      # Base64 encode the private key (the content will be your EC2_KEY secret)
      cat deploy_key | base64
           
      # Copy the public key to your EC2 instance's authorized_keys
      cat deploy_key.pub >> ~/.ssh/authorized_keys
    • EC2_DEPLOY_PATH: Path on EC2 where code will be deployed
    • Each variable listed in your config's private array
  2. Push your code to trigger the deployment:

git add .
git commit -m "Setup CI/CD with deploylify"
git push

Prerequisites

Before using deploylify, ensure you have:

  1. An AWS EC2 instance running:

  2. Required software on your EC2 instance:

  3. GitHub repository with:

Configuration

The cicd.config.json file supports the following options:

{
  "type": "node",             // "node" or "docker"
  "build": "npm run build",   // Optional build command
  "test": "npm test",        // Optional test command
  "deployBranch": "main",    // Branch that triggers deployment
  "ec2": {
    "host": "ec2-xx-xx.amazonaws.com",  // Used for local testing
    "user": "ubuntu",                   // Used for local testing
    "deployPath": "/home/ubuntu/app"    // Where to deploy on EC2
  },
  "env": {                    // Optional environment configuration
    "general": {              // Non-sensitive environment variables
      "NODE_ENV": "production",
      "PORT": "3000",
      "LOG_LEVEL": "info"
    },
    "private": [             // Names of sensitive environment variables
      "DATABASE_URL",        // Each name must match a GitHub secret
      "API_KEY",
      "JWT_SECRET"
    ]
  }
}

Note: SSH authentication is handled entirely through the EC2_KEY GitHub secret, not through local SSH keys. This ensures better security and easier setup across different development machines.

Environment Variables

deploylify supports two types of environment variables:

1. General Environment Variables

These are non-sensitive variables that can be directly specified in your cicd.config.json:

"env": {
  "general": {
    "NODE_ENV": "production",
    "PORT": "3000",
    "LOG_LEVEL": "info"
  }
}

2. Private Environment Variables

These are sensitive variables that are stored securely as individual GitHub secrets:

  1. List the private variable names in your config:
"env": {
  "private": ["DATABASE_URL", "API_KEY", "JWT_SECRET"]
}
  1. Add each variable as a separate GitHub secret:

Docker Support

For Docker projects ("type": "docker"), ensure you have:

  1. A valid Dockerfile in your project root

  2. Docker installed on your EC2 instance:

    # Install Docker on Ubuntu
    curl -fsSL https://get.docker.com -o get-docker.sh
    sudo sh get-docker.sh
       
    # Add your user to docker group (requires re-login)
    sudo usermod -aG docker $USER

    Full Docker installation guide

  3. Proper permissions to run Docker commands:

Security Best Practices

  1. EC2 Security:

  2. GitHub Actions Security:

  3. Docker Security:

Troubleshooting

Common issues and solutions:

  1. SSH Connection Issues:

  2. Docker Issues:

  3. GitHub Actions Issues:

License

MIT