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 🙏

© 2024 – Pkg Stats / Ryan Hefner

rexec

v0.1.0

Published

Remote process execution and virtualization.

Downloads

5

Readme

rex

Rex is a tool for Linux machines to remotely execute processes in a virtual environment using your local machine's file system.

Installation

$ npm install -g rex

Usage

$ rex --remote_host=user@hostname:port [--tunnel_port=7265] "--command=ls -l /"

Setup

Rex uses SSH for it's communication between machines; each machine must be able to access eachother via public/private keys in order to function.

Remote config

The remote machine will need to have an account you can authorize as, and it will also need to be able to authorize back to your account/machine in order to perform file i/o.

If an account already exists on the remote machine that you'd like to use, please skip ahead. However, if you don't, then you'll need to create one:

$ useradd remote_rex_user

Next, switch to the new user and generate a pair of keys for authentication like so:

$ sudo -u remote_rex_user -s
$ ssh-keygen

Now, copy the new public key back to your original machine so that rex can connect back without a password:

$ ssh-copy-id youraccount@yourmachine

Finally, since rex needs to run with elevated privileges in order to setup the virtual environment, you'll need to add this new user to your sudoers list:

$ echo remote_rex_user ALL=PASSWD: ALL, NOPASSWD: /usr/local/bin/rex >> /etc/sudoers

Local config

To configure your account on your local machine, you'll need to also generate a pair of keys:

$ ssh-keygen

And then, you need to copy your public key to the remote user you created on the remote machine so rex can connect without a password:

$ ssh-copy-id remote_rex_user@remotemachine