Introduction
Polaris IDE is available as a native desktop application built with Electron, providing a seamless development experience across Windows, macOS, and Linux platforms. The desktop app combines the power of a cloud IDE with the benefits of native desktop integration.Why Use the Desktop App?
The desktop version offers several advantages over the web-based IDE:Native Performance
Direct access to system resources for faster file operations and better editor responsiveness
Local File System
Work directly with files on your computer without uploading to the cloud
Offline Capabilities
Continue coding even when internet connectivity is limited (some features require online access)
Auto-Updates
Automatic updates ensure you always have the latest features and security patches
System Integration
Native file dialogs, notifications, and system tray integration
Enhanced Security
Sandboxed architecture with context isolation for maximum security
Platform Support
Polaris IDE desktop app is available for all major operating systems:Windows
- Minimum Version: Windows 10 or later
- Architecture: x64 (64-bit)
- Installer Format: NSIS installer (.exe)
- Features: Desktop shortcuts, Start Menu integration, auto-update support
macOS
- Minimum Version: macOS 10.15 (Catalina) or later
- Architecture: x64 and ARM64 (Apple Silicon)
- Installer Format: DMG (.dmg)
- Features: App Store-ready, native menu bar, auto-update support
Linux
- Supported Distributions: Ubuntu 18.04+, Debian 10+, Fedora 32+, and other modern distributions
- Architecture: x64 (64-bit)
- Installer Formats: AppImage, .deb (Debian/Ubuntu), .rpm (Fedora/RedHat)
- Features: Desktop file integration, auto-update support
Architecture
The desktop app uses a hybrid architecture combining Electron with Next.js:Key Components
Main Process
Manages application lifecycle, window creation, and native integrationsFile:
electron/main/index.ts:1Next.js Server
Runs a standalone Next.js server for the IDE interfaceFile:
electron/main/server-manager.ts:1Renderer Process
Displays the UI in a Chromium-based browser windowFile:
electron/main/window-manager.ts:1Feature Comparison
| Feature | Web App | Desktop App |
|---|---|---|
| File System Access | WebContainer only | Full local access |
| Offline Mode | ❌ No | ✅ Limited support |
| Auto-Updates | Automatic | ✅ Built-in updater |
| Native Notifications | Browser notifications | ✅ System notifications |
| File Dialogs | Browser pickers | ✅ Native dialogs |
| Performance | Good | ✅ Excellent |
| Installation | None required | ✅ One-time install |
| Cross-Platform | ✅ Any modern browser | ✅ Windows/macOS/Linux |
Security Features
The desktop app implements multiple security layers:Context Isolation
Context Isolation
The renderer process runs in an isolated context, preventing direct access to Node.js APIs. All communication happens through a secure IPC bridge.
Path Safety Checks
Path Safety Checks
File system operations validate paths to prevent access to sensitive system directories.Forbidden paths include:
- Windows:
C:\Windows,C:\Program Files,C:\ProgramData - Linux/macOS:
/etc,/sys,/proc,/root,/boot,/dev,/var,/usr
electron/main/ipc/file-system.ts:15Content Security Policy
Content Security Policy
Strict CSP prevents loading of untrusted resources and execution of inline scripts.
Secure Updates
Secure Updates
Auto-updates use code signing and HTTPS to ensure integrity and authenticity.
Next Steps
Installation
Download and install the desktop app
Desktop Features
Explore desktop-specific features