How yashaswinir24/cmp_research_atlas_deploy works
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: layout.tsx Root layout · index.ts Research data index · card.tsx UI primitives · package.json Package scripts
Components 21
Next.js Runtime
- Next configuration
next.config.ts - Root layout · Applies global framing and Geist fonts.
app/layout.tsx - Global styles
app/globals.css
Research Routes
- Atlas landing · Main research workspace entry point.
app/page.tsx - Claims
app/claims/page.tsx - Hypotheses
app/hypotheses/page.tsx - Discoveries
app/discoveries/page.tsx - Papers
app/papers/page.tsx - Timeline
app/timeline/page.tsx - Architecture
app/architecture/page.tsx
Static Research Data
- Research data index · Typed import boundary consumed by route pages.
data/index.ts - Experiment records
data/experiments.json - Phase definitions
data/phases.ts - Research types · Constrains research records across the UI.
lib/types.ts
Presentation System
- Sidebar navigation · Provides persistent cross-section navigation.
components/Sidebar.tsx - UI primitives · Cards, tabs, and progress visualization primitives.
components/ui/card.tsx - UI utilities
lib/ui.ts - Tailwind styling
tailwind.config.ts
Delivery
- Package scripts · Defines local development and build commands.
package.json - Dependency lockfile
package-lock.json - Vercel deployment · Documented production deployment target.
Connections 26
- 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