How rmkrv/leetbrofinder works
LeetBroFinder helps people find LeetCode practice partners: users verify a public profile, complete preferences, then discover partners through browsing or live search, connect, message, or start a cooperative coding session. The React app routes those activities through its API client to a Spring Boot REST API and PostgreSQL-backed services; LeetCode supplies profile verification and problem data. The README documents the major features and integrations, while source excerpts show selected service calls. Edges for unsampled controllers or pages are included only where documented; some implementation details remain unverified.
Main entry points: api.ts API client · App.tsx App routes · ProfileAuthService.java Profile and auth · CoopSessionService.java Session matchmaking
Components 34
Web app
- App routes
frontend/src/App.tsx - API client
frontend/src/api.ts - Verification flow
frontend/src/pages/VerificationPage.tsx - Profile setup
frontend/src/pages/ProfileFormPage.tsx - Login
frontend/src/pages/LoginPage.tsx - Browse profiles
frontend/src/pages/HomePage.tsx - Live search
frontend/src/pages/LiveSearchPage.tsx - Connections
frontend/src/pages/ConnectionsPage.tsx - Coding sessions
frontend/src/pages/CoopSessionPage.tsx - Messages
frontend/src/pages/MessagesPage.tsx - Browser encryption
frontend/src/e2ee.ts
Identity and profiles
- Profile endpoints
app/src/main/java/com/rmkrv/app/api/ProfileController.java - Auth endpoints
app/src/main/java/com/rmkrv/app/api/AuthController.java - Verification endpoints
app/src/main/java/com/rmkrv/app/api/VerificationController.java - Profile and auth
app/src/main/java/com/rmkrv/app/service/ProfileAuthService.java
Partner discovery
- Discovery endpoints
app/src/main/java/com/rmkrv/app/api/LiveSearchController.java - Live search service
app/src/main/java/com/rmkrv/app/service/LiveSearchService.java
Partner collaboration
- Connection endpoints
app/src/main/java/com/rmkrv/app/api/ConnectionController.java - Session endpoints
app/src/main/java/com/rmkrv/app/api/CoopSessionController.java - Session matchmaking
app/src/main/java/com/rmkrv/app/service/CoopSessionService.java - Session invites
app/src/main/java/com/rmkrv/app/api/SessionInviteController.java - Invite service
app/src/main/java/com/rmkrv/app/service/SessionInviteService.java - Problem catalog
app/src/main/java/com/rmkrv/app/service/LeetCodeClient.java - Chat endpoints
app/src/main/java/com/rmkrv/app/api/ChatController.java - Chat service
app/src/main/java/com/rmkrv/app/service/ChatService.java - Device key endpoints
app/src/main/java/com/rmkrv/app/api/E2eeKeyController.java - Key validation
app/src/main/java/com/rmkrv/app/service/E2eeKeyService.java - Voice signaling
app/src/main/java/com/rmkrv/app/service/VoiceChannelService.java
API and persistence
- Profiles
app/src/main/java/com/rmkrv/app/repository/ProfileRepository.java - Login sessions
app/src/main/java/com/rmkrv/app/repository/LoginSessionRepository.java - Live searches
app/src/main/java/com/rmkrv/app/repository/LiveSearchRepository.java - Co-op sessions
app/src/main/java/com/rmkrv/app/repository/CoopSessionRepository.java
Other components
- User
- LeetCode
Connections 48
- User → App routes: uses
frontend/src/App.tsx - App routes → Verification flow: routes to
frontend/src/App.tsx - App routes → Profile setup: routes to
frontend/src/App.tsx - App routes → Login: routes to
frontend/src/App.tsx - App routes → Browse profiles: routes to
frontend/src/App.tsx - App routes → Live search: routes to
frontend/src/App.tsx - App routes → Connections: routes to
frontend/src/App.tsx - App routes → Coding sessions: routes to
frontend/src/App.tsx - App routes → Messages: routes to
frontend/src/App.tsx - Verification flow → API client: requests through
- Profile setup → API client: requests through
- Login → API client: requests through
- Browse profiles → API client: requests through
- Live search → API client: requests through
frontend/src/pages/LiveSearchPage.tsx - Connections → API client: requests through
- Coding sessions → API client: requests through
frontend/src/pages/CoopSessionPage.tsx - Messages → API client: requests through
frontend/src/pages/MessagesPage.tsx - API client → Verification endpoints: calls
README.md - API client → Auth endpoints: calls
README.md - API client → Profile endpoints: calls
README.md - API client → Discovery endpoints: calls
README.md - API client → Connection endpoints: calls
README.md - API client → Session endpoints: calls
README.md - API client → Session invites: calls
README.md - API client → Chat endpoints: calls
README.md - API client → Device key endpoints: calls
README.md - Verification endpoints → LeetCode: checks profile
README.md - Profile endpoints → Profile and auth: delegates to
app/src/main/java/com/rmkrv/app/api/ProfileController.java - Auth endpoints → Profile and auth: delegates to
- Verification endpoints → Profile and auth: delegates to
- Profile and auth → Profiles: reads and writes
app/src/main/java/com/rmkrv/app/service/ProfileAuthService.java - Profile and auth → Login sessions: stores sessions
app/src/main/java/com/rmkrv/app/service/ProfileAuthService.java - Discovery endpoints → Live search service: delegates to
app/src/main/java/com/rmkrv/app/service/LiveSearchService.java - Live search service → Live searches: reads and writes
app/src/main/java/com/rmkrv/app/service/LiveSearchService.java - Live search service → Profile and auth: authenticates via
app/src/main/java/com/rmkrv/app/service/LiveSearchService.java - Session endpoints → Session matchmaking: delegates to
app/src/main/java/com/rmkrv/app/api/CoopSessionController.java - Session matchmaking → Co-op sessions: reads and writes
app/src/main/java/com/rmkrv/app/service/CoopSessionService.java - Session matchmaking → Problem catalog: selects problems
app/src/main/java/com/rmkrv/app/service/CoopSessionService.java - Problem catalog → LeetCode: fetches catalog
README.md - Session invites → Invite service: delegates to
app/src/main/java/com/rmkrv/app/api/SessionInviteController.java - Invite service → Session matchmaking: creates invited session
app/src/main/java/com/rmkrv/app/service/SessionInviteService.java - Session endpoints → Voice signaling: routes signaling
app/src/main/java/com/rmkrv/app/api/CoopSessionController.java - Messages → Browser encryption: encrypts messages
frontend/src/pages/MessagesPage.tsx - Coding sessions → Browser encryption: encrypts messages
frontend/src/pages/CoopSessionPage.tsx - Browser encryption → Device key endpoints: registers keys
README.md - Device key endpoints → Key validation: delegates to
app/src/main/java/com/rmkrv/app/api/E2eeKeyController.java - Chat endpoints → Chat service: delegates to
- Chat service → Key validation: validates envelopes