Skip to main content
This section provides detailed documentation for all Rehydra exports.

Core Functions

createAnonymizer

Create a reusable anonymizer instance with configuration

anonymize

Anonymize text and get the result with encrypted PII map

rehydrate

Restore original values from anonymized text

Storage

Storage Providers

SQLite, IndexedDB, and in-memory storage

Sessions

Session-based PII map persistence

Streaming & Proxy

Streaming

Stream-based anonymization for chunked text (Node.js/Bun)

LLM Proxy

Proxy middleware for OpenAI and Anthropic (Node.js/Bun)

Utilities

Crypto

Encryption, key management, and utilities

Model Management

Download, cache, and manage NER models

Quick Reference

Main Entry Points

Result Structure

Configuration

Policy Options