# devilkiller-ag/study-planner architecture

> Architecture diagram of the GitHub repository devilkiller-ag/study-planner, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/devilkiller-ag/study-planner
- Repository: https://github.com/devilkiller-ag/study-planner

## Overview

##### Project type and purpose
- This is a front-end Single Page Application (SPA) scaffold built with Vite, React, and TypeScript.
- It uses the shadcn-ui primitives atop Tailwind CSS to deliver reusable UI components.
- Purpose: render interactive pages (e.g., “StudyGoalsList”) in the browser and ship static assets to a host or CDN.

##### File structure
- Top-level files/configs:
- package.json, bun.lockb, package-lock.json → dependency managers
- tsconfig*.json, vite.config.ts, postcss.config.js, tailwind.config.ts → TypeScript, build, styling configs
- public/ → static assets (index.html, favicon, etc.)
- src/
- main.tsx → application entry point, ReactDOM.render
- App.tsx / App.css → root component
- pages/Index.tsx → page-level component (routes if extended)
- components/StudyGoalsList.tsx → feature-specific component
- components/ui/… → atomic UI primitives (buttons, dialogs, cards, etc.)
- hooks/ → custom hooks (e.g., useMobile, useToast)
- lib/utils.ts → shared utilities
- No backend or API layer in this repo—static front-end only.

##### README for additional insights
- Confirms tech stack: Vite, TS, React, shadcn-ui, Tailwind CSS.
- No mention of a server API—deployed as static site via Lovable or Netlify.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Development Layer"
        IDE["IDE"]:::dev
        Lovable["Lovable Platform"]:::dev
    end

    subgraph "Build & Deployment Layer"
        tsconfig["tsconfig.json"]:::dev
        viteconfig["vite.config.ts"]:::dev
        postcssconfig["postcss.config.js"]:::dev
        tailwindconfig["tailwind.config.ts"]:::dev
        Vite["Vite Dev Server / Bundler"]:::dev
        NpmScripts["npm Scripts"]:::dev
        publicAssets["public/ (static assets)"]:::build
        indexHTML["index.html"]:::build
        Host["Static Host / CDN"]:::build
    end

    subgraph "Client Runtime"
        Browser["Browser"]:::runtime
    end

    subgraph "Application Layers"
        subgraph "Entry & Shell"
            Entry["main.tsx Entry Point"]:::ui
            Shell["App.tsx Shell"]:::ui
            AppStyle["App.css"]:::ui
        end
        subgraph "Pages"
            IndexPage["Index.tsx Page"]:::ui
        end
        subgraph "Features"
            StudyGoals["StudyGoalsList Component"]:::ui
        end
        subgraph "UI Primitives"
            Primitives["components/ui/ Directory"]:::ui
        end
        subgraph "Logic & Utils"
            Hooks["hooks/ Directory"]:::logic
            Utils["lib/utils.ts"]:::logic
        end
    end

    IDE --> Vite
    Lovable --> Vite
    Vite --> NpmScripts
    NpmScripts --> publicAssets
    publicAssets --> indexHTML
    indexHTML --> Host
    Host --> Browser

    Browser --> Entry
    Entry --> Shell
    Shell --> AppStyle
    Shell --> IndexPage
    IndexPage --> StudyGoals
    StudyGoals --> Primitives
    StudyGoals --> Hooks
    StudyGoals --> Utils
    tailwindconfig --> Primitives
    postcssconfig --> Primitives

    click Entry "https://github.com/devilkiller-ag/study-planner/blob/main/src/main.tsx"
    click Shell "https://github.com/devilkiller-ag/study-planner/blob/main/src/App.tsx"
    click AppStyle "https://github.com/devilkiller-ag/study-planner/blob/main/src/App.css"
    click IndexPage "https://github.com/devilkiller-ag/study-planner/blob/main/src/pages/Index.tsx"
    click StudyGoals "https://github.com/devilkiller-ag/study-planner/blob/main/src/components/StudyGoalsList.tsx"
    click Primitives "https://github.com/devilkiller-ag/study-planner/tree/main/src/components/ui/"
    click Hooks "https://github.com/devilkiller-ag/study-planner/tree/main/src/hooks/"
    click Utils "https://github.com/devilkiller-ag/study-planner/blob/main/src/lib/utils.ts"
    click viteconfig "https://github.com/devilkiller-ag/study-planner/blob/main/vite.config.ts"
    click tsconfig "https://github.com/devilkiller-ag/study-planner/blob/main/tsconfig.json"
    click tailwindconfig "https://github.com/devilkiller-ag/study-planner/blob/main/tailwind.config.ts"
    click postcssconfig "https://github.com/devilkiller-ag/study-planner/blob/main/postcss.config.js"
    click publicAssets "https://github.com/devilkiller-ag/study-planner/tree/main/public/"
    click indexHTML "https://github.com/devilkiller-ag/study-planner/blob/main/index.html"

    classDef dev fill:#D6EAF8,stroke:#3498DB
    classDef build fill:#A9DFBF,stroke:#27AE60
    classDef runtime fill:#A3E4D7,stroke:#16A085
    classDef ui fill:#F9E79F,stroke:#D68910
    classDef logic fill:#D5D8DC,stroke:#7F8C8D
```
