PDF Redaction Helper
Paste text - AI suggests PII spans to review. Educational helper — not perfect redaction.
Run this experiment yourself
Demos are not embedded on this site. Deploy a standalone copy on Vercel or run the experiment app locally.
Local development
cd apps/experiments/pdf-redaction-helper pnpm install pnpm dev
Then open http://localhost:3010.
This is an experimental demo. Use it as a starting point for your own projects. Suggestions only — never claim perfect redaction.
PDF Redaction Helper is a Wave 3 Batch H composition lab. Pure helpers live in logic.ts; missing providers or stores degrade honestly (never fabricate AI output).
Features
- Suggest PII spans with types
- Local highlight preview helpers
- Explicit imperfect-redaction caveat
Server Reference
POST /api/redact
{ "text": "Contact Jane Doe at jane@acme.io" }| Status | Cause |
|---|---|
200 | Success |
400 | Missing text |
503 | No AI provider |
Implementation Details
Validate
Inputs are length-capped in logic.ts; APIs return 400 for missing fields.
Run
Route Handlers compose AI SDK, Redis/Neon, or ImageResponse as documented. Fallbacks include honest notes.
Limitations
- Not a compliance-certified redaction product.
- Models miss and invent spans — always review.
- No binary PDF rewrite in this lab.
Use in your project
Copy the Route Handler(s) and logic.ts from apps/experiments/pdf-redaction-helper/.
Deployment
Local Development
cd apps/experiments/pdf-redaction-helper
pnpm install
pnpm devConfiguration
| Variable | Required | Purpose |
|---|---|---|
AI_GATEWAY_API_KEY | Yes (or OpenAI) | Preferred AI provider |