Sunder

Documentation

Usage

To use Sunder in your application, initialize the Sunder engine and pass your text through the `protect` method.

Interactive Demo

Try it yourself locally

Input

Intercepted

Output will appear here...
import { Sunder } from '@sunder-ai/core';

const sunder = new Sunder();
const protectedText = sunder.protect("My email is john@example.com");

console.log(protectedText); 
// Output: "My email is [EMAIL_1]"

🦙 Running Ollama Locally

Sunder AI uses Ollama as its default local AI provider. Your data never leaves your machine.

1. Install Ollama

# macOS (Homebrew)
brew install ollama

# Or download from https://ollama.com/download

2. Start the server

ollama serve

Runs on http://localhost:11434 by default.

3. Pull a model

# Recommended for general use
ollama pull llama3.2

# Lightweight alternative
ollama pull gemma3:4b

4. Enable CORS

The dashboard connects to Ollama from the browser, so CORS must be enabled:

# Start with CORS enabled
OLLAMA_ORIGINS="*" ollama serve

# Or set permanently in ~/.zshrc
export OLLAMA_ORIGINS="*"

🧩 Browser Extension

The Sunder extension brings privacy protection directly into AI chat websites like ChatGPT, Claude, Gemini, Perplexity, DeepSeek, and Copilot.

Loading in Chrome

  1. Open chrome://extensions
  2. Enable Developer mode (top-right toggle)
  3. Click Load unpacked
  4. Select the apps/extension/build/chrome-mv3-prod directory

How It Works

  1. Navigate to a supported AI chat site
  2. Click the shield button (bottom-right) to enable protection
  3. Type sensitive data — it gets replaced with tokens like [EMAIL_1]
  4. Send your message — the AI responds using the tokens
  5. Click the eye button to reveal original values in the chat

Supported Platforms

ChatGPTClaudeGeminiPerplexityDeepSeekCopilot