How dev-pradhuman/virtual-office-clean works
Virtual Office is a private team collaboration app: members sign in through the desktop client, then use presence, messaging, calls/screen sharing, and shared work tools backed by an Express service and persistent storage. The React client is the documented primary frontend; the repository also includes a vanilla fallback frontend. Edges are limited to relationships supported by the README or shown excerpts/SOURCE INDEX; unsampled feature wiring is not inferred.
Main entry points: server.js REST API · app-shell.tsx App shell · main.js Electron shell · app-context.tsx Session and app state
Components 20
Desktop client
- Electron shell
main.js - Renderer bridge
preload.js
Team Hearth client
- Sign-in screen
Team Hearth/src/components/login-screen.tsx - App shell
Team Hearth/src/components/app-shell.tsx - Session and app state
Team Hearth/src/lib/app-context.tsx - HTTP client
Team Hearth/src/lib/api.ts - Call coordination
Team Hearth/src/lib/use-call.tsx - Virtual office
Team Hearth/src/components/office/OfficeScene.tsx - Team chat
Team Hearth/src/components/views/chat.tsx - Shared work tools
Team Hearth/src/components/views/tasks.tsx - Admin settings
Team Hearth/src/components/views/settings.tsx - Vanilla fallback
frontend/js/app.js
Backend services
- REST API
backend/server.js - Socket.IO events
backend/socket.js
Persistence and integrations
- SQLite database
backend/database.js - Runtime config
backend/config-store.js
Other components
- Team member
- Google Drive
- WebRTC peers
- Hosted backend
Connections 23
- Team member → Sign-in screen: signs in
- Sign-in screen → Session and app state: submits credentials
- Session and app state → HTTP client: requests data
Team Hearth/src/lib/app-context.tsx - HTTP client → REST API: calls REST
- Team member → App shell: uses tools
- App shell → Virtual office: shows office
- App shell → Team chat: shows chat
- App shell → Shared work tools: shows tools
- App shell → Admin settings: shows settings
- Session and app state → Call coordination: provides app state
Team Hearth/src/lib/use-call.tsx - Call coordination → WebRTC peers: coordinates media
- Team member → Vanilla fallback: uses fallback
- Electron shell → Hosted backend: bundles backend
- Electron shell → Renderer bridge: bridges renderer
- Electron shell → REST API: starts server
main.js - REST API → SQLite database: reads and writes
backend/server.js - REST API → Socket.IO events: sets up sockets
backend/server.js - Socket.IO events → SQLite database: reads and writes
- Admin settings → REST API: configures admin
- REST API → Runtime config: loads Drive config
backend/server.js - REST API → Google Drive: uploads files
- Hosted backend → REST API: hosts API
- Hosted backend → Socket.IO events: hosts events