# elliots-boys/technova architecture

> Architecture diagram of the GitHub repository elliots-boys/technova, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/elliots-boys/technova
- Repository: https://github.com/elliots-boys/technova
- Video tour (about a minute): https://gitdiagram.com/elliots-boys/technova/video

## Overview

TechNova is a browser-based platform combining account identity and OAuth, AI and productivity tools, events, and public content. The visible workflows include signing in and managing OAuth access, using event and content features, and operating developer OAuth applications. The README gives no product detail, so capability groupings rely on source filenames; unsampled modules are represented without guessed connections. Edges are limited to relationships shown in excerpts, including browser-to-Supabase calls and explicit external API flows.

Main entry points: [`js/auth.js`](https://github.com/elliots-boys/technova/blob/main/js/auth.js) (Authentication), [`supabase/functions/send-event-confirmation/index.ts`](https://github.com/elliots-boys/technova/blob/main/supabase/functions/send-event-confirmation/index.ts) (Event Confirmation), [`supabase/functions/developer-oauth-apps/index.ts`](https://github.com/elliots-boys/technova/blob/main/supabase/functions/developer-oauth-apps/index.ts) (Developer OAuth API), [`js/oauth-consent.js`](https://github.com/elliots-boys/technova/blob/main/js/oauth-consent.js) (OAuth Consent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity and OAuth"]
  node_auth["Authentication<br/>[auth.js]"]
  node_oauth_consent["OAuth Consent<br/>[oauth-consent.js]"]
  node_oauth_apps["Authorized Apps<br/>[authorized-apps.js]"]
  node_developer_console["Developer Console<br/>[developer-oauth.js]"]
  node_developer_api["Developer OAuth API<br/>[index.ts]"]
  node_oauth_test["OAuth Test Start<br/>[oauth-test.js]"]
  node_oauth_callback["OAuth Test Callback"]
end

subgraph group_workspace["AI and Workspace"]
  node_ai_assistant["AI Assistant<br/>[ai-assistant.js]"]
  node_ai_enhancements["AI Enhancements<br/>[ai-enhancements.js]"]
  node_ai_quiz["AI Quiz Generator"]
  node_writing_studio["AI Writing Studio"]
  node_tools["Tools<br/>[tools.js]"]
  node_dashboard["Dashboard<br/>[dashboard.js]"]
  node_dashboard_os["Dashboard OS<br/>[dashboard-os.js]"]
  node_dashboard_phase2["Dashboard Phase Two"]
  node_dashboard_workspace["Dashboard Workspace"]
  node_quiz_admin["Quiz Administration<br/>[admin-quiz.js]"]
end

subgraph group_events["Events and Community"]
  node_events["Event Features<br/>[script.js]"]
  node_tickets["Tickets<br/>[tickets.js]"]
  node_event_capacity["Event Capacity<br/>[event-capacity.js]"]
  node_saved_events["Saved Events<br/>[saved-events.js]"]
  node_event_confirmation["Event Confirmation<br/>[index.ts]"]
end

subgraph group_content["Content and Insights"]
  node_articles["Article Feed<br/>[article-feed.js]"]
  node_article_page["Article Page<br/>[article-page.js]"]
  node_search["Global Search<br/>[global-search.js]"]
  node_cms["CMS<br/>[cms.js]"]
  node_reports["Reports<br/>[reports.js]"]
  node_analytics["Analytics<br/>[analytics.js]"]
end

subgraph group_platform["Platform Services"]
  node_phone_otp["Phone OTP Hook<br/>[index.ts]"]
end

node_visitor(("Visitor"))
node_supabase_auth["Supabase Auth"]
node_supabase_db[("Supabase Data")]
node_email_service["Resend Email"]
node_sms_provider["Webex SMS"]

node_auth -->|"authenticates users"| node_supabase_auth
node_auth -->|"reads profiles"| node_supabase_db
node_auth -->|"updates registrations"| node_supabase_db
node_oauth_consent -->|"requests consent"| node_supabase_auth
node_oauth_apps -->|"lists and revokes grants"| node_supabase_auth
node_developer_console -->|"sends app actions"| node_developer_api
node_developer_api -->|"validates session"| node_supabase_auth
node_developer_api -->|"stores app metadata"| node_supabase_db
node_oauth_test -->|"redirects to authorize"| node_supabase_auth
node_oauth_callback -->|"exchanges code and fetches profile"| node_supabase_auth
node_search -->|"searches public tables"| node_supabase_db
node_event_confirmation -->|"validates user token"| node_supabase_auth
node_event_confirmation -->|"reads event registration"| node_supabase_db
node_event_confirmation -->|"sends confirmation"| node_email_service
node_phone_otp -->|"sends verification SMS"| node_sms_provider
node_visitor -.->|"signs in"| node_auth
node_visitor -.->|"uses workspace"| node_dashboard
node_visitor -.->|"uses event features"| node_events
node_visitor -.->|"browses content"| node_articles

click node_auth "https://github.com/elliots-boys/technova/blob/main/js/auth.js"
click node_oauth_consent "https://github.com/elliots-boys/technova/blob/main/js/oauth-consent.js"
click node_oauth_apps "https://github.com/elliots-boys/technova/blob/main/js/authorized-apps.js"
click node_developer_console "https://github.com/elliots-boys/technova/blob/main/js/developer-oauth.js"
click node_developer_api "https://github.com/elliots-boys/technova/blob/main/supabase/functions/developer-oauth-apps/index.ts"
click node_oauth_test "https://github.com/elliots-boys/technova/blob/main/js/oauth-test.js"
click node_oauth_callback "https://github.com/elliots-boys/technova/blob/main/js/oauth-test-callback.js"
click node_ai_assistant "https://github.com/elliots-boys/technova/blob/main/js/ai-assistant.js"
click node_ai_enhancements "https://github.com/elliots-boys/technova/blob/main/js/ai-enhancements.js"
click node_ai_quiz "https://github.com/elliots-boys/technova/blob/main/js/ai-quiz-generator.js"
click node_writing_studio "https://github.com/elliots-boys/technova/blob/main/js/ai-writing-studio.js"
click node_tools "https://github.com/elliots-boys/technova/blob/main/js/tools.js"
click node_dashboard "https://github.com/elliots-boys/technova/blob/main/js/dashboard.js"
click node_dashboard_os "https://github.com/elliots-boys/technova/blob/main/js/dashboard-os.js"
click node_dashboard_phase2 "https://github.com/elliots-boys/technova/blob/main/js/dashboard-phase2.js"
click node_dashboard_workspace "https://github.com/elliots-boys/technova/blob/main/js/dashboard-workspace.js"
click node_quiz_admin "https://github.com/elliots-boys/technova/blob/main/js/admin-quiz.js"
click node_events "https://github.com/elliots-boys/technova/blob/main/js/script.js"
click node_tickets "https://github.com/elliots-boys/technova/blob/main/js/tickets.js"
click node_event_capacity "https://github.com/elliots-boys/technova/blob/main/js/event-capacity.js"
click node_saved_events "https://github.com/elliots-boys/technova/blob/main/js/saved-events.js"
click node_event_confirmation "https://github.com/elliots-boys/technova/blob/main/supabase/functions/send-event-confirmation/index.ts"
click node_articles "https://github.com/elliots-boys/technova/blob/main/js/article-feed.js"
click node_article_page "https://github.com/elliots-boys/technova/blob/main/js/article-page.js"
click node_search "https://github.com/elliots-boys/technova/blob/main/js/global-search.js"
click node_cms "https://github.com/elliots-boys/technova/blob/main/js/cms.js"
click node_reports "https://github.com/elliots-boys/technova/blob/main/js/reports.js"
click node_analytics "https://github.com/elliots-boys/technova/blob/main/js/analytics.js"
click node_phone_otp "https://github.com/elliots-boys/technova/blob/main/supabase/functions/send-phone-otp/index.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_auth,node_oauth_consent,node_oauth_apps,node_developer_console,node_developer_api,node_oauth_test,node_oauth_callback toneBlue
class node_ai_assistant,node_ai_enhancements,node_ai_quiz,node_writing_studio,node_tools,node_dashboard,node_dashboard_os,node_dashboard_phase2,node_dashboard_workspace,node_quiz_admin,node_supabase_db toneAmber
class node_events,node_tickets,node_event_capacity,node_saved_events,node_event_confirmation toneMint
class node_articles,node_article_page,node_search,node_cms,node_reports,node_analytics toneRose
class node_phone_otp,node_visitor,node_supabase_auth,node_email_service,node_sms_provider toneIndigo
```

## Components

### Identity and OAuth

- [Authentication](https://github.com/elliots-boys/technova/blob/main/js/auth.js): `js/auth.js`
- [OAuth Consent](https://github.com/elliots-boys/technova/blob/main/js/oauth-consent.js): `js/oauth-consent.js`
- [Authorized Apps](https://github.com/elliots-boys/technova/blob/main/js/authorized-apps.js): `js/authorized-apps.js`
- [Developer Console](https://github.com/elliots-boys/technova/blob/main/js/developer-oauth.js): `js/developer-oauth.js`
- [Developer OAuth API](https://github.com/elliots-boys/technova/blob/main/supabase/functions/developer-oauth-apps/index.ts): `supabase/functions/developer-oauth-apps/index.ts`
- [OAuth Test Start](https://github.com/elliots-boys/technova/blob/main/js/oauth-test.js): `js/oauth-test.js`
- [OAuth Test Callback](https://github.com/elliots-boys/technova/blob/main/js/oauth-test-callback.js): `js/oauth-test-callback.js`

### AI and Workspace

- [AI Assistant](https://github.com/elliots-boys/technova/blob/main/js/ai-assistant.js): `js/ai-assistant.js`
- [AI Enhancements](https://github.com/elliots-boys/technova/blob/main/js/ai-enhancements.js): `js/ai-enhancements.js`
- [AI Quiz Generator](https://github.com/elliots-boys/technova/blob/main/js/ai-quiz-generator.js): `js/ai-quiz-generator.js`
- [AI Writing Studio](https://github.com/elliots-boys/technova/blob/main/js/ai-writing-studio.js): `js/ai-writing-studio.js`
- [Tools](https://github.com/elliots-boys/technova/blob/main/js/tools.js): `js/tools.js`
- [Dashboard](https://github.com/elliots-boys/technova/blob/main/js/dashboard.js): `js/dashboard.js`
- [Dashboard OS](https://github.com/elliots-boys/technova/blob/main/js/dashboard-os.js): `js/dashboard-os.js`
- [Dashboard Phase Two](https://github.com/elliots-boys/technova/blob/main/js/dashboard-phase2.js): `js/dashboard-phase2.js`
- [Dashboard Workspace](https://github.com/elliots-boys/technova/blob/main/js/dashboard-workspace.js): `js/dashboard-workspace.js`
- [Quiz Administration](https://github.com/elliots-boys/technova/blob/main/js/admin-quiz.js): `js/admin-quiz.js`

### Events and Community

- [Event Features](https://github.com/elliots-boys/technova/blob/main/js/script.js): `js/script.js`
- [Tickets](https://github.com/elliots-boys/technova/blob/main/js/tickets.js): `js/tickets.js`
- [Event Capacity](https://github.com/elliots-boys/technova/blob/main/js/event-capacity.js): `js/event-capacity.js`
- [Saved Events](https://github.com/elliots-boys/technova/blob/main/js/saved-events.js): `js/saved-events.js`
- [Event Confirmation](https://github.com/elliots-boys/technova/blob/main/supabase/functions/send-event-confirmation/index.ts): `supabase/functions/send-event-confirmation/index.ts`

### Content and Insights

- [Article Feed](https://github.com/elliots-boys/technova/blob/main/js/article-feed.js): `js/article-feed.js`
- [Article Page](https://github.com/elliots-boys/technova/blob/main/js/article-page.js): `js/article-page.js`
- [Global Search](https://github.com/elliots-boys/technova/blob/main/js/global-search.js): `js/global-search.js`
- [CMS](https://github.com/elliots-boys/technova/blob/main/js/cms.js): `js/cms.js`
- [Reports](https://github.com/elliots-boys/technova/blob/main/js/reports.js): `js/reports.js`
- [Analytics](https://github.com/elliots-boys/technova/blob/main/js/analytics.js): `js/analytics.js`

### Platform Services

- [Phone OTP Hook](https://github.com/elliots-boys/technova/blob/main/supabase/functions/send-phone-otp/index.ts): `supabase/functions/send-phone-otp/index.ts`

### Other components

- **Visitor**
- **Supabase Auth**
- **Supabase Data**
- **Resend Email**
- **Webex SMS**

## Connections

- Authentication → Supabase Auth: authenticates users (evidence: `js/auth.js`)
- Authentication → Supabase Data: reads profiles (evidence: `js/auth.js`)
- Authentication → Supabase Data: updates registrations (evidence: `js/auth.js`)
- OAuth Consent → Supabase Auth: requests consent (evidence: `js/oauth-consent.js`)
- Authorized Apps → Supabase Auth: lists and revokes grants (evidence: `js/authorized-apps.js`)
- Developer Console → Developer OAuth API: sends app actions (evidence: `js/developer-oauth.js`)
- Developer OAuth API → Supabase Auth: validates session (evidence: `supabase/functions/developer-oauth-apps/index.ts`)
- Developer OAuth API → Supabase Data: stores app metadata (evidence: `supabase/functions/developer-oauth-apps/index.ts`)
- OAuth Test Start → Supabase Auth: redirects to authorize (evidence: `js/oauth-test.js`)
- OAuth Test Callback → Supabase Auth: exchanges code and fetches profile (evidence: `js/oauth-test-callback.js`)
- Global Search → Supabase Data: searches public tables (evidence: `js/global-search.js`)
- Event Confirmation → Supabase Auth: validates user token (evidence: `supabase/functions/send-event-confirmation/index.ts`)
- Event Confirmation → Supabase Data: reads event registration (evidence: `supabase/functions/send-event-confirmation/index.ts`)
- Event Confirmation → Resend Email: sends confirmation (evidence: `supabase/functions/send-event-confirmation/index.ts`)
- Phone OTP Hook → Webex SMS: sends verification SMS (evidence: `supabase/functions/send-phone-otp/index.ts`)
- Visitor → Authentication: signs in
- Visitor → Dashboard: uses workspace
- Visitor → Event Features: uses event features
- Visitor → Article Feed: browses content
