# AI Automation Hub — Goals

## Product Vision
A self-hosted web application that manages AI API keys, configures multi-platform
automations, dispatches notifications, and provides a real-time operator dashboard —
all served from a single Node.js process with SQLite persistence.

## Hard Requirements (must be fully functional)
1. Bootstrap 5 frontend, CDN only, no build step
2. SQLite via `better-sqlite3` for all persistence
3. Express backend with layered router/service/repo pattern
4. Real-time UI updates via Socket.io (no full page reloads)
5. Command bar (`ninja-keys`) with Ctrl+K / ⌘K trigger
6. Multi-platform notification dispatch: Email, Slack webhook, Generic webhook
7. Notification templates per platform with variable substitution
8. Full audit log with visible failure states (banner + per-job chips + log rows)
9. API key management for OpenAI, Google Gemini, and Claude — stored AES-256 encrypted
10. Floating AI support chat widget (streams from Claude API)
11. Windows desktop companion (Electron tray) that subscribes to notifications via SSE
12. DECISIONS.md, STATUS.md continuously updated

## Non-goals for v1
- OAuth / multi-user auth (single-operator assumed)
- Redis / external queue (SQLite job queue is sufficient)
- Docker deployment (Apache reverse-proxy already exists in this repo)
