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

node-red-contrib-wsrr

v0.0.2

Published

WSRR nodes for Node-RED

Downloads

5

Readme

node-red-contrib-wsrr

Sample code showing how to create nodes for Node-RED to connect to a WebSphere Service Registry and Repository (WSRR) server over HTTPS, to do a query, or perform an SLA check and retrieve endpoints.

Installation

npm install -g node-red-contrib-wsrr

Nodes

3 sample nodes are provided.

wsrr-config

Provides configuration for a WSRR server to the other nodes.

wsrr-graph-query

Run a graph query against WSRR, the results are stored on the message as a wsrrResults property.

wsrr-sla-check

Use this node to find all of the service endpoints associated with a particular SLA relationship.

Consumer ID is the consumer identifier on the consuming Version. Context ID is the context identifier on the consuming SLA. Endpoint Classification is the classification that must be present on the endpoint, the default is the classification for Production endpoints.

The results are stored on the message as a wsrrResults property. The first endpoint is wsrrResults.endpoint and a list of all endpoints is in the array wsrrResults.endpoints.

If Full Results is checked then the WSRR endpoint objects are put on wsrrResults.wsrrObjects in an array.

Usage

See the sample flow sample-flow.json. This has two inject nodes, one wired to wsrr-graph-query and one to wsrr-sla-check, which are both wired to the debug node which shows the results in wsrrResults.

The WSRR data for the service that the sample is coded against can be downloaded from the article Registering, exposing, and invoking a REST service with a sample client. The WSRR data for the client can be downloaded from the article Part 2: Using DataPower and the WS-MediationPolicy to enforce policies attached to a REST service. The client can be registered against the service by following the instructions in the Part 2 article in the section "Completing the governance and policy objects in WSRR".

The graph query node is configured to run an XPath which looks up a Service Version with a specific name and version, then follows the relationships to the endpoints and filters to only Production endpoints. As such this is an example of how to do an endpoint lookup using the node. A service in WSRR must exist which matches the name and version and has a SLD with an endpoint attached, where the endpoint is classified as Production. If you are using the sample data then the results will be an array of objects, the first object is the data for the production endpoint.

The sla check node is configured to check for an active SLA by context and consumer identifiers. The query used is named SLAEndpointLookup and is documented in the WSRR Knowledge Centre topic Searching for service level agreements. If you are using the sample data then the result will be an object containing the endpoint URL "http://CSProductionHost:9443/services/catalog/".

About

The nodes use the NodeJS WSRR library provided in the NPM package apiconnect-soa-transfer-tool to communicate with WSRR. The library provides functions to run a graph query and run a named query, the named query SLAEndpointLookup is used to perform the SLA check.

License

Licensed under the Apache License, Version 2.0 (the "License"). See license.txt.