# 2026-kw-hackathon/15_bokji-compass architecture

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

- Interactive diagram: https://gitdiagram.com/2026-kw-hackathon/15_bokji-compass
- Repository: https://github.com/2026-kw-hackathon/15_bokji-compass

## Overview

복지나침반은 공개 복지 공고를 개인 상황에 맞춰 찾고, 조건과 공식 근거를 확인하며 신청 준비와 후속 안내를 돕는 웹·모바일 서비스입니다. 핵심 흐름은 사용자의 탐색·대화 요청에서 API를 거쳐 검색·추천 결과를 제공하는 것입니다. 별도로 공고 수집·정규화, 회원·금융, 신청 준비, 지역 서비스, 다국어 UI 기능을 보존했습니다. 일부 연결은 README에 설명된 기능 관계를 근거로 했으며, 세부 구현은 제공된 발췌와 SOURCE INDEX 범위에 한정됩니다.

Main entry points: [`backend/app/modules/ingestion/public.py`](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/ingestion/public.py) (공고 수집), [`backend/app/api/policies.py`](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/api/policies.py) (공고 API), [`backend/app/modules/search/public.py`](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/search/public.py) (공고 검색), [`frontend/web/src/shared/api/httpClient.js`](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/frontend/web/src/shared/api/httpClient.js) (웹 API 클라이언트)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["사용자 경험"]
  node_web["웹 화면<br/>[App.jsx]"]
  node_mobile["모바일 화면<br/>[index.tsx]"]
  node_i18n["다국어 UI<br/>[index.js]"]
  node_http["웹 API 클라이언트<br/>[httpClient.js]"]
  node_webpolicy["공고 상세·일정<br/>[policyModel.js]"]
end

subgraph group_api["API 진입점"]
  node_apiapp["FastAPI 앱<br/>[main.py]"]
  node_policyapi["공고 API<br/>[policies.py]"]
  node_assistantapi["상담·대화 API<br/>[assistant.py]"]
end

subgraph group_policy["공고 데이터와 검색"]
  node_ingest["공고 수집<br/>[public.py]"]
  node_collectors["공식 자료 수집기<br/>[public.py]"]
  node_parse["조건 파싱<br/>[parsing.py]"]
  node_normalize["조건 정규화<br/>[public.py]"]
  node_catalog[("공고 저장소<br/>[repository.py]")]
  node_search["공고 검색<br/>[public.py]"]
end

subgraph group_personal["개인화와 지속 안내"]
  node_matching["맞춤 추천<br/>[public.py]"]
  node_auth[("회원·인증<br/>[service.py]")]
  node_monitoring[("지속 안내·준비 기록<br/>[storage.py]")]
  node_notifications[("알림 설정·기기<br/>[storage.py]")]
end

subgraph group_support["신청·보조 기능"]
  node_finance["소득·재산 계산<br/>[public.py]"]
  node_financeprofile[("금융 입력 저장<br/>[storage.py]")]
  node_local["지역 생활서비스<br/>[public.py]"]
end

node_user(("복지 이용자"))
node_external(("공공기관 자료"))

node_user -->|"탐색·상담"| node_web
node_user -->|"앱 이용"| node_mobile
node_web -->|"API 요청"| node_http
node_http -.->|"공고 조회"| node_policyapi
node_http -.->|"대화 요청"| node_assistantapi
node_apiapp -->|"라우트 등록"| node_policyapi
node_apiapp -->|"라우트 등록"| node_assistantapi
node_external -->|"원문 제공"| node_collectors
node_ingest -.->|"자료 수집"| node_collectors
node_ingest -->|"조건 분석"| node_parse
node_ingest -->|"조건 정리"| node_normalize
node_ingest -.->|"저장"| node_catalog
node_catalog -.->|"공개 공고 제공"| node_search
node_policyapi -.->|"검색 제공"| node_search
node_assistantapi -->|"대화형 검색"| node_search
node_search -->|"조건별 추천"| node_matching
node_policyapi -.->|"공고 응답"| node_webpolicy
node_webpolicy -->|"상세·일정 표시"| node_user
node_auth -->|"회원 상태 확인"| node_monitoring
node_matching -->|"후보 재탐색"| node_monitoring
node_monitoring -.->|"알림 상태 제공"| node_notifications
node_user -->|"금융 정보 입력"| node_finance
node_finance -->|"동의 입력 저장"| node_financeprofile
node_user -->|"지역 서비스 탐색"| node_local
node_i18n -->|"UI 문구 제공"| node_web

click node_web "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/frontend/web/src/app/App.jsx"
click node_mobile "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/frontend/mobile/src/app/index.tsx"
click node_i18n "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/frontend/packages/core/src/i18n/index.js"
click node_http "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/frontend/web/src/shared/api/httpClient.js"
click node_apiapp "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/main.py"
click node_policyapi "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/api/policies.py"
click node_assistantapi "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/api/assistant.py"
click node_ingest "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/ingestion/public.py"
click node_collectors "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/collectors/public.py"
click node_parse "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/contracts/parsing.py"
click node_normalize "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/normalization/public.py"
click node_catalog "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/storage/repository.py"
click node_search "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/search/public.py"
click node_matching "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/matching/public.py"
click node_auth "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/auth/service.py"
click node_monitoring "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/monitoring/storage.py"
click node_notifications "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/notifications/storage.py"
click node_finance "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/finance/public.py"
click node_financeprofile "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/finance/storage.py"
click node_local "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/local_services/public.py"
click node_webpolicy "https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/frontend/web/src/features/policies/policyModel.js"

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_web,node_mobile,node_i18n,node_http,node_webpolicy toneBlue
class node_apiapp,node_policyapi,node_assistantapi toneAmber
class node_ingest,node_collectors,node_parse,node_normalize,node_catalog,node_search toneMint
class node_matching,node_auth,node_monitoring,node_notifications toneRose
class node_finance,node_financeprofile,node_local,node_user,node_external toneIndigo
```

## Components

### 사용자 경험

- [웹 화면](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/frontend/web/src/app/App.jsx): `frontend/web/src/app/App.jsx`
- [모바일 화면](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/frontend/mobile/src/app/index.tsx): `frontend/mobile/src/app/index.tsx`
- [다국어 UI](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/frontend/packages/core/src/i18n/index.js): `frontend/packages/core/src/i18n/index.js`
- [웹 API 클라이언트](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/frontend/web/src/shared/api/httpClient.js): `frontend/web/src/shared/api/httpClient.js`
- [공고 상세·일정](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/frontend/web/src/features/policies/policyModel.js): `frontend/web/src/features/policies/policyModel.js`

### API 진입점

- [FastAPI 앱](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/main.py): `backend/app/main.py`
- [공고 API](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/api/policies.py): `backend/app/api/policies.py`
- [상담·대화 API](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/api/assistant.py): `backend/app/api/assistant.py`

### 공고 데이터와 검색

- [공고 수집](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/ingestion/public.py): `backend/app/modules/ingestion/public.py`
- [공식 자료 수집기](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/collectors/public.py): `backend/app/modules/collectors/public.py`
- [조건 파싱](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/contracts/parsing.py): `backend/app/contracts/parsing.py`
- [조건 정규화](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/normalization/public.py): `backend/app/modules/normalization/public.py`
- [공고 저장소](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/storage/repository.py): `backend/app/modules/storage/repository.py`
- [공고 검색](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/search/public.py): `backend/app/modules/search/public.py`

### 개인화와 지속 안내

- [맞춤 추천](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/matching/public.py): `backend/app/modules/matching/public.py`
- [회원·인증](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/auth/service.py): `backend/app/modules/auth/service.py`
- [지속 안내·준비 기록](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/monitoring/storage.py): `backend/app/modules/monitoring/storage.py`
- [알림 설정·기기](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/notifications/storage.py): `backend/app/modules/notifications/storage.py`

### 신청·보조 기능

- [소득·재산 계산](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/finance/public.py): `backend/app/modules/finance/public.py`
- [금융 입력 저장](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/finance/storage.py): `backend/app/modules/finance/storage.py`
- [지역 생활서비스](https://github.com/2026-kw-hackathon/15_bokji-compass/blob/main/backend/app/modules/local_services/public.py): `backend/app/modules/local_services/public.py`

### Other components

- **복지 이용자**
- **공공기관 자료**

## Connections

- 복지 이용자 → 웹 화면: 탐색·상담
- 복지 이용자 → 모바일 화면: 앱 이용
- 웹 화면 → 웹 API 클라이언트: API 요청
- 웹 API 클라이언트 → 공고 API: 공고 조회
- 웹 API 클라이언트 → 상담·대화 API: 대화 요청
- FastAPI 앱 → 공고 API: 라우트 등록 (evidence: `backend/app/main.py`)
- FastAPI 앱 → 상담·대화 API: 라우트 등록 (evidence: `backend/app/main.py`)
- 공공기관 자료 → 공식 자료 수집기: 원문 제공
- 공고 수집 → 공식 자료 수집기: 자료 수집
- 공고 수집 → 조건 파싱: 조건 분석
- 공고 수집 → 조건 정규화: 조건 정리
- 공고 수집 → 공고 저장소: 저장
- 공고 저장소 → 공고 검색: 공개 공고 제공
- 공고 API → 공고 검색: 검색 제공
- 상담·대화 API → 공고 검색: 대화형 검색
- 공고 검색 → 맞춤 추천: 조건별 추천
- 공고 API → 공고 상세·일정: 공고 응답
- 공고 상세·일정 → 복지 이용자: 상세·일정 표시
- 회원·인증 → 지속 안내·준비 기록: 회원 상태 확인 (evidence: `backend/app/modules/auth/service.py`)
- 맞춤 추천 → 지속 안내·준비 기록: 후보 재탐색 (evidence: `backend/app/modules/monitoring/storage.py`)
- 지속 안내·준비 기록 → 알림 설정·기기: 알림 상태 제공
- 복지 이용자 → 소득·재산 계산: 금융 정보 입력
- 소득·재산 계산 → 금융 입력 저장: 동의 입력 저장
- 복지 이용자 → 지역 생활서비스: 지역 서비스 탐색
- 다국어 UI → 웹 화면: UI 문구 제공
