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

navnode

v1.3.5

Published

Universal deployment and automation tool.

Downloads

18

Readme

Navnode: Universal Deployment and Automation Tool

Introduction

Navnode is an advanced deployment and automation tool designed to simplify the management of tasks in remote servers or local environments. Unlike traditional tools such as Capistrano or Fabric, Navnode provides an intuitive and flexible solution for deploying applications and automating various tasks with ease.

Key Features

Navnode offers a set of powerful features to enhance your deployment and automation workflow:

  • Customizable Tasks: Write your tasks in JavaScript, giving you the flexibility to tailor your automation to specific needs.

  • Built-in Commands: Define tasks using pre-built commands or create custom commands for maximum flexibility.

Getting Started

To start using Navnode, follow these simple steps:

  1. Install Navnode globally using npm:

    npm install -g navnode
  2. Create a deployment configuration file, typically named navnode-deployment.js, and and define your deployment environment and tasks.

Example deployment file (navnode-deployment.js, the example file is in the example folder):

// Define deployment environments
const environments = {
  staging: {
    user: "root",
    server: "test.com", // Or use the IP of the server.
    path: "/home/example/web/example.com/public_html",
  },
};

const tasks = {
  staging_deploy: {
    task: [
      "git fetch --tags",
      "git status",
      "git pull",
      "notifyDeployment --navnode_extend",
    ],
  },
};

const extend = {
  notifyDeployment: () => {
    console.log("Console log from the extend function.");
  },
};

exports.extend = extend;
exports.environments = environments;
exports.tasks = tasks;
  1. Run Navnode from the command line using the following syntax:

    navnode <environment>:<task>

    For example, to check the status of your staging environment, use:

    navnode staging:staging_deploy

Navnode empowers you to streamline deployment and automation processes, making project management more efficient.

Note: When defining custom commands, ensure the extend object is exported as well.

Explore the possibilities with Navnode and take control of your deployment and automation tasks like a professional.

Built-in commands:

Navnode enhances automation with additional commands, making it accessible for everyone. Here is a list of commands and instructions on how to use them:

Initialization

To set up a new Navnode project, use the following command:

navnode init

This command automates the creation of a boilerplate navnode-deployment.js file, providing you with a starting point for defining deployment environments and tasks. Streamline your project setup process with Navnode's initialization command.

Rsync Pull Command

navnode <environment>:rsync_pull file_path
  • <environment>: Specify the deployment environment.
  • file_path: Provide the path of the file or folder on the remote server.

Example:

navnode staging:rsync_pull /example/test.js

This command will rsync the specified file (test.js) from the staging environment to your local machine.

Rsync Push Command

Use the following command to synchronize files or folders from your local environment to the remote server:

navnode <environment>:rsync_push file_path
  • <environment>: Specify the deployment environment.
  • file_path: Provide the path of the file or folder on the remote server.

Example:

navnode staging:rsync_push /example/test.js

This command will rsync the specified file (test.js) from your local machine to the staging environment on the remote server.

These commands empower users to efficiently manage file synchronization between local and remote environments, enhancing the versatility of Navnode for automation.