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

nodejs-node-red-1

v1.0.6

Published

NodeJS REST API server for receiving user imports and storing the user data in CSV.

Readme

NodeJS <--> Node-RED

Required software:

  • NodeJS - tested on (v14.20.0)

  • NPM - tested on (v9.4.1)

  • Node-RED - tested on (v2.2.2)

  • Extra software Postman for the API endpoint testing.

NodeJS server

The servers source code is located in te nodeJS-server folder.
The Node JS server is built by using the expressJS extension. The main objective of the REST API server is to provide three API endpoints.

Server Parameters

  • protocol: HTTP
  • IP address: 127.0.0.1 or localhost
  • port: 8081

Endpoints

Postman collection

  • GET - /getUsers - The endpoint returns all users stored in the nodeJS-server/users.csv file.
    The stored users will be in the response body in the following content:
{
  "users": [
    {
      "userName": "Radvanyi Matyas",
      "email": "  [email protected]",
      "address": "  Rohovce 49 93030",
      "creationTimestamp": "  7574861c3ec89941"
    }
  ]
}
  • GET - /getUser?userName=<userName> - The endpoint will return information about the user specified in the Query parameter. In case the user is not stored in the CSV file it will return an empty JSON.
    Example response body:
{
    "userName": "Radvanyi Matyas",
    "email": "  [email protected]",
    "address": "  Rohovce 49 93030",
    "creationTimestamp": "  7574861c3ec89941"
}
  • POST - /postUsers
    The /postUsers endpoints purpose is to enable insert of users ot a CSV file which the server controls. The usersData is passed in the requests body. Example input data:
{
  "users":
  [
    {
      "userName":"Radvanyi Matyas",
      "email":"[email protected]",
      "address": "Rohovce 49 93030",
      "creationTimestamp": "7574861c3ec89941"
    },
    {
      "userName":"Radvanyi Tamas",
      "email":"[email protected]",
      "address": "Rohovce 44 93030",
      "creationTimestamp": "7574861c3ec89941"
    }
  ]
}

Installation

Clone the repository:

git clone [email protected]:Mradvanyi123/NodeJS-Node-RED.git

Install packages in the directory NodeJS-Node-RED/node-JS-server/.

npm install

Start server in the directory NodeJS-Node-RED/node-JS-server/.

npm start

Or install the server with npm

npm i nodejs-node-red-1

Usage:

const APIserver=require('nodejs-node-red-1')