Attar Electron.
Run existing Electron and Node applications on Attar’s native Blink + Static Hermes stack—without V8, without Chromium’s multi-process content/ shell, and without rewriting your application.
One engine. An optional Electron layer on top.
main · preload · renderer
Existing BrowserWindow, IPC handlers, React UI and Node modules stay application-owned.
Compatibility layer
Supplies Electron & Node APIs, typed IPC queues and non-UI browser/system providers.
Blink UI · Static Hermes
Real Chromium Blink layout & paint, Direct Core Animation / Skia, and zero-JIT AOT code.
Attar is one platform with two ways to build. Standalone Attar is the minimal core: Blink UI, native windowing and Static Hermes AOT—with zero Electron or Node code linked in. Attar Electron is a composable layer above Attar’s public interfaces that adds Electron and Node compatibility for existing desktop applications.
Both variants follow the same pay-for-what-you-use rule: the build resolves your application graph ahead of time and links only the native capabilities your code actually calls.
One native UI process.
Separate JS runtimes.
Upstream Electron spawns separate OS processes for main, renderer, GPU and network—each carrying V8 and Chromium IPC overhead. Attar Electron keeps isolation at the runtime boundary inside a single native UI process.
Main and renderer stay isolated
The host constructs a dedicated Static Hermes runtime for main on its own owning worker thread, and separate runtimes for each renderer and preload world on the UI thread. Each runtime owns its own heap, garbage collector, globals and module cache.
No JavaScript object, function or Promise crosses runtime ownership. ipcMain and ipcRenderer exchange serialized data over bounded FIFO queues—preserving Electron’s asynchronous and synchronous IPC contracts without multi-process browser sprawl.
Real Blink, zero V8
Blink’s DOM, CSS cascade, layout, painting and accessibility run directly in-process over native OS surfaces. For local HTML or Markdown iframes (such as sanitized previews), an optional isolated inert Blink document profile renders safely without introducing V8 or generic browser navigation.
The AOT boundary. Attar Electron targets near-full compatibility with Electron application code, except behaviors that contradict the ahead-of-time model—such as eval, new Function or loading arbitrary executable code from strings at runtime.
From an Electron build tree
to a native binary.
Attar Electron plugs into your existing application structure rather than asking you to rewrite business logic in Rust or migrate to a custom framework.
1. Point at your Electron entrypoints
Feed your app’s main, preload and renderer bundles into the Attar build—even straight from the packaged Resources/app tree produced by your existing build toolchain.
2. Resolve capabilities & compile AOT
Attar’s build contract inspects the static module graph, selects the matching Electron, Node and browser capability providers (BrowserWindow, Menu, dialog, fs, fetch, WebSocket, web storage), and compiles the JavaScript ahead of time with Static Hermes.
3. Link with Attar Core
The compiled object files link directly against the pinned Attar Core (Blink + native window host) and Attar Electron native archives, dead-stripping unused code into a single native executable.
4. Keep external backends if you have them
If your Electron app spawns a separate Node backend or CLI worker (like T3 Code’s server process), Attar Electron preserves that boundary cleanly without dragging it into the UI process.
Unmodified T3 Code.
2.0× less UI RAM. 4.7× lower peak.
To test Attar Electron on real production software rather than toy demos, we compiled unmodified upstream T3 Code (pingdotgg/t3code, zero source patches) and measured it side by side against official Electron 44 on Apple M5 Max across paired N=5 runs.
| Metric | Attar Electron | Electron 44 |
|---|---|---|
| UI RAM (steady) | 114.1 MiB (2.02× less) | 230.1 MiB |
| UI RAM (peak) | 128.1 MiB (4.72× lower) | 604.2 MiB |
| UI processes / threads | 1 proc · 34 threads | 4 procs · 112 threads |
| Idle wakeups (20 s) | 663 (2.83× fewer) | 1,873 |
| Billed energy (35 s) | 313.4 mJ (3.35× less) | 1,050.2 mJ |
Standalone Attar vs Attar Electron.
| Dimension | Standalone Attar | Attar Electron |
|---|---|---|
| Best for | New native desktop & mobile apps, Rust/C hosts, smallest possible binary. | Existing Electron & Node desktop apps migrating without a rewrite. |
| Architecture | Attar (Core + UI Host) + Attar AOT. Zero Electron/Node dependencies. | Attar Electron layered above Attar + Attar AOT. |
| Included APIs | React 19, Blink DOM/CSS, Observers, Scroll, Intl, crypto, Clipboard. | Adds BrowserWindow, app, IPC, Menu, dialog, Node APIs, fetch, WebSocket and web storage. |
| Native logic | Bind Rust or C directly through the C ABI. | Keep existing Electron main & Node code (optionally add Rust/C bindings). |
| Targets | macOS arm64, iOS arm64 & sim, Linux x86_64 & arm64 (Windows, Android & Game UI planned). | Desktop: macOS arm64 & Linux x86_64 (Windows planned). |
| Availability | Early-access SDK (release scope). | Design partners (hello@attar.dev). |