31d76edba0d888afb30751e65d521b24c3309e57
frontend +page.svelte: - 4-card 메인 row 아래 새 row 추가: 자료실/오디오/비디오 (category_counts) + 자료실 제안 (library_pending_suggestions). 제안 ≥1 일 때 warning 색 + /library 링크. - buildPipelineRows 가 pipeline_status (24h 누적) + queue_lag (현재 시점) 머지. queue_lag.oldest_pending_age_sec 가 600초 초과면 stage 라벨 옆에 경과시간 표시. - STAGE_ORDER/LABEL 에 stt/thumbnail 추가 (§3 신규 stage 자동 커버). docs/categories.md (신규): - 6 활성 + 3 유보 카테고리 정의 + 저장 경로 + 처리 파이프 - 역할 분리 원칙 (category / user_tags @library/ / facet_doctype / ai_suggestion) - 업로드 경로 매트릭스 (web/NAS/collector/UI) - video 채널별 정책 표 (web 거부 vs NAS quarantine) - 업로드 한도 + error_code 7종 표 - orphan 임시파일 cleanup 정책 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
hyungi_Document_Server
Self-hosted 개인 지식관리(PKM) 웹 애플리케이션
기술 스택
- 백엔드: FastAPI + SQLAlchemy (async)
- 데이터베이스: PostgreSQL 16 + pgvector + pg_trgm
- 프론트엔드: SvelteKit
- 문서 파싱: kordoc (HWP/HWPX/PDF → Markdown)
- AI: Qwen3.5-35B-A3B (MLX), nomic-embed-text, Claude API (폴백)
- 인프라: Docker Compose, Caddy, Synology NAS
주요 기능
- 문서 자동 분류/태그/요약 (AI 기반)
- 전문검색 + 벡터 유사도 검색
- HWP/PDF/Markdown 문서 뷰어
- 법령 변경 모니터링 (산업안전보건법 등)
- 이메일 자동 수집 (MailPlus IMAP)
- 일일 다이제스트
- CalDAV 태스크 연동 (Synology Calendar)
Quick Start
git clone https://git.hyungi.net/hyungi/hyungi_document_server.git hyungi_Document_Server
cd hyungi_Document_Server
# 인증 정보 설정
cp credentials.env.example credentials.env
nano credentials.env # 실제 값 입력
# 실행
docker compose up -d
http://localhost:8000/docs 에서 API 문서 확인
디렉토리 구조
├── app/ FastAPI 백엔드 (API, 워커, AI 클라이언트)
├── frontend/ SvelteKit 프론트엔드
├── services/kordoc/ 문서 파싱 마이크로서비스 (Node.js)
├── gpu-server/ GPU 서버 배포 (AI Gateway)
├── migrations/ PostgreSQL 스키마
├── docs/ 설계 문서, 배포 가이드
└── tests/ 테스트 코드
인프라 구성
| 서버 | 역할 |
|---|---|
| Mac mini M4 Pro | Docker Compose (FastAPI, PostgreSQL, kordoc, Caddy) + MLX AI |
| Synology NAS | 파일 원본 저장, Synology Office/Drive/Calendar/MailPlus |
| GPU 서버 | AI Gateway, 벡터 임베딩, OCR, 리랭킹 |
문서
Description
Languages
Python
67.5%
Svelte
22.8%
Swift
5.2%
TypeScript
3.2%
Shell
0.5%
Other
0.8%