Skip to main content

Installation

Install the Nvisy SDK from npm:

NPM Package

View the package on npm

Requirements

  • Node.js 20 or later (or any ES2022+ runtime with fetch and a global File)
  • An API token — create one under API Tokens in your account settings
Uploads construct a File, which Node.js exposes globally from version 20 onwards. On Node.js 18, import it explicitly with import { File } from "node:buffer".

Your First Request

Construct a client with your API token and read your account:
Everything except authentication and account management is scoped to a workspace, identified by its slug. List your workspaces first to find it.

Configuration

The constructor accepts additional options:

The Redaction Workflow

Redaction is a two-phase process: a run first detects sensitive data, then you apply redactions after reviewing the findings.
1

Upload a file

2

Start a run against a pipeline

Creation returns immediately; analysis continues in the background.
3

Wait for analysis to finish

Subscribe to the run’s event stream. It emits the current status immediately, then each transition, and ends once the run settles.
4

Review detections

5

Apply redactions

A pipeline defines how a document is analyzed, and a policy defines what is considered sensitive. Create them once, then reuse across runs.
The run row in Postgres is the source of truth, so a missed broadcast is recoverable — re-read the run with getRun if a connection drops. Note that the native EventSource cannot send an Authorization header, which is why the SDK streams over fetch.

Next Steps

API Reference

Every service and method

Examples

End-to-end patterns