How nike/community-edition works
Purpose and Entry Points
Rambox CE is an end-of-life, cross-platform Electron desktop container for multiple messaging/email web applications. The browser renderer is an Ext JS application; Electron supplies desktop lifecycle, tray, menus, window behavior, and updates.
• package.json
• electron/main.js
• index.html
• app.js
Electron Desktop Shell
Electron’s main process creates and controls the native application window, while separate modules define native menu, tray integration, updater behavior, and display positioning. This is the boundary between Chromium-rendered UI and OS-specific functionality.
• electron/main.js
• electron/menu.js
• electron/tray.js
• electron/updater.js
• electron/utils/positionOnScreen.js
Renderer Application Composition
The Ext JS application bootstraps the renderer and organizes behavior around application lifecycle, online/offline profiles, a main workspace, and dedicated add-service and preferences flows. Main is the central UI composition point; controllers mediate user actions and state transitions.
• app/Application.js
• app/profile/Online.js
• app/profile/Offline.js
• app/view/main/Main.js
• app/view/main/MainController.js
• app/view/add/Add.js
• app/view/preferences/Preferences.js
Service Domain and State
A service represents a configured third-party web app. Models and stores hold individual services and service lists, feeding the workspace and configuration UI. The repository’s service catalog is a static resource; user configuration is intended to persist locally and may be synced externally.
• app/model/Service.js
• app/model/ServiceList.js
• app/store/Services.js
• app/store/ServicesList.js
• resources/services.json
Embedded Web-App Runtime
Each configured service is rendered through a custom WebView abstraction, isolating embedded web application content from the Rambox renderer. Per the README, sessions persist through Electron partition:persist webview partitions until a service is removed. Renderer-side APIs expose service and modal integration points to embedded content.
• app/ux/WebView.js
• resources/js/rambox-service-api.js
• resources/js/rambox-modal-api.js
Authentication, Sync, and Security Boundaries
Configuration sync uses Auth0 for SSO and token-based authentication; the associated renderer integration is isolated in a resource script. A separate master-password entry page indicates a lock/unlock boundary distinct from the main application workspace. The app does not claim to host third-party service credentials itself; those remain in persisted webview sessions.
• resources/js/AuthService.js
• masterpassword.html
• resources/js/GALocalStorage.js
Notifications and Presentation Support
Application-level utilities handle icon loading, formatting, unread counts, and notification delivery, connecting service/webview events to main UI badges and native-facing notification behavior. Localization is resource-based and includes many language bundles.
• app/util/Notifier.js
• app/util/UnreadCounter.js
• app/util/IconLoader.js
• resources/languages/en.js
• languages.js
Build and Runtime Dependencies
The project is primarily JavaScript running in Electron and Chromium, with Ext JS bundled in-repo and Sencha Cmd build/watch infrastructure. The substantial ext/ tree is framework/vendor source and packaged themes, rather than Rambox product logic. CI configuration targets Travis and AppVeyor; packaging assets include macOS entitlements and installer resources.
• app.json
• .sencha/app/build-impl.xml
• ext/build/ext-all.js
• build.xml
• resources/installer/entitlements.mac.plist
Main entry points: main.js Electron main process · Application.js Application lifecycle · Main.js Main workspace · Services.js Service models & stores
Components 20
Electron Desktop
Native-process boundary and OS integration.
- Electron main process · Owns application lifecycle and native window creation.
electron/main.js - Native menu
electron/menu.js - Tray integration
electron/tray.js - Application updater
electron/updater.js
Renderer Application
Ext JS workspace and user flows.
- Renderer entry
index.html - Ext JS bootstrap
app.js - Application lifecycle · Selects online or offline renderer behavior.
app/Application.js - Online/offline profiles
app/profile/Online.js - Main workspace · Central composition point for service tabs and user actions.
app/view/main/Main.js - Service setup & preferences · Add-service and preferences user flows.
app/view/add/Add.js - Notifications & unread state · Converts service events into workspace badges and notifications.
app/util/Notifier.js
Service Runtime
Configured services and embedded web apps.
- Service models & stores · Holds configured services and catalog records.
app/store/Services.js - Service catalog
resources/services.json - WebView runtime · Loads each service in a persistent Electron webview partition.
app/ux/WebView.js - Embedded service APIs · Exposes Rambox and modal integration to embedded content.
resources/js/rambox-service-api.js
Auth & Persistence
Local protection and optional configuration sync.
- Auth0 configuration sync · Provides token-based SSO for external configuration sync.
resources/js/AuthService.js - Master-password lock · Separate lock and unlock boundary before the workspace.
masterpassword.html - Local configuration storage
resources/js/GALocalStorage.js
Other components
- Project manifest
package.json - Sencha build pipeline · Bundles the Ext JS renderer application.
app.json
Connections 23
- Project manifest → Electron main process: launches
- Project manifest → Sencha build pipeline: defines build
- Electron main process → Renderer entry: loads window
- Electron main process → Native menu: installs
- Electron main process → Tray integration: controls
- Electron main process → Application updater: runs
- Renderer entry → Ext JS bootstrap: boots
- Ext JS bootstrap → Application lifecycle: initializes
- Application lifecycle → Online/offline profiles: selects
- Application lifecycle → Main workspace: creates
- Main workspace → Service setup & preferences: opens
- Main workspace → Service models & stores: reads and updates
- Service setup & preferences → Service models & stores: configures
- Service models & stores → Service catalog: uses catalog
- Main workspace → WebView runtime: hosts services
- Service models & stores → WebView runtime: configures instances
- WebView runtime → Embedded service APIs: exposes
- WebView runtime → Notifications & unread state: emits events
- Notifications & unread state → Main workspace: updates badges
- Application lifecycle → Auth0 configuration sync: uses optional sync
- Auth0 configuration sync → Local configuration storage: syncs configuration
- Master-password lock → Application lifecycle: unlocks access
- Sencha build pipeline → Ext JS bootstrap: bundles