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

arazzo-runner

v0.0.23

Published

A runner to run through Arazzo Document workflows

Readme

Arazzo-Runner

Run your OpenAPI Arazzo Workflow Spec.

Install

Using npm:

npm install -g arazzo-runner

Use

# Run the CLI
arazzo-runner --arazzo ./arazzo.json --input ./input.json

# Or with short flags
arazzo-runner -a arazzo.json -i input.json

# With URL
arazzo-runner -a https://example.com/arazzo.json -i ./input.json

# With Verbose Logging
arazzo-runner -a https://example.com/arazzo.json -i ./input.json --verbose

# Show help
arazzo-runner --help

# Show version
arazzo-runner --version

Input file

The input file is where you keep your variables that you wish to use within your workflow and should be a json file structured like:

{
  "worflowId1": {
    "name": "Jared"
  }
}

The file should contain objects for each workflow, by workflowId, with the variables matching up to the inputs that you defined in your workflow inputs schema.

This file is likely to be comitted to your repository, so you should not store secrets in the file, instead you might use something like jq that can take repository variables and insert them into your input file:

jq --arg password "$secret_password" '.workflowId1.password = $password' input.json

Obviously, if you have a lot of secret variables that need adding as inputs, then you might need to write a script that can alter the input.json file for you within your CI/CD runner.

Config file

Arazzo Runner allows for a config file to keep hold of secrets to get OpenAPI/Arazzo documents held on paths behind apikeys:

"use strict";

module.exports = {
  documentKey: {
    key: process.env.APIKey,
    in: "header|query", // either in the header or the query params
    name: "apiKey",
  },
};

When downloading OpenAPI/Arazzo documents, it will use the documentKey to access those files. This file should be stored in ./options/config.js

OpenAPI Servers

OpenAPI Documents allow you to specify servers at the root, path and operation level. They allow you to specify multiple servers, however the OpenAPI specification is opinionated that all servers specified in a Document should return the same thing and this Arazzo Runner will follow this opinion and only attempt one of the specified servers.

This Arazzo Runner will pick the first server it comes across in the array of servers and run the operation against that.

  • If the operation has servers specified, it will use the first server at the operation level, ignoring path and root servers.
  • If the operation does not have a server specified, and the path level does, it will use the path level server, ignoring the root level
  • If the operation only has servers specified at the root of the document, it will only use the first root level server.

It will attempt to map to the Server Variables, using the default that is set.

OpenAPI Parameters

OpenAPI Documents allow you to specify header, path and query parameters in myriad of styles. This Arazzo Runner will respect your styling (unless you specify stylings for Accept, Authorization or Content-Type headers, then it will ignore the stylings, as per the OpenAPI specification) and send the format to the server as specified by your OpenAPI Document.

It currently does not follow the allowEmptyValue, allowReserved or the content keywords currently.

OpenAPI Security

OpenAPI Document security is supported. There are a couple of ways that you will have to document your Arazzo Workflow for certain documentation types.

Basic

For HTTP Basic authentication, you should document your Arazzo like:

arazzo.json

"steps": [
  {
    "stepId": "deleteUser",
    "operationId": "deleteUser",
    "parameters": [
      {
        "name": "Authorization",
        "in": "header",
        "value": "{$inputs.username}:{$inputs.password}"
      },
      { "name": "username", "in": "path", "value": "$inputs.username" }
    ]
  }
]

The Runner will correctly encode and prepend Basic to the Authorization Header.

Bearer

For HTTP Bearer authentication, you should document your Arazzo like:

arazzo.json

{
  "stepId": "LoginExistingUser",
  "operationId": "loginUser",
  "requestBody": {
    "contentType": "application/json",
    "payload": {
      "username": "$inputs.username",
      "password": "$inputs.password"
    }
  },
  "outputs": { "AccessToken": "$response.body#/AccessToken" }
},
{
  "stepId": "deleteUser",
  "operationId": "deleteUser",
  "parameters": [
    {
      "name": "Authorization",
      "in": "header",
      "value": "$steps.LoginExistingUser.outputs.AccessToken"
    },
    { "name": "username", "in": "path", "value": "$inputs.username" }
  ]
}

The Runner will prepend Bearer for you.

mutualTLS

mutualTLS is quite a complex authorization topic. I have written a naive way of dealing with it that I am unsure will actually work in production. If you are using mutualTLS and this Arazzo Runner and find that you run into bugs/issues, please do feel free to opena. report. The more I know and understand mutualTLS the better I can support it.

You will need to provide inputs for your ClientKey and ClientCert as their path locations:

input.json

{
  "deleteCurrentUser-mutualTLS": {
    "username": "jack",
    "key": "./client-key.pem",
    "cert": "./client-cert.pem"
  }
}

key and cert are reserved names when used in an OpenAPI Document with mutualTLS as the authentication method. The Runner will error out if they are not found.

UNSUPPORTED oauth/openId

CURRENTLY UNSUPPORTED

You will need to provide inputs for your clientId and clientSecret:

input.json

{
  "deleteCurrentUser-mutualTLS": {
    "username": "jack",
    "clientId": "abc123",
    "clientSecret": "123abc"
  }
}

clientId and clientSecret are reserved name and will be used when oauth or openId authentication is set.

Request Bodies

This can handle the encoding and sending of:

  • application/json
  • application/xml
  • text/xml
  • text/html
  • text/plain
  • application/x-www-form-urlencoded
  • multipart/form-data
  • application/octet-stream

For anything outside of this range, it will attempt to encode as JSON if you specify an object, otherwise it will encode as plain text.

Response Bodies

This can handle response bodies of:

  • application/json
  • application/xml
  • text/xml
  • text/html
  • text/plain

Logging And Reporting

Logging

Logging is currently pretty verbose, with an example Log looking like:

Running Workflows
Running Workflow: createUser
Running Step: createAUser
Getting Source Description for: users-openAPI
Making a POST to http://petstore.swagger.io/v2/user
http://petstore.swagger.io/v2/user responded with a: 200
==================================================================================
Checking: $statusCode == 200
✅ $statusCode == 200 passed
==================================================================================
✅ All criteria checks passed
Running onSuccess Rules
✅ Step createAUser completed
✅ Workflow createUser completed
✅ All Workflows run

Reporting

Work on Reporting still needs completeing.

Still unsupported

PathOperation

Accessing an OpenAPI operation by Operation Path '{$sourceDescriptions.petstoreDescription.url}#/paths/~1pet~1findByStatus/get' does not work currently