@nstdata-ai/proxy-checker
v1.2.1
Published
Bounded HTTP/HTTPS proxy checks and reusable Node.js gateway transport
Readme
Nstdata Proxy Checker
Check HTTP status, request duration and optional content assertions through HTTP/HTTPS proxies, with optional exit-IP probing. Includes a CLI, Node.js checking library and reusable transport. Use an existing proxy URL or obtain one with your Nstdata API key.
Choose a workflow
| Your task | Start here | Result |
|---|---|---|
| Obtain and check a proxy with Nstdata | Nstdata API key | One connection and one target check |
| Check one proxy | Quick start | HTTP status, duration and failure category |
| Check a batch and export CSV | CLI and batches | Ordered rows, counts and exit codes |
| Verify content as well as HTTP health | Content and results | Literal match or unknown assessment |
| Run checks from Node.js | Checking library | checkProxy / checkProxies |
| Process proxy responses yourself | Shared transport | GET/HEAD, response bytes and headers |
| Inspect the exit IP | Exit information | Separate target observations and extra echo probes |
Install
Supports Node.js 22 (22.18 or later) and 24.
Install the command-line tool; no Node.js project is needed:
npm install --global @nstdata-ai/proxy-checkerQuick start
Set the proxy connection in the same terminal. Replace the example URL below with the full HTTP/HTTPS URL generated by your proxy provider, including any required username and password. This is not the target website URL.
export NSTDATA_PROXY_URL='http://user:[email protected]:8080'Then check the target:
nstdata-proxy-checker --target https://example.com/ --timeout 20000Proxy URLs can contain credentials; keep real values out of shared shell history and public logs. The CLI reads the current shell environment and does not load .env files automatically. Missing proxy configuration produces setup guidance. Run nstdata-proxy-checker --help for options and examples.
Output defaults to JSON. ok: true means the target returned 2xx; statusCode is its HTTP status and elapsedMs measures the request through complete body reading/decoding. Inspect error.code on failure; input errors also include error.message. See the result fields.
Checks use real proxy traffic. By default, each valid entry makes at most one target GET, including duplicates, without redirects, retries, rotation or direct fallback. A 2xx response does not establish expected content, exit identity or PM routing. Add --expected-text to assess content.
--ip-probe explicitly adds one IP echo GET. A rotating proxy can use a different exit for the extra probe. Location/ISP/ASN enrichment requires a separately supplied lookup provider.
Use an Nstdata API key
Save an authorized Proxy API key in a local .env file:
NSTDATA_API_TOKEN=your-api-keyThen obtain one HTTP proxy and check the default target:
nstdata-proxy-checker --nstdata --env .env --yesThis requires available balance and a compatible product. It reuses an SDK default channel or creates one, generates one connection, and checks https://example.com/ once. Proxy traffic is metered; it does not purchase a package. Use --target for your own target.
In a terminal, run nstdata-proxy-checker --nstdata to enter the key with hidden input and confirm the selected setup. Nothing is written to a credential file. For scripts, --yes accepts setup without prompting. Options and failure recovery.
Other installation methods
Run temporarily without a global installation or project dependency:
npx --yes --package=@nstdata-ai/proxy-checker \
nstdata-proxy-checker --helpFor a check, configure NSTDATA_PROXY_URL or choose --nstdata, then replace --help with the check options. The npm package is @nstdata-ai/proxy-checker; its executable is nstdata-proxy-checker.
To call the library from a Node.js project, use the project's existing package manager:
npm install @nstdata-ai/proxy-checkerUse pnpm add @nstdata-ai/proxy-checker in pnpm projects. To run the CLI from a project that already has the package installed, use npx --no-install nstdata-proxy-checker.
Usage guide · Changelog · Contributing · Security · MIT license
