# javascript-mastery-pro/devflow architecture

> Architecture diagram of the GitHub repository javascript-mastery-pro/devflow, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/javascript-mastery-pro/devflow
- Repository: https://github.com/javascript-mastery-pro/devflow

## Overview

1. **Overall shape**
   - This is a **Next.js App Router** application for a StackOverflow-like community product (“Devoverflow”).
   - The repo is organized around **route groups** for public/auth pages and the main app shell, with most data access happening through **server actions** and **API route handlers** rather than a separate backend service.

2. **Primary user-facing surfaces**
   - The `app/(auth)` group contains **sign-in** and **sign-up** flows.
   - The `app/(root)` group contains the main product surfaces: **home**, **ask-question**, **questions/[id]**, **edit question**, **tags**, **community**, **profile**, **collections**, and **jobs**.
   - This indicates a single front-end application with multiple domain pages under a shared layout.

3. **Layout and shell boundaries**
   - `app/(root)/layout.tsx` and `components/navigation/*` define the persistent app shell: navbar, left/right sidebars, mobile navigation, theme toggle.
   - The layout is responsible for keeping the navigation and discovery patterns consistent across all “root” pages.
   - `app/(auth)/layout.tsx` provides a separate shell for authentication pages, isolating login/signup from the main app chrome.

4. **Domain model and persistence**
   - The `database/` directory contains **Mongoose models** for core entities: `user`, `account`, `question`, `answer`, `tag`, `vote`, `collection`, `interaction`, and `tag-question`.
   - This strongly suggests a **MongoDB-backed document model** with relational behavior implemented through model references and join-like collections.
   - `lib/mongoose.ts` and `database/index.ts` are the persistence boundary for connecting the app to MongoDB.

5. **Server-side business logic**
   - `lib/actions/*.ts` is the main application service layer.
   - Each action file maps to a domain area: auth, users, questions, answers, votes, tags, collections, jobs, interactions, and general utilities.
   - These actions likely encapsulate validation, authorization, data fetching, and mutations for use by server components and forms.

6. **HTTP/API boundary**
   - `app/api/*` exposes route handlers for external or client-side calls.
   - Notable endpoints include:
     - `api/auth/[...nextauth]` for **Auth.js / NextAuth** integration.
     - `api/auth/signin-with-oauth` for OAuth sign-in orchestration.
     - `api/users`, `api/accounts`, and `api/ai/answers` for user/account management and AI-generated answers.
   - This API layer is the clear boundary between browser interactions and backend behavior when server actions are not used directly.

7. **Authentication and authorization**
   - `auth.ts` and `app/api/auth/[...nextauth]/route.ts` show the app uses **NextAuth/Auth.js**.
   - Providers include **Google**, **GitHub**, and presumably **email/password** based on the README and auth forms.
   - `middleware.ts` likely protects authenticated routes and redirects unauthenticated users away from protected screens.

8. **Content creation and editing flows**
   - Question and answer creation are handled through `components/forms/QuestionForm.tsx`, `AnswerForm.tsx`, and `components/editor/*`.
   - The editor supports **rich content / MDX-like input** with preview and dark-mode styling, which is important for how questions and answers are stored and rendered.
   - Edit/delete actions are surfaced via user/action components like `EditDeleteAction` and `SaveQuestion`, tying UI affordances to authorization-aware mutations.

9. **Discovery, search, and filtering**
   - Search and filtering are first-class subsystems: `components/search/*`, `components/filters/*`, and `constants/filters.ts`.
   - These are reused across home, questions, community, tags, jobs, and collections pages.
   - `components/Pagination.tsx` and the various `page.tsx` routes indicate list pages are typically server-rendered with **paginated query results**.

10. **Engagement features**
   - Voting is a dedicated subsystem: `components/votes/Votes.tsx` with backing logic in `lib/actions/vote.action.ts` and `database/vote.model.ts`.
   - View/interaction tracking is represented by `interaction.model.ts` and interaction actions.
   - Collections/bookmarks, saved questions, and user stats create a second layer of engagement beyond raw Q&A content.

11. **AI and external integrations**
   - `app/api/ai/answers/route.ts` and the OpenAI mention in the README show a dedicated **AI answer generation** path.
   - The `jobs` page and `job.action.ts` suggest a **RapidAPI-backed job discovery** integration.
   - These are external-service driven features separated from core community data, which matters for architecture diagram boundaries.

12. **UI composition and reuse**
   - `components/cards/*`, `components/answers/*`, `components/user/*`, `components/ui/*`, and `components/Metric.tsx` form a reusable presentation layer.
   - `components/DataRenderer.tsx` and `GlobalResult.tsx` suggest a shared pattern for empty/loading/result states across list pages.
   - The repo leans on **ShadCN UI + Tailwind CSS**, with custom reusable primitives layered on top.

13. **State, theming, and client concerns**
   - `context/Theme.tsx` and `components/navigation/navbar/Theme.tsx` handle theme state.
   - `hooks/use-toast.ts` and the toaster components provide global feedback for mutations and errors.
   - `lib/logger.ts`, `lib/handlers/*`, `lib/http-errors.ts`, and `lib/validations.ts` centralize cross-cutting concerns like error handling and schema validation.

14. **Testing and quality boundaries**
   - The repo has substantial **unit, integration, and E2E** coverage under `tests/`.
   - There are dedicated test configs, DB setup files, fixtures, seeders, and mocks, indicating the architecture is designed to be testable at both the component and server-action/API levels.
   - Playwright is used for browser-level E2E scenarios, while Jest covers unit and server integration paths.

15. **Useful diagram takeaway**
   - A good architecture diagram should center on: **Next.js app shell → route groups/pages → shared UI components → server actions/API handlers → MongoDB/Mongoose models**, with side branches to **Auth.js**, **OpenAI**, and **job-data external APIs**.
   - The key separation is between **presentation**, **domain actions**, **HTTP endpoints**, and **persistence/integrations**.

Main entry points: [`database/index.ts`](https://github.com/javascript-mastery-pro/devflow/blob/main/database/index.ts) (DB Connect), [`app/(root)/layout.tsx`](https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/layout.tsx) (Main Shell), [`app/(root)/questions/[id]/page.tsx`](https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/questions/[id]/page.tsx) (Question Detail), [`lib/actions/question.action.ts`](https://github.com/javascript-mastery-pro/devflow/blob/main/lib/actions/question.action.ts) (Question Actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_g_app["App Shell"]
  node_app_layout["Root Layout<br/>next layout<br/>[layout.tsx]"]
  node_root_layout["Main Shell<br/>route layout<br/>[layout.tsx]"]
  node_auth_layout["Auth Shell<br/>route layout<br/>[layout.tsx]"]
  node_home_page["Home<br/>route page<br/>[page.tsx]"]
  node_ask_page["Ask Question<br/>route page<br/>[page.tsx]"]
  node_question_page["Question Detail<br/>route page<br/>[page.tsx]"]
  node_profile_page["Profile<br/>route page<br/>[page.tsx]"]
  node_community_page["Community<br/>route page<br/>[page.tsx]"]
  node_jobs_page["Jobs<br/>route page<br/>[page.tsx]"]
  node_auth_page["Sign In<br/>route page<br/>[page.tsx]"]
end

subgraph group_g_ui["UI Layer"]
  node_question_form["Question Form<br/>form component<br/>[QuestionForm.tsx]"]
  node_answer_form["Answer Form<br/>form component<br/>[AnswerForm.tsx]"]
  node_nav_shell["Navigation<br/>shell component<br/>[index.tsx]"]
  node_search_filters["Search & Filters<br/>discovery ui<br/>[GlobalSearch.tsx]"]
  node_vote_ui["Votes UI<br/>engagement component<br/>[Votes.tsx]"]
  node_save_question["Save Question<br/>bookmark component<br/>[SaveQuestion.tsx]"]
end

subgraph group_g_domain["Domain Services"]
  node_auth_actions["Auth Actions<br/>server actions<br/>[auth.action.ts]"]
  node_question_actions["Question Actions<br/>server actions<br/>[question.action.ts]"]
  node_answer_actions["Answer Actions<br/>server actions<br/>[answer.action.ts]"]
  node_vote_actions["Vote Actions<br/>server actions<br/>[vote.action.ts]"]
  node_user_actions["User Actions<br/>server actions<br/>[user.action.ts]"]
end

subgraph group_g_data["Persistence"]
  node_db_index[("DB Connect<br/>[index.ts]")]
  node_user_model[("User Model<br/>mongoose model<br/>[user.model.ts]")]
  node_question_model[("Question Model<br/>mongoose model<br/>[question.model.ts]")]
  node_answer_model[("Answer Model<br/>mongoose model<br/>[answer.model.ts]")]
  node_vote_model[("Vote Model<br/>mongoose model<br/>[vote.model.ts]")]
  node_tag_model[("Tag Model<br/>mongoose model<br/>[tag.model.ts]")]
  node_account_model[("Account Model<br/>mongoose model<br/>[account.model.ts]")]
end

subgraph group_g_ext["External Integrations"]
  node_ai_route["AI Answers API<br/>api route<br/>[route.ts]"]
  node_nextauth_route["Auth API<br/>api route<br/>[route.ts]"]
  node_user_api["Users API<br/>api route<br/>[route.ts]"]
end

node_app_layout -->|"renders"| node_root_layout
node_app_layout -->|"renders"| node_auth_layout
node_root_layout -->|"uses"| node_nav_shell
node_auth_layout -->|"hosts"| node_auth_page
node_root_layout -->|"routes to"| node_home_page
node_root_layout -->|"routes to"| node_ask_page
node_root_layout -->|"routes to"| node_question_page
node_root_layout -->|"routes to"| node_profile_page
node_root_layout -->|"routes to"| node_community_page
node_root_layout -->|"routes to"| node_jobs_page
node_home_page -->|"uses"| node_search_filters
node_community_page -->|"uses"| node_search_filters
node_jobs_page -->|"uses"| node_search_filters
node_ask_page -->|"uses"| node_question_form
node_question_page -->|"uses"| node_answer_form
node_question_page -->|"uses"| node_vote_ui
node_question_page -->|"uses"| node_save_question
node_question_form -->|"submits to"| node_question_actions
node_answer_form -->|"submits to"| node_answer_actions
node_vote_ui -->|"calls"| node_vote_actions
node_save_question -->|"calls"| node_question_actions
node_auth_page -->|"submits to"| node_auth_actions
node_auth_actions -->|"integrates"| node_nextauth_route
node_user_api -->|"delegates"| node_user_actions
node_question_actions -->|"reads/writes"| node_db_index
node_answer_actions -->|"reads/writes"| node_db_index
node_vote_actions -->|"reads/writes"| node_db_index
node_user_actions -->|"reads/writes"| node_db_index
node_db_index -->|"loads"| node_user_model
node_db_index -->|"loads"| node_question_model
node_db_index -->|"loads"| node_answer_model
node_db_index -->|"loads"| node_vote_model
node_db_index -->|"loads"| node_tag_model
node_db_index -->|"loads"| node_account_model
node_question_actions -.->|"enables"| node_ai_route
node_auth_actions -->|"links"| node_account_model

click node_app_layout "https://github.com/javascript-mastery-pro/devflow/blob/main/app/layout.tsx"
click node_root_layout "https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/layout.tsx"
click node_auth_layout "https://github.com/javascript-mastery-pro/devflow/blob/main/app/(auth)/layout.tsx"
click node_home_page "https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/page.tsx"
click node_ask_page "https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/ask-question/page.tsx"
click node_question_page "https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/questions/[id]/page.tsx"
click node_profile_page "https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/profile/[id]/page.tsx"
click node_community_page "https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/community/page.tsx"
click node_jobs_page "https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/jobs/page.tsx"
click node_auth_page "https://github.com/javascript-mastery-pro/devflow/blob/main/app/(auth)/sign-in/page.tsx"
click node_question_form "https://github.com/javascript-mastery-pro/devflow/blob/main/components/forms/QuestionForm.tsx"
click node_answer_form "https://github.com/javascript-mastery-pro/devflow/blob/main/components/forms/AnswerForm.tsx"
click node_nav_shell "https://github.com/javascript-mastery-pro/devflow/blob/main/components/navigation/navbar/index.tsx"
click node_search_filters "https://github.com/javascript-mastery-pro/devflow/blob/main/components/search/GlobalSearch.tsx"
click node_vote_ui "https://github.com/javascript-mastery-pro/devflow/blob/main/components/votes/Votes.tsx"
click node_save_question "https://github.com/javascript-mastery-pro/devflow/blob/main/components/questions/SaveQuestion.tsx"
click node_auth_actions "https://github.com/javascript-mastery-pro/devflow/blob/main/lib/actions/auth.action.ts"
click node_question_actions "https://github.com/javascript-mastery-pro/devflow/blob/main/lib/actions/question.action.ts"
click node_answer_actions "https://github.com/javascript-mastery-pro/devflow/blob/main/lib/actions/answer.action.ts"
click node_vote_actions "https://github.com/javascript-mastery-pro/devflow/blob/main/lib/actions/vote.action.ts"
click node_user_actions "https://github.com/javascript-mastery-pro/devflow/blob/main/lib/actions/user.action.ts"
click node_ai_route "https://github.com/javascript-mastery-pro/devflow/blob/main/app/api/ai/answers/route.ts"
click node_nextauth_route "https://github.com/javascript-mastery-pro/devflow/blob/main/app/api/auth/[...nextauth]/route.ts"
click node_user_api "https://github.com/javascript-mastery-pro/devflow/blob/main/app/api/users/route.ts"
click node_db_index "https://github.com/javascript-mastery-pro/devflow/blob/main/database/index.ts"
click node_user_model "https://github.com/javascript-mastery-pro/devflow/blob/main/database/user.model.ts"
click node_question_model "https://github.com/javascript-mastery-pro/devflow/blob/main/database/question.model.ts"
click node_answer_model "https://github.com/javascript-mastery-pro/devflow/blob/main/database/answer.model.ts"
click node_vote_model "https://github.com/javascript-mastery-pro/devflow/blob/main/database/vote.model.ts"
click node_tag_model "https://github.com/javascript-mastery-pro/devflow/blob/main/database/tag.model.ts"
click node_account_model "https://github.com/javascript-mastery-pro/devflow/blob/main/database/account.model.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_app_layout,node_root_layout,node_auth_layout,node_home_page,node_ask_page,node_question_page,node_profile_page,node_community_page,node_jobs_page,node_auth_page toneBlue
class node_question_form,node_answer_form,node_nav_shell,node_search_filters,node_vote_ui,node_save_question toneAmber
class node_auth_actions,node_question_actions,node_answer_actions,node_vote_actions,node_user_actions toneMint
class node_db_index,node_user_model,node_question_model,node_answer_model,node_vote_model,node_tag_model,node_account_model toneRose
class node_ai_route,node_nextauth_route,node_user_api toneIndigo
```

## Components

### App Shell

Next.js route groups, layouts, and API boundaries

- [Root Layout](https://github.com/javascript-mastery-pro/devflow/blob/main/app/layout.tsx): next layout · Top-level document shell and global providers · `app/layout.tsx`
- [Main Shell](https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/layout.tsx): route layout · Persistent app chrome for authenticated/community pages · `app/(root)/layout.tsx`
- [Auth Shell](https://github.com/javascript-mastery-pro/devflow/blob/main/app/(auth)/layout.tsx): route layout · Separate layout for sign-in and sign-up flows · `app/(auth)/layout.tsx`
- [Home](https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/page.tsx): route page · Main feed and discovery entrypoint · `app/(root)/page.tsx`
- [Ask Question](https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/ask-question/page.tsx): route page · Question creation screen · `app/(root)/ask-question/page.tsx`
- [Question Detail](https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/questions/[id]/page.tsx): route page · Question and answers view · `app/(root)/questions/[id]/page.tsx`
- [Profile](https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/profile/[id]/page.tsx): route page · User profile and activity view · `app/(root)/profile/[id]/page.tsx`
- [Community](https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/community/page.tsx): route page · Community directory and discovery page · `app/(root)/community/page.tsx`
- [Jobs](https://github.com/javascript-mastery-pro/devflow/blob/main/app/(root)/jobs/page.tsx): route page · External job discovery page · `app/(root)/jobs/page.tsx`
- [Sign In](https://github.com/javascript-mastery-pro/devflow/blob/main/app/(auth)/sign-in/page.tsx): route page · Authentication entry page · `app/(auth)/sign-in/page.tsx`

### UI Layer

Reusable components and client-side composition

- [Question Form](https://github.com/javascript-mastery-pro/devflow/blob/main/components/forms/QuestionForm.tsx): form component · Create and edit question UI · `components/forms/QuestionForm.tsx`
- [Answer Form](https://github.com/javascript-mastery-pro/devflow/blob/main/components/forms/AnswerForm.tsx): form component · Answer creation UI · `components/forms/AnswerForm.tsx`
- [Navigation](https://github.com/javascript-mastery-pro/devflow/blob/main/components/navigation/navbar/index.tsx): shell component · Navbar, sidebars, and mobile navigation · `components/navigation/navbar/index.tsx`
- [Search & Filters](https://github.com/javascript-mastery-pro/devflow/blob/main/components/search/GlobalSearch.tsx): discovery ui · Shared search and filter controls across list pages · `components/search/GlobalSearch.tsx`
- [Votes UI](https://github.com/javascript-mastery-pro/devflow/blob/main/components/votes/Votes.tsx): engagement component · Voting controls for questions and answers · `components/votes/Votes.tsx`
- [Save Question](https://github.com/javascript-mastery-pro/devflow/blob/main/components/questions/SaveQuestion.tsx): bookmark component · Save/bookmark action for questions · `components/questions/SaveQuestion.tsx`

### Domain Services

Server actions and cross-cutting logic

- [Auth Actions](https://github.com/javascript-mastery-pro/devflow/blob/main/lib/actions/auth.action.ts): server actions · Authentication and user session mutations · `lib/actions/auth.action.ts`
- [Question Actions](https://github.com/javascript-mastery-pro/devflow/blob/main/lib/actions/question.action.ts): server actions · Question CRUD and list queries · `lib/actions/question.action.ts`
- [Answer Actions](https://github.com/javascript-mastery-pro/devflow/blob/main/lib/actions/answer.action.ts): server actions · Answer CRUD and moderation logic · `lib/actions/answer.action.ts`
- [Vote Actions](https://github.com/javascript-mastery-pro/devflow/blob/main/lib/actions/vote.action.ts): server actions · Vote and reputation mutations · `lib/actions/vote.action.ts`
- [User Actions](https://github.com/javascript-mastery-pro/devflow/blob/main/lib/actions/user.action.ts): server actions · Profile, account, and user data logic · `lib/actions/user.action.ts`

### Persistence

MongoDB models and connection boundary

- [DB Connect](https://github.com/javascript-mastery-pro/devflow/blob/main/database/index.ts): mongodb connector · Mongoose connection and model initialization · `database/index.ts`
- [User Model](https://github.com/javascript-mastery-pro/devflow/blob/main/database/user.model.ts): mongoose model · User document model · `database/user.model.ts`
- [Question Model](https://github.com/javascript-mastery-pro/devflow/blob/main/database/question.model.ts): mongoose model · Question document model · `database/question.model.ts`
- [Answer Model](https://github.com/javascript-mastery-pro/devflow/blob/main/database/answer.model.ts): mongoose model · Answer document model · `database/answer.model.ts`
- [Vote Model](https://github.com/javascript-mastery-pro/devflow/blob/main/database/vote.model.ts): mongoose model · Vote document model · `database/vote.model.ts`
- [Tag Model](https://github.com/javascript-mastery-pro/devflow/blob/main/database/tag.model.ts): mongoose model · Tag document model · `database/tag.model.ts`
- [Account Model](https://github.com/javascript-mastery-pro/devflow/blob/main/database/account.model.ts): mongoose model · OAuth/account linkage model · `database/account.model.ts`

### External Integrations

Auth, AI, and other outside services

- [AI Answers API](https://github.com/javascript-mastery-pro/devflow/blob/main/app/api/ai/answers/route.ts): api route · AI-assisted answer generation endpoint · `app/api/ai/answers/route.ts`
- [Auth API](https://github.com/javascript-mastery-pro/devflow/blob/main/app/api/auth/[...nextauth]/route.ts): api route · NextAuth/Auth.js route handler · `app/api/auth/[...nextauth]/route.ts`
- [Users API](https://github.com/javascript-mastery-pro/devflow/blob/main/app/api/users/route.ts): api route · User management HTTP boundary · `app/api/users/route.ts`

## Connections

- Root Layout → Main Shell: renders · Root document wraps the main app shell
- Root Layout → Auth Shell: renders · Root document also hosts the auth shell
- Main Shell → Navigation: uses · Main pages share persistent navigation chrome
- Auth Shell → Sign In: hosts · Auth shell contains sign-in and sign-up pages
- Main Shell → Home: routes to · Main shell serves the home feed
- Main Shell → Ask Question: routes to · Question creation lives under the main shell
- Main Shell → Question Detail: routes to · Question detail page is part of the app shell
- Main Shell → Profile: routes to · Profile pages use the shared shell
- Main Shell → Community: routes to · Community discovery is a root surface
- Main Shell → Jobs: routes to · Jobs browsing is part of the main product
- Home → Search & Filters: uses · Home feed relies on shared discovery controls
- Community → Search & Filters: uses · Community listing reuses shared filters
- Jobs → Search & Filters: uses · Jobs page uses specialized filter UI
- Ask Question → Question Form: uses · Question creation is powered by the shared form
- Question Detail → Answer Form: uses · Answer submission is available on detail pages
- Question Detail → Votes UI: uses · Voting is embedded in question and answer views
- Question Detail → Save Question: uses · Users can bookmark questions from detail views
- Question Form → Question Actions: submits to · Create/edit question mutations are server-side
- Answer Form → Answer Actions: submits to · Answer mutations go through server actions
- Votes UI → Vote Actions: calls · Vote interactions update through domain actions
- Save Question → Question Actions: calls · Saved-question behavior depends on question logic
- Sign In → Auth Actions: submits to · Auth forms use the authentication action layer
- Auth Actions → Auth API: integrates · Authentication logic is tied to the NextAuth route
- Users API → User Actions: delegates · User HTTP endpoints delegate into user actions
- Question Actions → DB Connect: reads/writes · Question logic persists through the MongoDB boundary
- Answer Actions → DB Connect: reads/writes · Answer logic persists through the MongoDB boundary
- Vote Actions → DB Connect: reads/writes · Vote logic persists through the MongoDB boundary
- User Actions → DB Connect: reads/writes · User and profile logic persists through MongoDB
- DB Connect → User Model: loads · Connection layer registers the user model
- DB Connect → Question Model: loads · Connection layer registers the question model
- DB Connect → Answer Model: loads · Connection layer registers the answer model
- DB Connect → Vote Model: loads · Connection layer registers the vote model
- DB Connect → Tag Model: loads · Connection layer registers the tag model
- DB Connect → Account Model: loads · Connection layer registers the account model
- Question Actions → AI Answers API: enables · Question flows can request AI-generated answers
- Auth Actions → Account Model: links · OAuth and account linking depend on account persistence
