How kakaotechcampus-4/ktc4-pusan-2 works
This repository is a pitch-coaching application: users prepare pitches and presentations, rehearse with camera and microphone input, and receive live coaching and speech transcription. The runtime map connects the browser rehearsal experience to backend authentication, pitch/take APIs, and realtime transcription; separate AI modules provide gaze analysis and coaching decisions. The README only describes team conventions, and several frontend, take-service, and AI-server links are inferred from the tree rather than verified in source, so those links are dashed.
Main entry points: client.ts API client · controller.py Authentication · database.py Application database · routes.tsx App routes
Components 20
Browser app
- App routes
frontend/src/app/routes.tsx - Session state
frontend/src/features/auth/useSession.ts - Gaze worker hook
frontend/src/features/rehearsal/media/useGazeWorker.ts - Gaze setup
frontend/src/features/rehearsal/prepare/useGazeSetup.ts - Live gaze hook
frontend/src/features/rehearsal/stage/useLiveGaze.ts - Live coach hook
frontend/src/features/rehearsal/stage/useCoach.ts - STT stream hook
frontend/src/features/rehearsal/stage/useSttStream.ts - API client
frontend/src/shared/api/client.ts
Backend API
- Authentication
backend/src/pitch_coach_backend/module/auth/controller.py - Pitch and scripts
backend/src/pitch_coach_backend/module/pitch/controller.py - Take management
backend/src/pitch_coach_backend/module/take/controller.py - Realtime session
backend/src/pitch_coach_backend/realtime/controller.py - Application database
backend/src/pitch_coach_backend/core/database.py
Rehearsal intelligence
- Coach decision engine
ai/archive/workspaces/jewon-kim/coach-agent/v1/local/ai/src/coach/engine.py - Vision preprocessing
ai/research/gaze-tracking/src/gaze_lab/preprocess/pipeline.py - Browser gaze engine
ai/research/gaze-tracking/web/src/engine/engine.ts
External services
- Google OAuth
- Deepgram STT
- AI parsing service
Other components
- Presenter
Connections 22
- Presenter → App routes: uses
- App routes → Session state: manages session
- App routes → API client: requests API
- API client → Authentication: auth requests
- API client → Pitch and scripts: pitch requests
- API client → Take management: take requests
- Session state → Authentication: refreshes session
- Authentication → Google OAuth: redirects for login
backend/src/pitch_coach_backend/module/auth/controller.py - Authentication → Application database: uses session
backend/src/pitch_coach_backend/module/auth/controller.py - Pitch and scripts → Application database: uses session
backend/src/pitch_coach_backend/module/pitch/controller.py - Pitch and scripts → AI parsing service: schedules parsing
backend/src/pitch_coach_backend/module/pitch/controller.py - Take management → Application database: uses session
backend/src/pitch_coach_backend/module/take/controller.py - Presenter → Gaze setup: prepares camera
- Gaze setup → Gaze worker hook: starts gaze worker
- Gaze worker hook → Browser gaze engine: analyses frames
- Live gaze hook → Live coach hook: supplies gaze
- Live coach hook → Coach decision engine: requests decisions
- Presenter → STT stream hook: speaks rehearsal
- STT stream hook → Realtime session: streams audio
- Realtime session → Deepgram STT: transcribes audio
- Realtime session → Application database: uses session
backend/src/pitch_coach_backend/realtime/controller.py - Vision preprocessing → Browser gaze engine: parallel implementation