How seoeongeueun/workmate2 works
Workmate is presented as a retro-styled music player. Its apparent user journey spans account/session handling, playlist and track management, and a playback screen; the repository also includes a restricted video-management screen. The README offers little architectural detail, and many relevant files were not excerpted, so the graph shows only relationships directly visible in the supplied source. Database, API, and query wiring is therefore represented as components without inferred connections.
Main entry points: layout.tsx Player shell · PowerLight.tsx Power and keys · page.tsx Management page · VideoChecker.tsx Video checker
Components 34
Player experience
- Home entry
app/page.tsx - Playback page
app/play/page.tsx - Music screen
app/components/MusicScreen.tsx - Dialogue screen
app/components/DialogueScreen.tsx - Login screen
app/components/loginScreen.tsx - Loading screen
app/components/loadingScreen.tsx - Player controls
app/ui/ABButtons.tsx - Directional controls
app/ui/MoveButton.tsx - Power and keys
app/ui/PowerLight.tsx - Start controls
app/ui/StartButtons.tsx - Theme settings
app/ui/SettingsButton.tsx - Player shell
app/layout.tsx
Music and content
- Playlist model
app/classes/Playlist.ts - Playlist data
app/models/Playlist.ts - Lucky tracks
app/models/Lucky.ts - Video checker
app/components/VideoChecker.tsx - Management page
app/manage/page.tsx
Account and services
- Playlist API
app/api/playlist/route.ts - Lucky API
app/api/lucky/route.ts - Management API
app/api/manage/route.ts - Authentication API
app/api/auth/route.ts - Signup API
app/api/signup/route.ts - Logout API
app/api/logout/route.ts - User model
app/models/User.ts - Session actions
app/actions/session.ts - Database connection
app/providers/dbConnect.ts
Shared runtime
- Query provider
app/query/QueryProvider.tsx - Query modules
app/query - Playlist and track actions
app/actions - API helpers
app/lib/api.ts - Request helper
app/lib/apiRequest.ts - Shared utilities
app/lib/tools.ts - Audio controls
app/lib/audioControls.ts
Other components
- Listener
Connections 13
- Listener → Home entry: opens
- Player shell → Theme settings: renders
app/layout.tsx - Player shell → Power and keys: renders
app/layout.tsx - Player shell → Player controls: renders
app/layout.tsx - Player shell → Directional controls: renders
app/layout.tsx - Player shell → Start controls: renders
app/layout.tsx - Player shell → Query provider: wraps screen
app/layout.tsx - Power and keys → Listener: handles keys
app/ui/PowerLight.tsx - Power and keys → Player controls: updates button state
- Management page → Request helper: submits access code
app/manage/page.tsx - Management page → Video checker: renders on access
app/manage/page.tsx - Video checker → Shared utilities: uses video utilities
app/components/VideoChecker.tsx - Request helper → Management API: posts access check