Gathering detailed insights and metrics for test-ai-classifier-client
Gathering detailed insights and metrics for test-ai-classifier-client
Gathering detailed insights and metrics for test-ai-classifier-client
Gathering detailed insights and metrics for test-ai-classifier-client
npm install test-ai-classifier-client
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
7 Stars
4 Commits
3 Forks
3 Watchers
12 Branches
1 Contributors
Updated on Oct 10, 2023
Latest Version
1.1.0
Package Id
test-ai-classifier-client@1.1.0
Unpacked Size
25.14 kB
Size
9.29 kB
File Count
7
NPM Version
6.13.4
Node Version
12.14.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
The code in this directory defines a client library for use with the gRPC-based Test.ai classifier server.
npm install test-ai-classifier-client
This client exposes as the default export a ClassifierClient
class, which can be instantiated as follows:
1const ClassifierClient = require('test-ai-classifier-client'); 2const client = new ClassifierClient({host, port})
(Where host
and port
refer to the address and port the server is running on).
The client exposes two instance methods:
classifyElements
takes an object parameter with 4 keys:
labelHint
: the label you wish to find matching elements with (see lib/labels.js
in this repo).elementImages
: an object whose keys are ids, and whose values are Buffer
objects containing raw binary data of PNG images.confidenceThreshold
: (optional) the confidence below which not to return matches (0.0 - 1.0)allowWeakerMatches
: (optional) whether or not to return a match for elements that did match the label, but for whom another label had a higher confidence.The return value of this method is an object whose keys are the same ids you sent in, and whose values are classification objects with the following keys:
label
: the matching labelconfidence
: the confidence for the matched labelconfidenceForLabel
: the confidence for the label given in labelHint
findElementsMatchingLabel
is a helper function for use with Selenium tests (for Appium use the Appium plugin as described in the main README for this repo). It takes an object parameter with 4 keys: all of the same keys as in classifyElements
except for elementImages
which is replaced by:
driver
: the WebdriverIO driver object
The return value of this method is an array of WebdriverIO element objects that match.For a concrete example, see test/rpc-e2e-specs.js
Tests expect a running Classifier server on port 50051.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
64 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More