RubyGems Navigation menu

promptscrub 0.1.0

Drop-in Faraday middleware that detects and tokenizes PII (emails, SSNs, credit cards, phone numbers, custom patterns) in outgoing LLM requests, then rehydrates tokens back in responses. Works with OpenAI, Anthropic, Gemini, RubyLLM, langchainrb, and any Faraday-based HTTP client. Includes StreamRehydrator for SSE streaming use cases.

Gemfile:
=

install:
=

Versions:

  1. 0.1.0 June 03, 2026 (9.5 KB)

Runtime Dependencies (1):

faraday >= 1.0

Owners:

Pushed by:

Authors:

  • Jibran Usman

SHA 256 checksum:

=

Total downloads 253

For this version 253

Version Released:

License:

MIT

Required Ruby Version: >= 3.1

Links: