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

redep

v2.1.3

Published

Remote execution CLI for deployment

Downloads

598

Readme

redep (Remote Deployment Tool)

A secure, streaming deployment tool for Node.js and Docker environments. Real-time logs, multi-server support, and secure execution.

npm version Docker Pulls License Build Status

📖 Project Overview

redep is a lightweight, secure Command Line Interface (CLI) designed to simplify remote deployment workflows. It solves the problem of "blind deployments" by establishing a real-time WebSocket connection between your local machine (or CI/CD runner) and your remote servers.

Key Features

  • 📺 Real-time Streaming: Watch your deployment logs (stdout/stderr) stream live to your terminal.
  • 🔒 Secure: Uses Token-based authentication and strictly isolated command execution.
  • ⚡ Multi-Server: Manage multiple environments (Development, UAT, Production) from a single config.
  • 🐳 Docker Ready: Comes with a production-ready Docker image for instant server setup.
  • 🛠️ Flexible: Execute any command you define (docker compose, kubectl, shell scripts, etc.).

🚀 Installation

npm Package (Client & Server)

Install globally to use the CLI on your local machine or server.

npm install -g redep

Docker Image (Server Only)

Pull the official image for running the server component.

docker pull nafies1/redep:latest

📖 Usage Guide

1. Setting up the Server

The server is the agent that runs on your remote machine and executes the deployment commands.

Option A: Using Docker (Recommended)

Linux / macOS (Bash):

docker run -d \
  --name redep-server \
  --restart always \
  -p 3000:3000 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v $(pwd):/app/workspace \
  -e SECRET_KEY=your-super-secret-key \
  -e WORKING_DIR=/app/workspace \
  -e DEPLOYMENT_COMMAND="docker compose pull && docker compose up -d" \
  nafies1/redep:latest

Windows (PowerShell):

docker run -d `
  --name redep-server `
  --restart always `
  -p 3000:3000 `
  -v /var/run/docker.sock:/var/run/docker.sock `
  -v ${PWD}:/app/workspace `
  -e SECRET_KEY=your-super-secret-key `
  -e WORKING_DIR=/app/workspace `
  -e DEPLOYMENT_COMMAND="docker compose pull && docker compose up -d" `
  nafies1/redep:latest

Option B: Using npm & PM2

# Initialize configuration
redep init server
# Follow the prompts to set port, working dir, and secret key

# Start the server
redep start

2. Setting up the Client

The client runs on your local machine or CI pipeline.

# Initialize a server profile
redep init client
# ? Enter Server Name: prod
# ? Enter Server URL (Host): http://your-server-ip:3000
# ? Enter Secret Key: your-super-secret-key

3. Deploying

Trigger a deployment to your configured server.

redep deploy prod

You will see:

(INFO) Connecting to http://your-server-ip:3000...
(SUCCESS) Connected to server. requesting deployment...
(INFO) [10:00:01 AM] Status: Deployment Started
(INFO) [10:00:02 AM] [STDOUT] Pulling images...
(INFO) [10:00:05 AM] [STDOUT] Container recreated.
(SUCCESS) [10:00:06 AM] Status: Deployment Completed

⚙️ Configuration

redep uses a hierarchical configuration system:

  1. Environment Variables (Highest Priority)
  2. Config File (Managed via CLI)

See Advanced Configuration for full details on environment variables and config management.


💻 Development Setup

Prerequisites

  • Node.js >= 18
  • Docker (for testing container builds)

Local Development

  1. Clone the repository:

    git clone https://github.com/nafies1/redep.git
    cd redep
  2. Install dependencies:

    npm install
  3. Link globally (optional):

    npm link
  4. Run tests: Currently, we rely on manual verification using the test-target directory.

    # Start server
    npm run start -- listen

🔄 CI/CD Pipeline

This project uses GitHub Actions for automation:

  • Build & Push Docker Image: Triggered on new release tags. Pushes to Docker Hub.
  • Publish npm Package: Triggered on new release tags. Publishes to npm registry.

See .github/workflows/ci-cd.yml for details.


📚 Additional Documentation


📄 License

This project is licensed under the ISC License.