Install
Installation
Install Redactum using your preferred package manager. Requires Node.js 18+ and TypeScript 4.5+ (for TypeScript users).
bash
pnpm add redactum
bash
yarn add redactum
bash
npm install redactum
Providers
Redactum includes native adapters for popular AI/ML frameworks and SDKs. These adapters automatically redact sensitive data before it reaches external services.
Provider | Package | Documentation |
---|---|---|
OpenAI | openai | platform.openai.com |
Anthropic | @anthropic-ai/sdk | docs.anthropic.com |
LangChain | @langchain/core | js.langchain.com |
LlamaIndex | llamaindex | ts.llamaindex.ai |
Vercel AI SDK | ai | sdk.vercel.ai |
Zero Dependencies
The core redactum
package has zero runtime dependencies. Provider packages are optional peer dependencies that are only loaded when you use the specific integrations.
Module Systems
Redactum supports ESM and CommonJS with TypeScript definitions included.
typescript
import { redactum } from "redactum";
javascript
const { redactum } = require("redactum");