# surajmgr/nexus architecture

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

- Interactive diagram: https://gitdiagram.com/surajmgr/nexus
- Repository: https://github.com/surajmgr/nexus

## Overview

1. **Repository purpose**
   - This is a **Docusaurus-based documentation website**, not an application backend.
   - The site’s architecture is centered on **static content + React-based site customization + GitHub Actions deployment**.

2. **Primary runtime boundary**
   - At build time, Docusaurus compiles Markdown/MDX, React pages, and static assets into a **static site**.
   - At runtime, the result is just a hosted static website; there is no visible server-side application layer in the repo.

3. **Content subsystem**
   - Most of the repository is documentation content under:
     - `docs/` for top-level site docs,
     - `blog/` for blog posts,
     - `projects/` for product/project-specific doc sites.
   - The `projects/` folder is a major organizational boundary: it contains separate documentation spaces for **cryt**, **fortihub**, **sparqchat**, and **vocus**.

4. **Multi-project documentation model**
   - Each project under `projects/*` has its own `docs/`, `intro.md`, and `sidebars.ts`.
   - This implies the site is structured as a **multi-tenant documentation portal**, where each product area has its own navigation and content hierarchy.
   - `projects/vocus` is the most fully developed area, with internal docs for architecture, API reference, advanced topics, widgets, and developer guides.

5. **Site shell and navigation**
   - Root-level Docusaurus configuration files (`docusaurus.config.ts`, `sidebars.ts`) define the shared site frame, navigation, and global documentation behavior.
   - The global docs under `docs/` and the project-specific sidebars together form the primary information architecture.

6. **Custom React UI layer**
   - The `src/components/` directory contains the main customization layer:
     - `InteractiveGuide`
     - reusable UI utilities like `Collapsible`
     - Canny-related feedback components
   - These components sit on top of Docusaurus and are used to enrich the static docs with interactive UI where needed.

7. **Feedback subsystem**
   - `src/pages/feedback/` and `src/components/canny/` indicate a dedicated feedback experience, likely integrating with an external feedback service.
   - `src/plugins/feedback-route-plugin/` suggests a custom Docusaurus plugin used to add or shape routing for that feedback flow.
   - Architecturally, this is the main non-docs functional feature in the site.

8. **Page-level routing**
   - `src/pages/` contains custom site pages such as:
     - home page,
     - privacy,
     - terms,
     - markdown-based content pages,
     - feedback page.
   - These pages form the “application-like” parts of the site, separate from the doc system.

9. **Static asset boundary**
   - `static/` holds files served directly without processing, including:
     - `.well-known` assets,
     - web manifest files,
     - author assets,
     - other site resources.
   - This is the static delivery layer for browser-visible assets.

10. **Documentation structure inside Vocus**
   - The `projects/vocus/docs/internal/` tree shows the clearest internal architecture of the product documentation:
     - **architecture**: layers, data model, auth modes, security
     - **api-reference**: comments, threads, votes, projects, errors
     - **advanced**: moderation, notifications, search, rate limiting, observability
     - **widgets**: embed setup, customization, SDK, SSO integration
     - **developers**: setup, deployment, testing, service/repository patterns
   - This strongly suggests the site documents a product with both a core API and embeddable widget surface.

11. **Build and deployment pipeline**
   - The repository uses **pnpm/yarn-style Node tooling** and GitHub Actions workflows under `.github/workflows/`.
   - `deploy.yml` and `test-deploy.yml` imply CI/CD validation plus a deployment job that publishes the built static site, likely to GitHub Pages or another static host.
   - The README confirms the build artifact is the `build/` directory produced by Docusaurus.

12. **Practical architecture summary**
   - Think of the repo as three layers:
     - **Content layer**: Markdown/MDX docs, blogs, project docs
     - **Presentation layer**: Docusaurus pages, React components, plugins, sidebars
     - **Delivery layer**: static build output plus GitHub Actions deployment
   - The key “data flow” is: authored content and UI code → Docusaurus build → static site deployment.

13. **What matters most for a diagram**
   - The important boundaries are between:
     - global site vs per-project docs,
     - standard docs vs custom pages/components,
     - build-time content generation vs deployed static hosting,
     - core documentation experience vs feedback integration.

Main entry points: [`projects`](https://github.com/surajmgr/nexus/tree/main/projects) (Projects), [`projects/cryt`](https://github.com/surajmgr/nexus/tree/main/projects/cryt) (Cryt), [`projects/fortihub`](https://github.com/surajmgr/nexus/tree/main/projects/fortihub) (Fortihub), [`projects/sparqchat`](https://github.com/surajmgr/nexus/tree/main/projects/sparqchat) (Sparqchat)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Content"]
  node_docs_root["Docs<br/>content tree"]
  node_blog_root["Blog<br/>content tree"]
end

subgraph group_presentation["Presentation"]
  node_docusaurus_config["Docusaurus config<br/>site config"]
  node_root_sidebars["Site sidebars<br/>nav config<br/>[sidebars.ts]"]
  node_src_pages["Pages"]
  node_src_components["Components<br/>ui layer"]
  node_feedback_plugin["Feedback plugin<br/>docusaurus plugin"]
  node_static_assets["Static assets<br/>asset bucket"]
end

subgraph group_projects["Project Docs"]
  node_projects_root["Projects<br/>doc portal"]
  node_cryt_docs["Cryt<br/>project docs"]
  node_fortihub_docs["Fortihub<br/>project docs"]
  node_sparqchat_docs["Sparqchat<br/>project docs"]
  node_vocus_docs["Vocus<br/>project docs"]
  node_vocus_internal["Vocus internals<br/>doc hierarchy"]
end

subgraph group_delivery["Delivery"]
  node_build_pipeline{{"Build"}}
  node_static_site[("Static site<br/>deploy artifact")]
  node_deploy_workflow["Deploy workflow<br/>ci workflow<br/>[deploy.yml]"]
  node_test_deploy_workflow["Test deploy<br/>ci workflow<br/>[test-deploy.yml]"]
end

node_docs_root -->|"content"| node_build_pipeline
node_blog_root -->|"content"| node_build_pipeline
node_projects_root -->|"contains"| node_cryt_docs
node_projects_root -->|"contains"| node_fortihub_docs
node_projects_root -->|"contains"| node_sparqchat_docs
node_projects_root -->|"contains"| node_vocus_docs
node_vocus_docs -->|"organizes"| node_vocus_internal
node_cryt_docs -->|"content"| node_build_pipeline
node_fortihub_docs -->|"content"| node_build_pipeline
node_sparqchat_docs -->|"content"| node_build_pipeline
node_vocus_internal -->|"content"| node_build_pipeline
node_src_pages -->|"pages"| node_build_pipeline
node_src_components -->|"ui"| node_build_pipeline
node_feedback_plugin -->|"routing"| node_build_pipeline
node_static_assets -->|"assets"| node_build_pipeline
node_docusaurus_config -->|"config"| node_build_pipeline
node_root_sidebars -->|"navigation"| node_build_pipeline
node_build_pipeline -->|"output"| node_static_site
node_deploy_workflow -->|"publishes"| node_static_site
node_test_deploy_workflow -.->|"validates"| node_deploy_workflow

click node_docusaurus_config "https://github.com/surajmgr/nexus/blob/main/docusaurus.config.ts"
click node_root_sidebars "https://github.com/surajmgr/nexus/blob/main/sidebars.ts"
click node_docs_root "https://github.com/surajmgr/nexus/tree/main/docs"
click node_blog_root "https://github.com/surajmgr/nexus/tree/main/blog"
click node_projects_root "https://github.com/surajmgr/nexus/tree/main/projects"
click node_cryt_docs "https://github.com/surajmgr/nexus/tree/main/projects/cryt"
click node_fortihub_docs "https://github.com/surajmgr/nexus/tree/main/projects/fortihub"
click node_sparqchat_docs "https://github.com/surajmgr/nexus/tree/main/projects/sparqchat"
click node_vocus_docs "https://github.com/surajmgr/nexus/tree/main/projects/vocus"
click node_vocus_internal "https://github.com/surajmgr/nexus/tree/main/projects/vocus/docs/internal"
click node_src_pages "https://github.com/surajmgr/nexus/tree/main/src/pages"
click node_src_components "https://github.com/surajmgr/nexus/tree/main/src/components"
click node_feedback_plugin "https://github.com/surajmgr/nexus/tree/main/src/plugins/feedback-route-plugin"
click node_static_assets "https://github.com/surajmgr/nexus/tree/main/static"
click node_deploy_workflow "https://github.com/surajmgr/nexus/blob/main/.github/workflows/deploy.yml"
click node_test_deploy_workflow "https://github.com/surajmgr/nexus/blob/main/.github/workflows/test-deploy.yml"

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_docs_root,node_blog_root toneBlue
class node_docusaurus_config,node_root_sidebars,node_src_pages,node_src_components,node_feedback_plugin,node_static_assets toneAmber
class node_projects_root,node_cryt_docs,node_fortihub_docs,node_sparqchat_docs,node_vocus_docs,node_vocus_internal toneMint
class node_build_pipeline,node_static_site,node_deploy_workflow,node_test_deploy_workflow toneRose
```

## Components

### Content

Authored documentation and blog content.

- [Docs](https://github.com/surajmgr/nexus/tree/main/docs): content tree · Primary site documentation content. · `docs`
- [Blog](https://github.com/surajmgr/nexus/tree/main/blog): content tree · News and post-style content. · `blog`

### Presentation

Docusaurus site shell, React customization, and plugins.

- [Docusaurus config](https://github.com/surajmgr/nexus/blob/main/docusaurus.config.ts): site config · Global Docusaurus site behavior and navigation. · `docusaurus.config.ts`
- [Site sidebars](https://github.com/surajmgr/nexus/blob/main/sidebars.ts): nav config · Top-level documentation navigation structure. · `sidebars.ts`
- [Pages](https://github.com/surajmgr/nexus/tree/main/src/pages): react pages · Custom site pages such as home, privacy, terms, and feedback. · `src/pages`
- [Components](https://github.com/surajmgr/nexus/tree/main/src/components): ui layer · Reusable React components for guides, UI utilities, and Canny integration. · `src/components`
- [Feedback plugin](https://github.com/surajmgr/nexus/tree/main/src/plugins/feedback-route-plugin): docusaurus plugin · Custom route plugin for the feedback flow. · `src/plugins/feedback-route-plugin`
- [Static assets](https://github.com/surajmgr/nexus/tree/main/static): asset bucket · Files served directly without Docusaurus processing. · `static`

### Project Docs

Per-project documentation spaces and their navigation.

- [Projects](https://github.com/surajmgr/nexus/tree/main/projects): doc portal · Multi-project documentation boundary. · `projects`
- [Cryt](https://github.com/surajmgr/nexus/tree/main/projects/cryt): project docs · Documentation space for Cryt. · `projects/cryt`
- [Fortihub](https://github.com/surajmgr/nexus/tree/main/projects/fortihub): project docs · Documentation space for Fortihub. · `projects/fortihub`
- [Sparqchat](https://github.com/surajmgr/nexus/tree/main/projects/sparqchat): project docs · Documentation space for Sparqchat. · `projects/sparqchat`
- [Vocus](https://github.com/surajmgr/nexus/tree/main/projects/vocus): project docs · Most developed project documentation space. · `projects/vocus`
- [Vocus internals](https://github.com/surajmgr/nexus/tree/main/projects/vocus/docs/internal): doc hierarchy · Architecture, API, advanced topics, widgets, and developer guides. · `projects/vocus/docs/internal`

### Delivery

Build and deployment pipeline for the static site.

- **Build**: site build · Docusaurus compilation from content and UI code into a static site.
- **Static site**: deploy artifact · Generated site output ready for hosting.
- [Deploy workflow](https://github.com/surajmgr/nexus/blob/main/.github/workflows/deploy.yml): ci workflow · GitHub Actions deployment job. · `.github/workflows/deploy.yml`
- [Test deploy](https://github.com/surajmgr/nexus/blob/main/.github/workflows/test-deploy.yml): ci workflow · GitHub Actions validation workflow for deployment readiness. · `.github/workflows/test-deploy.yml`

## Connections

- Docs → Build: content · Docs are compiled into the site build.
- Blog → Build: content · Blog content is included in the build.
- Projects → Cryt: contains · Projects portal branches into Cryt docs.
- Projects → Fortihub: contains · Projects portal branches into Fortihub docs.
- Projects → Sparqchat: contains · Projects portal branches into Sparqchat docs.
- Projects → Vocus: contains · Projects portal branches into Vocus docs.
- Vocus → Vocus internals: organizes · Vocus contains the richest internal documentation hierarchy.
- Cryt → Build: content · Project docs feed the site build.
- Fortihub → Build: content · Project docs feed the site build.
- Sparqchat → Build: content · Project docs feed the site build.
- Vocus internals → Build: content · Deep Vocus docs are compiled into the site build.
- Pages → Build: pages · Custom pages are part of the build.
- Components → Build: ui · React components customize the rendered site.
- Feedback plugin → Build: routing · Custom plugin shapes the feedback experience during build.
- Static assets → Build: assets · Static files are copied into the final site.
- Docusaurus config → Build: config · Global site configuration drives the build.
- Site sidebars → Build: navigation · Top-level navigation is resolved at build time.
- Build → Static site: output · Build produces the deployable static artifact.
- Deploy workflow → Static site: publishes · Deployment workflow publishes the built site.
- Test deploy → Deploy workflow: validates · Test workflow guards deployment readiness.
