How ianloe/frame-assessment works
FRAME is a multi-user AI governance assessment and audit platform. Users enter through the web application, authenticate, register AI systems, complete FRAME assessments, and use governance review, remediation, and reporting capabilities. The API routes implement these domain stages over shared PostgreSQL state; shared package modules provide the FRAME questionnaire, scoring, schemas, and permissions. The graph follows documented capabilities and visible imports/registration; some route internals and integrations were not sampled, so uncertain links are omitted.
Main entry points: App.tsx Web router · app.ts Fastify API · index.ts PostgreSQL database · api.ts API client
Components 26
Web application
- Web router
apps/web/src/App.tsx - Authentication UI
apps/web/src/lib/auth.tsx - API client
apps/web/src/lib/api.ts - Portfolio dashboard
apps/web/src/pages/DashboardPage.tsx - AI system register
apps/web/src/pages/SystemsPage.tsx - Assessment wizard
apps/web/src/pages/AssessmentWizardPage.tsx - Administration
apps/web/src/pages/AdminPage.tsx - Security profile
apps/web/src/pages/SecurityProfilePage.tsx - Auditor workspace
apps/web/src/pages/AuditorWorkspacePage.tsx
Governance workflows
- Fastify API
apps/api/src/app.ts - System register routes
apps/api/src/routes/systems.ts - Assessment routes
apps/api/src/routes/assessments.ts - Review and actions
apps/api/src/routes/governance.ts - Reports and audit pack
apps/api/src/routes/reports.ts - AI insights
apps/api/src/routes/aiInsights.ts
Identity and security
- Authentication routes
apps/api/src/routes/auth.ts - Administration routes
apps/api/src/routes/admin.ts - Session and access control
apps/api/src/middleware/auth.ts - Cryptographic services
apps/api/src/services/crypto.ts
Shared services and data
- FRAME questionnaire
packages/shared/src/frame-data.ts - Maturity scoring
packages/shared/src/scoring.ts - Role permissions
packages/shared/src/rbac.ts - Evidence storage
apps/api/src/services/storage.ts - Tamper-evident audit log
apps/api/src/services/audit.ts - PostgreSQL database
apps/api/src/db/index.ts
Other components
- Platform user
Connections 42
- Platform user → Web router: uses
README.md - Web router → Authentication UI: provides context
apps/web/src/App.tsx - Web router → Portfolio dashboard: routes to
apps/web/src/App.tsx - Web router → AI system register: routes to
apps/web/src/App.tsx - Web router → Assessment wizard: routes to
apps/web/src/App.tsx - Web router → Administration: routes to
apps/web/src/App.tsx - Web router → Security profile: routes to
apps/web/src/App.tsx - Web router → Auditor workspace: routes to
apps/web/src/App.tsx - Authentication UI → API client: calls
apps/web/src/lib/auth.tsx - Portfolio dashboard → API client: requests data
apps/web/src/pages/DashboardPage.tsx - AI system register → API client: requests data
apps/web/src/pages/SystemsPage.tsx - Assessment wizard → API client: requests data
apps/web/src/pages/AssessmentWizardPage.tsx - Administration → API client: requests data
apps/web/src/pages/AdminPage.tsx - Security profile → API client: requests data
apps/web/src/pages/SecurityProfilePage.tsx - API client → Fastify API: sends HTTP requests
README.md - Fastify API → Authentication routes: registers
apps/api/src/app.ts - Fastify API → Administration routes: registers
apps/api/src/app.ts - Fastify API → System register routes: registers
apps/api/src/app.ts - Fastify API → Assessment routes: registers
apps/api/src/app.ts - Fastify API → Review and actions: registers
apps/api/src/app.ts - Fastify API → Reports and audit pack: registers
apps/api/src/app.ts - Fastify API → AI insights: registers
apps/api/src/app.ts - Authentication routes → PostgreSQL database: reads and writes
apps/api/src/routes/auth.ts - Administration routes → PostgreSQL database: reads and writes
apps/api/src/routes/admin.ts - System register routes → PostgreSQL database: reads and writes
- Assessment routes → PostgreSQL database: reads and writes
apps/api/src/routes/assessments.ts - Review and actions → PostgreSQL database: reads and writes
apps/api/src/routes/governance.ts - Reports and audit pack → PostgreSQL database: reads data
apps/api/src/routes/reports.ts - Assessment routes → FRAME questionnaire: uses framework
apps/api/src/routes/assessments.ts - Assessment routes → Maturity scoring: derives scores
README.md - Assessment routes → Evidence storage: stores evidence
apps/api/src/routes/assessments.ts - Reports and audit pack → Tamper-evident audit log: exports audit pack
apps/api/src/routes/reports.ts - Assessment routes → Tamper-evident audit log: records events
apps/api/src/routes/assessments.ts - Review and actions → Tamper-evident audit log: records events
apps/api/src/routes/governance.ts - Administration routes → Tamper-evident audit log: records events
apps/api/src/routes/admin.ts - Authentication routes → Cryptographic services: hashes and encrypts
apps/api/src/routes/auth.ts - Authentication routes → Session and access control: creates sessions
apps/api/src/routes/auth.ts - Session and access control → PostgreSQL database: checks sessions
apps/api/src/middleware/auth.ts - Session and access control → Role permissions: checks permissions
apps/api/src/middleware/auth.ts - Tamper-evident audit log → PostgreSQL database: writes log entries
apps/api/src/services/audit.ts - Evidence storage → Cryptographic services: hashes files
apps/api/src/services/storage.ts - Evidence storage → PostgreSQL database: persists file metadata