# exhaled/turborepo-starter architecture

> Architecture diagram of the GitHub repository exhaled/turborepo-starter, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/exhaled/turborepo-starter
- Repository: https://github.com/exhaled/turborepo-starter

## Overview

##### Main System Components

A. Applications Layer
- Next.js Web Application
- Hono Server Application

B. Shared Packages Layer
- Configuration Packages (ESLint, Prettier, TypeScript)

C. Build & Development Infrastructure
- Turborepo Build System
- PNPM Workspace Management

**┌─────────────────────────────── Monorepo Workspace ───────────────────────────────┐**

- ┌─────── Apps ──────┐    ┌────── Packages ───────┐    ┌──── Infrastructure ─── │

- ┌─── Web ────┐ │    │ ┌─ Configuration ─┐   │    │ ┌─── Build System ─┐ │ │
- Next.js    │ │    │ │ ESLint Config   │   │    │ │    Turborepo    │ │ │
- TailwindCSS│ │    │ │ Prettier Config │   │    │ └────────────────┘ │ │
- ┘ │    │ │ TypeScript Config│   │    │                    │ │
- ┘   │    │ ┌─── Dependency ──┐ │ │
- ┌─ Server ──┐ │    │                       │    │ │      PNPM      │ │ │
- Hono    │ │    │                       │    │ └────────────────┘ │ │
- ┘ │    │                       │    │                    │ │
- ┘    └───────────────────────┘    └────────────────────┘ │

- ┘

##### Important Details

For the Web Application:
- Next.js frontend with TailwindCSS
- App directory structure indicating Next.js 13+ usage

For the Server Application:
- Hono server endpoints
- Route structure (/first, /second)

For Shared Packages:
- Configuration inheritance flow
- Shared dependency management through PNPM

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph MonorepoWorkspace["Monorepo Workspace"]
        subgraph AppsLayer["Applications Layer"]
            WebApp["Next.js Web App"]:::webapp
            ServerApp["Hono Server App"]:::serverapp
        end

        subgraph SharedPackages["Shared Packages Layer"]
            subgraph ConfigPackages["Configuration Packages"]
                ESLint["ESLint Config"]:::config
                Prettier["Prettier Config"]:::config
                TypeScript["TypeScript Config"]:::config
            end
        end

        subgraph Infrastructure["Build & Development Infrastructure"]
            Turbo["Turborepo Build System"]:::infra
            PNPM["PNPM Workspace"]:::infra
        end
    end

    %% Relationships
    WebApp <--> ServerApp
    WebApp --> ConfigPackages
    ServerApp --> ConfigPackages
    Turbo --> AppsLayer
    Turbo --> SharedPackages
    PNPM --> AppsLayer
    PNPM --> SharedPackages

    %% Click Events
    click WebApp "https://github.com/exhaled/turborepo-starter/tree/main/apps/web/"
    click ServerApp "https://github.com/exhaled/turborepo-starter/tree/main/apps/server/"
    click ESLint "https://github.com/exhaled/turborepo-starter/tree/main/tooling/eslint-config/"
    click Prettier "https://github.com/exhaled/turborepo-starter/tree/main/tooling/prettier-config/"
    click TypeScript "https://github.com/exhaled/turborepo-starter/tree/main/tooling/typescript-config/"
    click Turbo "https://github.com/exhaled/turborepo-starter/blob/main/turbo.json"
    click PNPM "https://github.com/exhaled/turborepo-starter/blob/main/pnpm-workspace.yaml"

    %% Styling
    classDef webapp fill:#2563eb,color:#fff,stroke:#1d4ed8
    classDef serverapp fill:#3b82f6,color:#fff,stroke:#1d4ed8
    classDef config fill:#22c55e,color:#fff,stroke:#16a34a
    classDef infra fill:#6b7280,color:#fff,stroke:#4b5563

    %% Legend
    subgraph Legend
        WebAppLegend["Web Application"]:::webapp
        ServerAppLegend["Server Application"]:::serverapp
        ConfigLegend["Configuration Package"]:::config
        InfraLegend["Infrastructure"]:::infra
    end
```
