# yjlang/pulse architecture

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

- Interactive diagram: https://gitdiagram.com/yjlang/pulse
- Repository: https://github.com/yjlang/pulse

## Overview

PULSE is an AI marketing service for restaurant owners. The main journey starts with signup: the Spring backend stores user and store information and requests analysis from the Python AI server. That server collects and analyzes reviews, then stores results for the frontend’s dashboard, customer-persona, and review-management views. Owners can use those insights to generate review replies and personalized promotional videos. The README documents these major capabilities, but implementation excerpts for the three submodules were not provided; subsystem paths therefore use their exact tree directories.

Main entry points: [`pulse_python`](https://github.com/yjlang/pulse/tree/main/pulse_python) (AI server), [`pulse_FE`](https://github.com/yjlang/pulse/tree/main/pulse_FE) (Web application), [`pulse_spring`](https://github.com/yjlang/pulse/tree/main/pulse_spring) (Main backend)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Owner experience"]
  node_frontend["Web application"]
end

subgraph group_backend["Application backend"]
  node_spring["Main backend"]
end

subgraph group_intelligence["AI services"]
  node_python["AI server"]
  node_review_collection["Review collection"]
  node_analysis["Review insights"]
  node_video["Promotional video"]
end

subgraph group_data["Persistence and providers"]
  node_mysql[("User and store data")]
  node_mongodb[("Analysis snapshots")]
end

node_owner(("Restaurant owner"))
node_review_sources["Naver and Kakao"]
node_vertex["Vertex AI Veo"]
node_openai["OpenAI"]

node_owner -->|"uses"| node_frontend
node_frontend -->|"sends requests"| node_spring
node_spring -->|"stores user data"| node_mysql
node_spring -->|"requests analysis"| node_python
node_python -->|"runs collection"| node_review_collection
node_review_collection -->|"collects reviews"| node_review_sources
node_python -->|"analyzes reviews"| node_analysis
node_analysis -->|"saves results"| node_mongodb
node_frontend -->|"reads results"| node_spring
node_owner -->|"views insights"| node_frontend
node_frontend -.->|"requests video"| node_python
node_python -.->|"generates video"| node_video
node_video -.->|"generates clips"| node_vertex
node_python -.->|"uses AI"| node_openai

click node_frontend "https://github.com/yjlang/pulse/tree/main/pulse_FE"
click node_spring "https://github.com/yjlang/pulse/tree/main/pulse_spring"
click node_python "https://github.com/yjlang/pulse/tree/main/pulse_python"
click node_review_collection "https://github.com/yjlang/pulse/tree/main/pulse_python"
click node_analysis "https://github.com/yjlang/pulse/tree/main/pulse_python"
click node_video "https://github.com/yjlang/pulse/tree/main/pulse_python"

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_frontend toneBlue
class node_spring toneAmber
class node_python,node_review_collection,node_analysis,node_video toneMint
class node_mysql,node_mongodb toneRose
class node_owner,node_review_sources,node_vertex,node_openai toneIndigo
```

## Components

### Owner experience

- [Web application](https://github.com/yjlang/pulse/tree/main/pulse_FE): `pulse_FE`

### Application backend

- [Main backend](https://github.com/yjlang/pulse/tree/main/pulse_spring): `pulse_spring`

### AI services

- [AI server](https://github.com/yjlang/pulse/tree/main/pulse_python): `pulse_python`
- [Review collection](https://github.com/yjlang/pulse/tree/main/pulse_python): `pulse_python`
- [Review insights](https://github.com/yjlang/pulse/tree/main/pulse_python): `pulse_python`
- [Promotional video](https://github.com/yjlang/pulse/tree/main/pulse_python): `pulse_python`

### Persistence and providers

- **User and store data**
- **Analysis snapshots**

### Other components

- **Restaurant owner**
- **Naver and Kakao**
- **Vertex AI Veo**
- **OpenAI**

## Connections

- Restaurant owner → Web application: uses (evidence: `README.md`)
- Web application → Main backend: sends requests (evidence: `README.md`)
- Main backend → User and store data: stores user data (evidence: `README.md`)
- Main backend → AI server: requests analysis (evidence: `README.md`)
- AI server → Review collection: runs collection (evidence: `README.md`)
- Review collection → Naver and Kakao: collects reviews (evidence: `README.md`)
- AI server → Review insights: analyzes reviews (evidence: `README.md`)
- Review insights → Analysis snapshots: saves results (evidence: `README.md`)
- Web application → Main backend: reads results (evidence: `README.md`)
- Restaurant owner → Web application: views insights (evidence: `README.md`)
- Web application → AI server: requests video (evidence: `README.md`)
- AI server → Promotional video: generates video (evidence: `README.md`)
- Promotional video → Vertex AI Veo: generates clips (evidence: `README.md`)
- AI server → OpenAI: uses AI (evidence: `README.md`)
