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.

77 tests·95.6% coverage·vitest passing

Comments

Sign in with GitHub to comment and vote.

Loading comments…