NEXXUS SDKs

Official SDKs for integrating NEXXUS AI Trust & Safety evaluation into your applications. Choose your preferred language to get started.

Python SDK

Python 3.8+

Idiomatic Python library with async support, type hints, and comprehensive error handling.

pip install trustscan
View Documentation

JavaScript SDK

TypeScript/JavaScript

TypeScript-first SDK for Node.js and browsers with React hooks and streaming support.

npm install @trustscan/sdk
View Documentation

Command Line Interface

For quick evaluations and CI/CD integration, use our CLI tool.

Install CLIbash
npm install -g @trustscan/cli

# Or use with npx
npx @trustscan/cli evaluate --help
Quick Examplebash
# Configure
trustscan configure --api-key ts_live_xxx

# Run evaluation
trustscan evaluate --prompt "What is 2+2?" --response "2+2 equals 4"

# Get report
trustscan report eval_abc123 --format pdf

Common Features

All NEXXUS SDKs share these core capabilities:

Automatic Retries

Built-in retry logic with exponential backoff for transient failures.

Secure by Default

TLS 1.3, secure credential storage, and environment variable support.

Async Support

Full async/await support for non-blocking operations.

Type Safety

Full type definitions for TypeScript and Python type hints.

Quick Start

Run your first evaluation in just a few lines of code:

Python

from trustscan import NEXXUS

client = NEXXUS(api_key="ts_live_xxx")

result = client.evaluate(
    content="AI-generated response to evaluate",
    mode="STANDARD"
)

print(f"Trust Score: {result.trust_score}")
print(f"Certification: {result.certification_tier}")

JavaScript/TypeScript

import { NEXXUS } from '@trustscan/sdk';

const client = new NEXXUS({ apiKey: 'ts_live_xxx' });

const result = await client.evaluate({
  content: 'AI-generated response to evaluate',
  mode: 'STANDARD'
});

console.log(`Trust Score: ${result.trustScore}`);
console.log(`Certification: ${result.certificationTier}`);

Environment Variables

All SDKs support configuration via environment variables:

VariableDescription
TRUSTSCAN_API_KEYAPI key for authentication
TRUSTSCAN_BASE_URLAPI base URL (default: https://api.trustscan.io)
TRUSTSCAN_ORG_IDDefault organization ID
TRUSTSCAN_TIMEOUTRequest timeout in milliseconds

Choose Your SDK