Skip to main content

Project Structure

This project leverages Turborepo and pnpm to provide efficient monorepo management with features like dependency deduplication, parallel task execution, and intelligent caching. The combination enables fast, disk-efficient package management while ensuring tasks run in the correct dependency order with proper artifact caching and reuse.

Root Structure

This project follows a monorepo architecture with clear separation of concerns:

cosailor-template/
├── apps/
│ ├── web/ # Next.js frontend
│ ├── core-api/ # FastAPI backend
│ ├── chat/ # AI chat service
│ └── data-integration/ # Data processing
├── packages/
│ ├── ui/ # Shared UI components
│ ├── utils/ # Common utilities
│ ├── core-sdk-ts/ # Generated API client
│ ├── eslint-config/ # ESLint configurations
│ └── typescript-config/ # TypeScript configurations
├── terraform/ # Infrastructure as Code
├── turbo.json # Turborepo configuration
├── pnpm-workspace.yaml # pnpm workspace config
└── package.json # Root package configuration