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

rocket-sled

v1.0.3

Published

Test-bed for local Node modules in mobile and IoT environments.

Downloads

5

Readme

RocketSled

RocketSled is a testbed for common and popular Node modules, compatible in Android mobile, IoT and MacOS environments.

Use git clone https://github.com/LeydenWireless/rocket-sled.git to copy the app config and file structure to a sites or other subdirectory, preferably a subdirectory from your OS's user home. The importance of this, and the obvious absence of an NPM project will be clarified in the following narrative.

Precursor

The intent of this project is to use orphaned (no Verizon or ATT, etc...) Android phones in wireless challenged areas, to host Node.js app servers and non-standard microservices. With a Chrome client on top of this, these devices can help first-responders collect remote environmental data in coastal areas, and relay the data to the cloud once wireless connectivity has been re-established. Of course this mobile app server would also be beneficial in a meshed agricultural network, or assist health care workers serving populations in remote locations.

Dev Environment

This mobile dev framework has been deployed and tested on MacOS, Android Linux for mobile (3.10.84 aarch64 and 4.4.13 armv81), with minor modifications to the runtime scripts to resolve compatibility issues.

The preferred terminal emulator for Android phones is Termux, installed from the Google Play app store. Once installed, make sure you give the app full access to memory, including SD card if the permissions for this are separate in your settings. Run the following commands in the Termux terminal emulator to install and upgrade packages on your mobile device:

pkg upgrade
pkg install git
pkg install nano
pkg install perl
pkg install mariadb
pkg install nodejs-lts

Some mobile phones support the latest version of Node, but may experience issues with some less popular modules. To use the latest version of Node instead of Node LTS, change the last line to:

pkg install node

Then clone the project, if you haven't done so already, and install with NPM. For Android mobile installs, use the production flag:

git clone https://github.com/LeydenWireless/rocket-sled
cd rocket-sled
npm install --production

For MacOS installs, use a plain vanilla install without flags:

git clone https://github.com/LeydenWireless/rocket-sled
cd rocket-sled
npm install

Most mobile Android Linux distributions can work with your phone's SD card for this installation, but for better compatibility you should install RocketSled in a subdirectory of Termux home, such as a sites/ subdirectory.

Ignition

To start the app, make sure you run the start script from the rocket-sled/ directory: npm start &

Some debugging messages will display, along with the ip address and port that the server is listening to. If the server can't determine the ip address, it will display as localhost:80 or localhost:8080, depending on what other ports are already in use. Open a new tab in your browser and point it to that.

localhost/form is a test page to upload files. localhost/upload is the success page. You can list the uploaded files in the rocket-sled/uploads directory. If you are running the app on a mobile phone, your camera is an upload source choice, making this an ideal framework for a selfie app.

To stop the app, type: npm stop

App Scripts

The three NPM scripts the app uses are start, stop and preinstall. These scripts modify the search path to find and use global modules, and should only be executed in the scope they were intended for. They are documented in the package.json file, but also here for quick reference:

start:

export NODE_PATH=$(npm root --quiet):$(npm root --quiet -g) && node metaphor.js

stop:

export NODE_PATH=$(npm root --quiet):$(npm root --quiet -g) && node grimm_reaper.js

postinstall (used by npm install):

export NODE_PATH=$(npm root --quiet):$(npm root --quiet -g) && node polymer.js

Utilities

Several utilities are included in package.json; they are:

Bootstrap
blubird
dotenv
Express
node-wifi
Underscore

Static Modules

The dotenv Node module is installed as a static module. That is, the required module files are part of this GitHub project, installed via git clone and not npm install. This of course is not standard practice, but rather an experiment to see what's possile in a mobile Node deployment.

Comments are always welcome. Ping me, Paul Zabin, on LinkedIn.