Architecture
GuardianAI is a security-first case management system with an AI-assisted document search layer (RAG). This page summarizes the architecture.
Components
- Web: Next.js (apps/web)
- API: Fastify (apps/api)
- DB: PostgreSQL (next)
- Storage: S3 (later)
- AI: OpenAI + embeddings + retrieval (later)
Security posture
- RBAC: admin/user
- Audit logging for critical actions
- Secrets kept in env vars, never committed
- Least-privilege cloud permissions