Architecture Whitepaper
PrismDesk is a local-first AI-native desktop browser and extensible workbench engineered for developers, SREs, operations specialists, and analysts working across complex web portals and data tables.
1. Five Core Pillars
- Chrome-Class Isolated Multi-Tab Browser: Built on Electron 35 (
BaseWindow+ multi-WebContentsView+ transparentOverlayView) with physical account isolation (Session Partition), automatic idle tab freezing/hibernation, isolated tab crash recovery, proxy/PAC support, and private CA fingerprint allowlists. - 4-Layer Perception + Zero-Hallucination Local Analytics: Penetrates cross-origin
iframes and enterprise table frameworks (native<table>, Ant Design, ElementUI/Plus, AG-Grid, VxeTable), pairs L2 CDP network JSON sniffing with L3 Vision screenshots and L4 live element highlighting, and runs LLM-generatedSELECT / WITHSQL inside a local read-only WASM SQL sandbox (100% exact on 5,000 rows) with inline ECharts 5 and HD PNG/CSV export. - PrismFlow Guarded Automation Suite: Visual step recorder + 16 atomic step types covering paginated extraction, multi-tab aggregation, cross-snapshot diff alerts, price-floor validated batch draft filling, read-only scheduled checks, and native multi-sheet
.xlsx/.htmlreporting. - 20+ Multi-Provider Routing (BYOM): Two-tier provider registry natively supporting OpenAI, Anthropic Claude, Google Gemini, Azure OpenAI, DeepSeek, Qwen, GLM, Kimi, Ollama, LM Studio, and vLLM endpoints, with wildcard domain rules locking sensitive sites to private models.
- 3-Track Open Plugins & Defense in Depth: Standard MCP services (Track A), sandboxed Web UI micro-apps (Track B), and Page Scripts & Domain Skills (Track C), protected by automatic DLP redaction, OS keychain encryption, 100% HITL write approvals, and local SQLite audit trails.
2. Multi-Process Isolation Architecture
flowchart TB
subgraph UI["1. Presentation Layer (BaseWindow + WebContentsView)"]
direction LR
Shell["Top Shell & Privacy Switch"]
Tabs["Web Tabs (Session Partition)"]
Sidebar["AI Sidebar & Sandboxed UI"]
end
subgraph Main["2. Host Control Plane (Main Process)"]
direction LR
Extract["L1-L4 Perception Engine"]
Perm["PermGate & OS Keychain"]
Flow["PrismFlow & ReadOnly Scheduler"]
end
subgraph Worker["3. Isolated Runtime (UtilityProcess)"]
direction LR
Agent["Agent / DLP / Model Router"]
Sandbox["WASM SQL & HITL Guard"]
Store["MCP Host & Local SQLite"]
end
UI -->|"Typed IPC / Bridge"| Main
Sidebar <-->|"MessagePort Streaming"| Worker
Main --> Worker
3. Architectural Highlights
- Control Plane / Data Plane Split: Model inference, MCP client pools, SQL execution, and SQLite live inside a dedicated
UtilityProcessstreamed directly to the sidebar viaMessagePort— keeping browser interactions silky smooth while auto-restarting the worker if it ever faults. - Zero Native Z-Index Clipping: Context menus use native OS popups, while complex dialogs (Settings, PrismFlow, MCP, Plugin Market) render inside a dedicated transparent
OverlayView. - Zero Native Module Compilation: Local SQLite runs via WASM (
sql.js) and.xlsxexport is pure TypeScript, ensuring effortless cross-platform packaging; API keys are encrypted via OS keychains (safeStorage).