Skip to content
Gautam Kumar edited this page Jan 8, 2026 · 2 revisions

SafePaste is a client-side security layer designed to prevent Data Exfiltration to LLMs. This wiki contains technical details on our detection engine, privacy architecture, and contribution guidelines.

How it Works: The "Privacy Firewall"

SafePaste operates on a "Zero-Trust" model regarding the clipboard. Unlike standard extensions that monitor every keystroke, SafePaste only activates upon a specific user intent (Ctrl+Alt+V).

The Pipeline

  1. Trigger: User hits the shortcut.
  2. Capture: The extension reads the system clipboard via clipboardRead.
  3. Analysis: The piiDetector.ts engine runs 25+ regex suites locally.
  4. Intervention: The "Ghost Overlay" renders a React-based UI over the AI's text area.
  5. Injection: Upon selection, the masked or filtered text is programmatically injected into the DOM.

Read more about our Detection Logic →

Clone this wiki locally