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

radish34-messenger-service

v1.0.3

Published

REST Based API microservice for sending and receiving structured JSON messages delivered via Whisper

Downloads

4

Readme


title: Messenger Service component description: Detailed explanation of the messaging service components of the Radish34 implementation

Messenger Service component

What is here?

This service sends and receives messages using Whisper. The messenger service connects to a running, Whisper-enabled geth client via websocket. A Whisper network must be created by peering each Radish system for message delivery

How does this fit in to Radish?

The messenger service fulfills the requirement of decentralized private messaging between Radish network participants. Each party that runs a Radish system (and the Baseline protocol) needs to send private data to each other. In the supply chain use case this private data is in the form of requests for proposals (RFPs), Service Contracts (MSAs), Purchase Orders, and secret keys/hashes used in the ZKP generation or verification processes. Also, this service adds message delivery receipts and durability to the messages by storing them locally.

How can I run it?

Requirements

NodeJS v12

Running the service

The service comes up along with all the other services needed to run Radish from the docker-compose file. For the Radish POC app there are two instances that spin up, one for the buyer and one for the supplier. To run the service on it's own, you need the following supporting services:

  • mongo
  • redis
  • geth client
  • ethereum network with Whisper-enabled nodes

API, Unit Testing

  1. Make sure you have all of the necessary npm packages in ./node_modules
npm install
  1. Build/run the ancillary services needed to run unit tests and test the REST API.
npm run deploy:up
  1. Start the messenger service in the test env
npm run start:test
  1. Run the tests
npm test

Troubleshooting

If you get errors when running steps 1 or 3 above, please ensure that you are running node version 12.16. The nvm (node version manager) tool allows you to easily switch between versions:

nvm install 12.16
nvm use 12.16

What is the architecture?

How can this be improved?