# yashaswinir24/cmp_research_atlas_deploy architecture

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

- Interactive diagram: https://gitdiagram.com/yashaswinir24/cmp_research_atlas_deploy
- Repository: https://github.com/yashaswinir24/cmp_research_atlas_deploy

## Overview

#### Purpose and Runtime
CMP Research Atlas is an internal research operating-system dashboard for the CMP project. It is a Next.js App Router application, rendered through route-level React pages and deployable to Vercel. It has no visible API routes, database layer, or external-service integrations; its current research state is local static data.

Key runtime/configuration paths: `package.json`, `next.config.ts`, `app/layout.tsx`.

#### Application Shell and Navigation
The root layout establishes shared application framing, global styles, and optimized Geist font loading. A reusable sidebar provides cross-section navigation, making the atlas a persistent workspace rather than independent pages.

Paths: `app/layout.tsx`, `app/globals.css`, `components/Sidebar.tsx`.

#### Route-Level Research Views
Each primary research domain is a dedicated App Router page. The landing route is the main entry point; domain routes expose project perspectives such as claims, hypotheses, evidence/discoveries, papers, timeline, and architecture.

Paths: `app/page.tsx`, `app/claims/page.tsx`, `app/hypotheses/page.tsx`, `app/discoveries/page.tsx`, `app/papers/page.tsx`, `app/timeline/page.tsx`, `app/architecture/page.tsx`.

#### Research Data Boundary
Research content is represented as repository-managed static modules and JSON. `data/index.ts` likely acts as the aggregation/import boundary consumed by pages, while experiment records and phase definitions provide structured inputs for progress and timeline-oriented views. Type definitions constrain these records across the UI.

Paths: `data/index.ts`, `data/experiments.json`, `data/phases.ts`, `lib/types.ts`.

#### Core Information Flow
The primary flow is static data → typed/normalized imports → route page composition → reusable visual components. There is no indicated mutation, authentication, server action, remote fetch, or persistence boundary. Changes to research data or page code are reflected through Next.js development hot reload and emitted as a static/server-rendered application at build/deploy time.

Paths: `data/index.ts`, `lib/types.ts`, `app/page.tsx`.

#### Presentation System
Pages are composed from a local UI primitive set—cards, tabs, badges, progress indicators, inputs, separators, and buttons—supplemented by shared UI utilities. Tailwind CSS and the component configuration form the styling boundary; these components should remain the preferred interface for consistent research-status visualization.

Paths: `components/ui/card.tsx`, `components/ui/tabs.tsx`, `components/ui/progress.tsx`, `lib/ui.ts`, `tailwind.config.ts`.

#### Infrastructure and Delivery
Development runs via the package scripts on localhost:3000. Next.js supplies routing, font optimization, compilation, and production serving; Vercel is the documented deployment target. The repository’s lockfile indicates npm is the canonical dependency-resolution path.

Paths: `package.json`, `package-lock.json`, `next.config.ts`.

Main entry points: [`app/layout.tsx`](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/layout.tsx) (Root layout), [`data/index.ts`](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/data/index.ts) (Research data index), [`components/ui/card.tsx`](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/components/ui/card.tsx) (UI primitives), [`package.json`](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/package.json) (Package scripts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Next.js Runtime"]
  node_next_config["Next configuration<br/>Next.js config<br/>[next.config.ts]"]
  node_root_layout["Root layout<br/>App shell<br/>[layout.tsx]"]
  node_global_styles["Global styles<br/>CSS<br/>[globals.css]"]
end

subgraph group_routes["Research Routes"]
  node_landing_page["Atlas landing<br/>Route page<br/>[page.tsx]"]
  node_claims_page["Claims<br/>Route page<br/>[page.tsx]"]
  node_hypotheses_page["Hypotheses<br/>Route page<br/>[page.tsx]"]
  node_discoveries_page["Discoveries<br/>Route page<br/>[page.tsx]"]
  node_papers_page["Papers<br/>Route page<br/>[page.tsx]"]
  node_timeline_page["Timeline<br/>Route page<br/>[page.tsx]"]
  node_architecture_page["Architecture<br/>Route page<br/>[page.tsx]"]
end

subgraph group_data["Static Research Data"]
  node_data_index["Research data index<br/>Data aggregation<br/>[index.ts]"]
  node_experiments["Experiment records<br/>Static JSON<br/>[experiments.json]"]
  node_phases["Phase definitions<br/>Static module<br/>[phases.ts]"]
  node_types["Research types<br/>Type definitions<br/>[types.ts]"]
end

subgraph group_ui["Presentation System"]
  node_sidebar["Sidebar navigation<br/>Shared component<br/>[Sidebar.tsx]"]
  node_ui_primitives["UI primitives<br/>Component library<br/>[card.tsx]"]
  node_ui_utilities["UI utilities<br/>UI helpers<br/>[ui.ts]"]
  node_tailwind["Tailwind styling<br/>Style configuration<br/>[tailwind.config.ts]"]
end

subgraph group_delivery["Delivery"]
  node_package["Package scripts<br/>npm manifest<br/>[package.json]"]
  node_lockfile["Dependency lockfile<br/>npm lockfile<br/>[package-lock.json]"]
  node_vercel{{"Vercel deployment<br/>Hosting target"}}
end

node_package -->|"resolves dependencies"| node_lockfile
node_package -->|"runs Next.js"| node_next_config
node_next_config -->|"configures runtime"| node_root_layout
node_root_layout -->|"imports"| node_global_styles
node_root_layout -->|"renders"| node_sidebar
node_root_layout -->|"wraps"| node_landing_page
node_root_layout -->|"wraps"| node_claims_page
node_root_layout -->|"wraps"| node_hypotheses_page
node_root_layout -->|"wraps"| node_discoveries_page
node_root_layout -->|"wraps"| node_papers_page
node_root_layout -->|"wraps"| node_timeline_page
node_root_layout -->|"wraps"| node_architecture_page
node_experiments -->|"aggregated by"| node_data_index
node_phases -->|"aggregated by"| node_data_index
node_types -->|"types"| node_data_index
node_data_index -->|"supplies research state"| node_landing_page
node_data_index -->|"supplies content"| node_claims_page
node_data_index -->|"supplies content"| node_hypotheses_page
node_data_index -->|"supplies content"| node_discoveries_page
node_data_index -->|"supplies content"| node_papers_page
node_data_index -->|"supplies phase data"| node_timeline_page
node_ui_primitives -->|"composes"| node_landing_page
node_ui_primitives -->|"visualizes progress"| node_timeline_page
node_ui_utilities -->|"supports"| node_ui_primitives
node_tailwind -->|"styles"| node_ui_primitives
node_package -.->|"builds for deployment"| node_vercel

click node_package "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/package.json"
click node_lockfile "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/package-lock.json"
click node_next_config "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/next.config.ts"
click node_root_layout "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/layout.tsx"
click node_global_styles "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/globals.css"
click node_sidebar "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/components/Sidebar.tsx"
click node_landing_page "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/page.tsx"
click node_claims_page "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/claims/page.tsx"
click node_hypotheses_page "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/hypotheses/page.tsx"
click node_discoveries_page "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/discoveries/page.tsx"
click node_papers_page "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/papers/page.tsx"
click node_timeline_page "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/timeline/page.tsx"
click node_architecture_page "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/architecture/page.tsx"
click node_data_index "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/data/index.ts"
click node_experiments "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/data/experiments.json"
click node_phases "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/data/phases.ts"
click node_types "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/lib/types.ts"
click node_ui_primitives "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/components/ui/card.tsx"
click node_ui_utilities "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/lib/ui.ts"
click node_tailwind "https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/tailwind.config.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_next_config,node_root_layout,node_global_styles toneBlue
class node_landing_page,node_claims_page,node_hypotheses_page,node_discoveries_page,node_papers_page,node_timeline_page,node_architecture_page toneAmber
class node_data_index,node_experiments,node_phases,node_types toneMint
class node_sidebar,node_ui_primitives,node_ui_utilities,node_tailwind toneRose
class node_package,node_lockfile,node_vercel toneIndigo
```

## Components

### Next.js Runtime

- [Next configuration](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/next.config.ts): Next.js config · `next.config.ts`
- [Root layout](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/layout.tsx): App shell · Applies global framing and Geist fonts. · `app/layout.tsx`
- [Global styles](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/globals.css): CSS · `app/globals.css`

### Research Routes

- [Atlas landing](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/page.tsx): Route page · Main research workspace entry point. · `app/page.tsx`
- [Claims](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/claims/page.tsx): Route page · `app/claims/page.tsx`
- [Hypotheses](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/hypotheses/page.tsx): Route page · `app/hypotheses/page.tsx`
- [Discoveries](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/discoveries/page.tsx): Route page · `app/discoveries/page.tsx`
- [Papers](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/papers/page.tsx): Route page · `app/papers/page.tsx`
- [Timeline](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/timeline/page.tsx): Route page · `app/timeline/page.tsx`
- [Architecture](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/app/architecture/page.tsx): Route page · `app/architecture/page.tsx`

### Static Research Data

- [Research data index](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/data/index.ts): Data aggregation · Typed import boundary consumed by route pages. · `data/index.ts`
- [Experiment records](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/data/experiments.json): Static JSON · `data/experiments.json`
- [Phase definitions](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/data/phases.ts): Static module · `data/phases.ts`
- [Research types](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/lib/types.ts): Type definitions · Constrains research records across the UI. · `lib/types.ts`

### Presentation System

- [Sidebar navigation](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/components/Sidebar.tsx): Shared component · Provides persistent cross-section navigation. · `components/Sidebar.tsx`
- [UI primitives](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/components/ui/card.tsx): Component library · Cards, tabs, and progress visualization primitives. · `components/ui/card.tsx`
- [UI utilities](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/lib/ui.ts): UI helpers · `lib/ui.ts`
- [Tailwind styling](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/tailwind.config.ts): Style configuration · `tailwind.config.ts`

### Delivery

- [Package scripts](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/package.json): npm manifest · Defines local development and build commands. · `package.json`
- [Dependency lockfile](https://github.com/yashaswinir24/cmp_research_atlas_deploy/blob/main/package-lock.json): npm lockfile · `package-lock.json`
- **Vercel deployment**: Hosting target · Documented production deployment target.

## Connections

- Package scripts → Dependency lockfile: resolves dependencies
- Package scripts → Next configuration: runs Next.js
- Next configuration → Root layout: configures runtime
- Root layout → Global styles: imports
- Root layout → Sidebar navigation: renders
- Root layout → Atlas landing: wraps
- Root layout → Claims: wraps
- Root layout → Hypotheses: wraps
- Root layout → Discoveries: wraps
- Root layout → Papers: wraps
- Root layout → Timeline: wraps
- Root layout → Architecture: wraps
- Experiment records → Research data index: aggregated by
- Phase definitions → Research data index: aggregated by
- Research types → Research data index: types
- Research data index → Atlas landing: supplies research state
- Research data index → Claims: supplies content
- Research data index → Hypotheses: supplies content
- Research data index → Discoveries: supplies content
- Research data index → Papers: supplies content
- Research data index → Timeline: supplies phase data
- UI primitives → Atlas landing: composes
- UI primitives → Timeline: visualizes progress
- UI utilities → UI primitives: supports
- Tailwind styling → UI primitives: styles
- Package scripts → Vercel deployment: builds for deployment
