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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@frontendonly/api-testing

v0.0.4

Published

API testing module to validate the functionality, reliability, and performance of RESTful APIs by automating request and response verification.

Downloads

10

Readme

API-Testing

API-Testing is a simple and effective package designed to help developers configure and run API test cases easily. It streamlines the process of setting up API tests and executing them based on predefined configurations.

Features

  • init
    Creates a sample API-testing configuration file named api-testing.json for the specified application. This file serves as a template to define your API test cases.

    foat init test-app --swagger.url='' --swagger.startsWith='/api'
  • run
    Runs all configured test cases as defined in the specified api-testing.json file. This command executes the tests and helps you validate your API endpoints efficiently.

     foat run [Optional <testFilePath>] [--concurrent.rampup=1] [--concurrent.every=1000] [--concurrent.max=10] [--concurrent.enabled=false]

Installation

To install the API-Testing package, use npm:

npm install -g @frontendonly/api-testing

Sample Configurarion

{
   "name": "My Application",
   "envs": {
      "local": {
         "host": "https://localhost:8080",
         "contextPath": "/api"
      },
      "prod": {
         "host": "https://api.frontendonly.com",
         "contextPath": ""
      }
   },
   "defaultContext": {
      "env": "local",
      "contextName": "CONTEXT_VALUE",
      "dynamicContext": "FO_%$.contextName%"
   },
   "auth": {
      ...
   }
   "specs": [
      {
         "name": "Test Login",
         "request": {
            "path": "/user/authorize",
            "conf": {
               "method": "POST",
               "body": {}
            },
            "beforeRequest": {
               "requestDataMapping": [
                  {
                     "key": "email",
                     "value": "email"
                  },
                  {
                     "key": "password",
                     "value": "pwd"
                  }
               ]
            }
         },
         "store": [
            {
               "key": "accessToken",
               "value": "$.data.accessToken"
            }
         ],
         "test": [
            {
               "title": "User able to login with correct credentials",
               "key": "$.data.accessToken",
               "operator": "def"
            }
         ]
      }
   ]
}

Test case Operators

gt (greater than)
Checks if the first value (a) is greater than the second value (b).
Usage: operators.gt(5, 3) returns true.

lt (less than)
Checks if the first value (a) is less than the second value (b).
Usage: operators.lt(2, 4) returns true.

eq (equal)
Checks if the first value (a) is equal to the second value (b).
Usage: operators.eq(5, 5) returns true.

not (not equal)
Checks if the first value (a) is not equal to the second value (b).
Usage: operators.not(5, 3) returns true.

gte (greater than or equal to)
Checks if the first value (a) is greater than or equal to the second value (b).
Usage: operators.gte(5, 5) returns true.

lte (less than or equal to)
Checks if the first value (a) is less than or equal to the second value (b).
Usage: operators.lte(3, 5) returns true.

def (defined)
Checks if the first value (a) is not undefined.
Usage: operators.def(5) returns true.

notdef (not defined)
Checks if the first value (a) is undefined.
Usage: operators.notdef(undefined) returns true.