Build Privacy-First
AI Applications

Integrate PrivacyPal's streaming Data Twin technology into your applications. Build compliant, multi-tenant AI solutions with real-time data anonymization.

🟢 Node.js
🐍 Python
☁️ PrivacyPal Cloud
stream-example.js
import { PrivacyPalClient } from 'privacypal-sdk';

const client = new PrivacyPalClient({
  apiKey: 'your-api-key',
  mode: 'streaming'
});

// Stream sensitive data with Data Twins
const stream = await client.createStream({
  data: patientRecords,
  encoding: 'two-way'
});

// Safe for RAG pipelines, AI processing
await processWithAI(stream.anonymized);
Get Started

Quick Installation

Get up and running with PrivacyPal SDK in seconds

Install via npm

npm install privacypal-sdk
1

Install SDK

Add to your project with npm or yarn

2

Get API Key

Sign up for PrivacyPal Cloud access

3

Start Streaming

Create privacy-safe data streams

Performance

Lightning-Fast Streaming

Built for production workloads. Scale with confidence.

0.10ms
Latency per 100 Records
Near-instant data anonymization for real-time applications
0
Data Limits
Process unlimited data volumes without throttling
🔄
1-way & 2-way
Encoding Options
One-way anonymization or two-way secure data encoding
SDK Features

Everything You Need

Build sophisticated AI solutions with privacy built-in from the ground up

🚀

Streaming Data Twins

Real-time Data Twin generation for continuous data streams. Perfect for RAG pipelines, vector databases, and AI training workflows.

🏢

Multi-Tenant Data for AI

Safely aggregate customer data for model training and analytics. Tell your customers "We don't train on your data" - because you're using Data Twins instead.

Compliance by Default

Meet HIPAA, GDPR, and SOC 2 requirements out of the box. Automated PII detection and anonymization for all major data types.

🔐

Self-Hosted Option

Deploy on your infrastructure with PrivacyPal Cloud. Complete control over sensitive data with data sovereignty guarantees.

🎯

RAG Pipeline Integration

Seamlessly integrate with LangChain, LlamaIndex, and popular RAG frameworks. Keep embeddings private while maintaining accuracy.

📊

Database Scanning

DSPM capabilities to discover and classify sensitive data in your internal databases, ensuring comprehensive data governance.

Code Examples

See It In Action

Real-world examples to get you started quickly

Basic Streaming with Data Twins

Create a simple data stream with automatic PII detection and anonymization

basic-stream.js
import { PrivacyPalClient } from 'privacypal-sdk';

const client = new PrivacyPalClient({
  apiKey: process.env.PRIVACYPAL_API_KEY
});

// Original sensitive data
const records = [
  { name: 'John Smith', email: 'john@example.com', ssn: '123-45-6789' },
  { name: 'Jane Doe', email: 'jane@example.com', ssn: '987-65-4321' }
];

// Create anonymized stream
const stream = await client.createStream(records);

// Process with AI safely
await sendToLLM(stream.data);
// Data Twins used instead of real data

RAG Pipeline Integration

Protect embeddings and vector databases while maintaining semantic accuracy

rag-integration.js
import { PrivacyPalClient } from 'privacypal-sdk';
import { VectorStore } from '@pinecone/sdk';

const privacypal = new PrivacyPalClient({
  apiKey: process.env.PRIVACYPAL_API_KEY,
  encoding: 'two-way' // Enable data recovery
});

// Anonymize documents before embedding
const documents = await loadSensitiveDocs();
const anonymized = await privacypal.anonymize(documents);

// Store Data Twin embeddings safely
await vectorStore.upsert(anonymized.embeddings);

// Query and decode results
const results = await vectorStore.query(userQuestion);
const original = await privacypal.decode(results);

Train AI on Customer Data Safely

Aggregate multi-tenant customer data for model training without exposing sensitive information

train-on-customer-data.js
import { PrivacyPalClient } from 'privacypal-sdk';

const privacypal = new PrivacyPalClient({
  apiKey: process.env.PRIVACYPAL_API_KEY
});

// Collect data from all your customers
const customerAData = await fetchCustomerData('customer-a');
const customerBData = await fetchCustomerData('customer-b');
const customerCData = await fetchCustomerData('customer-c');

// Anonymize all customer data with Data Twins
const anonymizedData = await privacypal.createStream([
  ...customerAData,
  ...customerBData,
  ...customerCData
]);

// Now safely train your AI model on aggregate data
await trainModel(anonymizedData.data);

// Tell your customers with confidence:
// "We don't train AI on your real data"
// Because you're using Data Twins! ✅