Skip to content
reaatechREAATECH

OpenRouter Security Guardrails for SMB API Protection

A lightweight API gateway that screens every AI prompt and response for PII, injection attempts, and unsafe content, using OpenRouter's unified model access.

The problem

SMBs integrating AI into customer‑facing apps worry about data leaks, prompt injection, and brand‑damaging responses. Adding safety checks to every endpoint is error‑prone and time‑consuming — most just turn the feature on and hope for the best.

Example artifact

A complete, working implementation of this recipe — downloadable as a zip or browsable file by file. Generated by our build pipeline; tested with full coverage before publishing.

95 kB·77 tests·95.6% coverage·vitest passing

SHA-256fdc7e871723060af41d9283c63fd3d8f9ca0693611bfc8f8c1ae5fa4253acb0c

Comments

Sign in with GitHub to comment and vote.

Loading comments…