How duongbirken2510/omnichat works
OmniChat is an Electron/Vue desktop workspace for managing multiple isolated accounts across seven messaging and commerce platforms. The primary workflow is to select an account in the unified workspace, use its embedded platform session to handle conversations, and receive unread alerts; quick replies support reusable text and images. Settings cover accounts, language, notifications, and portable data, with update and migration notices. The renderer entry and App/component relationships are evidenced by excerpts and the source index; platform embedding and several native integrations are documented in the README, but their detailed wiring was not sampled.
Main entry points: App.vue Unified workspace · SettingsModal.vue Settings modal · src Platform sessions · AutoUpdateBanner.vue Update banner
Components 19
Messaging workspace
- Vue renderer
src/renderer/src/main.ts - Unified workspace
src/renderer/src/App.vue - Account sidebar
src/renderer/src/components/AccountSidebar.vue - Platform sessions
src/renderer/src - Messaging platforms
- Quick replies
src/renderer/src/App.vue
Accounts and sessions
- Account model
src/renderer/src/types/index.ts
Settings and persistence
- Account and preferences DB
src/renderer/src/database/db.ts - Settings modal
src/renderer/src/components/SettingsModal.vue - Bilingual interface
src/renderer/src/i18n/index.ts - Portable data
src/renderer/src/components/SettingsModal.vue
Desktop capabilities
- Electron main
src/main/index.ts - Preload bridge
src/preload/index.ts - Webview integration
src/preload/webview.ts - Unread notifications
src/renderer/src/composables/useNotifications.ts - Migration banner
src/renderer/src/components/MigrationBanner.vue - Update banner
src/renderer/src/components/AutoUpdateBanner.vue
Other components
- Operator
- Version endpoint
Connections 18
- Operator → Vue renderer: opens
README.md - Vue renderer → Unified workspace: mounts
src/renderer/src/main.ts - Unified workspace → Account sidebar: renders
src/renderer/src/App.vue - Unified workspace → Account and preferences DB: loads and persists
src/renderer/src/App.vue - Unified workspace → Platform sessions: manages
README.md - Platform sessions → Messaging platforms: embeds sessions
README.md - Operator → Platform sessions: handles chats
README.md - Unified workspace → Quick replies: manages
src/renderer/src/App.vue - Unified workspace → Unread notifications: watches unread counts
src/renderer/src/App.vue - Unified workspace → Settings modal: renders
src/renderer/src/App.vue - Settings modal → Bilingual interface: selects locale
src/renderer/src/components/SettingsModal.vue - Bilingual interface → Account and preferences DB: reads and writes
src/renderer/src/i18n/index.ts - Settings modal → Portable data: configures
README.md - Unified workspace → Migration banner: renders
src/renderer/src/App.vue - Unified workspace → Update banner: renders
src/renderer/src/App.vue - Operator → Update banner: checks updates
src/renderer/src/components/AutoUpdateBanner.vue - Update banner → Version endpoint: fetches version
src/renderer/src/components/AutoUpdateBanner.vue - Unified workspace → Account model: uses accounts
src/renderer/src/App.vue