Skip to main content

SDK Overview

Coming Soon

The Tokligence Guard SDK is currently in development. This page provides a preview of the planned features.

What is the SDK?

The Tokligence Guard SDK allows you to integrate privacy protection directly into your applications. Whether you're building a chatbot, an AI-powered tool, or any application that handles sensitive data, the SDK provides the same powerful detection and redaction capabilities as our browser extension.

Planned Features

Detection Engine

import { TokligenceGuard } from '@tokligence/guard-sdk';

const guard = new TokligenceGuard({
apiKey: 'your-api-key',
categories: ['pii', 'api_keys', 'financial'],
});

// Detect sensitive data
const result = guard.detect('My email is john@example.com');
console.log(result.findings);
// [{ type: 'email', value: 'john@example.com', start: 12, end: 28 }]

Redaction

// Redact sensitive data
const redacted = guard.redact('My email is john@example.com');
console.log(redacted.text);
// "My email is [EMAIL_REDACTED]"

Custom Rules

// Add custom detection rules
guard.addRule({
name: 'employee_id',
pattern: /EMP-\d{6}/g,
category: 'custom',
});

Planned SDK Packages

PackageLanguageStatus
@tokligence/guard-sdkJavaScript/TypeScript🚧 In Development
tokligence-guardPython📋 Planned
tokligence-guardGo📋 Planned

Use Cases

  • Chat Applications: Protect user messages before sending to AI
  • Data Pipelines: Scan data for sensitive information
  • Form Validation: Prevent users from submitting sensitive data
  • Logging: Redact sensitive data from logs

Getting Notified

Want to know when the SDK is available?

  1. Star our GitHub repository
  2. Sign up for updates at guard.tokligence.ai