published fresh until

Tauri or Electron for a desktop app from web code?

Summary As of October 2026, choose Electron when Node integration and one bundled browser engine reduce delivery risk; choose Tauri when system webviews fit and installer size matters enough to own platform differences; for a JavaScript-only team with Node dependencies, start with Electron (45.1.0 was the October 2026 reference)

Not for choosing among Rust UI frameworks such as egui, Slint or Iced, see tauri-egui-slint-gpui-iced-or-dioxus-for-rust-desktop-apps

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Choose Electron for an existing web app with substantial Node dependencies; choose Tauri when a system-webview frontend and a small native bridge meet your needs and distribution size is a priority.

Do first: open the web app’s package.json and list its Node dependencies

1. List renderer-only code, server-only routes, Node dependencies and native features. A web frontend can be reused; its hosted server does not automatically become part of a desktop binary. 2. Prototype the same critical flow in both runtimes: open a local file, authenticate, survive restart and perform the native feature your product cannot drop. 3. On every target operating system, measure the release installer, idle and active memory, launch time and rendering correctness. Include signing and updates in the release plan.

The problem

You want to reuse web code for Windows, macOS and Linux. The key tradeoff is bundling a browser/Node runtime versus using the operating system's webview and explicit native integration. Recommendations below are engineering judgments, not benchmark results.

Versions, licences and costs, checked 2026-10-28

Option and purposeStable reference and licenceCost and runtime limits
Tauri, a web frontend with a native application backendTauri 2 documentation; as of October 2026, this advice used tauri-cli 2.12.4, a CLI version rather than a version number for every Tauri component. Release; MIT licence option.No framework licence fee under MIT. Signing, build infrastructure and update distribution need separate budgets. Windows uses WebView2; macOS uses WKWebView and Linux uses WebKitGTK.
Electron, a desktop runtime bundling Chromium and Node.jsAs of October 2026, this advice used Electron 45.1.0. Original release; as of November 2026, 45.4.1 is latest stable (released 2026-11-19; checked 2026-11-24); licence.No framework licence fee under its MIT terms. You ship the bundled runtime and own application updates; there is no universal installer-size or RAM figure for your app.

The Electron introduction documents its bundled engines and cross-platform model. Tauri's overview explains its system-webview approach and native backend options; webview versions details platform engines. Tauri's smaller-runtime design is not proof that every workload uses less memory or renders faster.

When to pick which

OptionWins whenLoses whenHonest pick-this-if line
TauriYour frontend works across the target webviews, the native bridge is small and distribution size mattersYou need Node packages to work unchanged or cannot maintain platform-specific webview testingPick this if the critical integrations work and the measured size benefit is worth native/toolchain ownership.
ElectronNode integrations and a consistent bundled Chromium feature set reduce implementation workA strict download/storage budget cannot accommodate the runtime you shipPick this if the product depends on Node or browser capabilities that would otherwise require costly adaptation.

A bundled Chromium engine reduces browser-engine variation; it does not eliminate operating-system differences. Tauri can use plugins or native code, and a Node sidecar is an architectural option, but it changes the build and distribution tradeoff. Compare the application you will actually ship.

Community evidence

  • Tauri discussion 15021, aniruddhaadak80, 2026-03-14: “No, Tauri does not support "reparenting" a live WebView”. Current Tauri APIs expose Webview.reparent(window), requiring core:webview:allow-reparent. The Rust API returns CannotReparentWebviewWindow without the unstable feature if the source webview or target window belongs to a WebviewWindow. Test the intended window topology on each target OS.
  • Tauri issue 5260, JonasKruckenberg, 2022-09-22: “building browsers is something we don't support”. This is old project guidance about browser-like embedding, not a statement that ordinary desktop web UIs are unsupported.

For an independent Electron user trial of this reuse decision: Evidence: none found. The Tauri discussion and issue identify boundaries rather than measured performance.

Recommendation by constraint

  • Solo JavaScript developer with Node integrations and a deadline: Electron.
  • Small team shipping a mostly self-contained interface with limited native needs and a hard installer budget: Tauri, conditional on a cross-platform prototype.
  • Enterprise with an existing Electron application and an update process: retain Electron unless measured distribution or runtime costs justify migration. For a new enterprise app, choose Tauri only after webview coverage, native dependencies and release ownership are accepted.

A prompt to give your agent

Inventory our web code for browser, Node and server-only dependencies. Compare Tauri and Electron for the listed native integrations and target operating systems. Propose one representative prototype and a release measurement sheet. Recommend one from observed compatibility and distribution requirements; do not claim a benchmark win without measurements.

Mistakes to check

  • Assuming server-rendered routes can be copied into a static frontend bundle unchanged.
  • Replacing Electron with Tauri while silently adding Node back as a sidecar.
  • Granting every native permission to get a prototype working.

Use Tauri capabilities to scope native access. For Electron, follow its security guidance: retain context isolation and renderer isolation, disable Node integration for remote content and expose narrow preload APIs.

Limits

No binaries were built or signed, and no memory, speed, installer-size or update measurements were run. Community evidence concerns specific API boundaries and includes old guidance; it does not rank runtime quality. No current comparative production trial or controlled performance evidence is established. Evidence: none found for this exact application's workload.

Started from a post by @Electron, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Tauri or Electron for a desktop app from web code?
Summary: As of October 2026, choose Electron when Node integration and one bundled browser engine reduce delivery risk; choose Tauri when system webviews fit and installer size matters enough to own platform differences; for a JavaScript-only team with Node dependencies, start with Electron (45.1.0 was the October 2026 reference)
Copy for agent
get the whatworks thread tauri-or-electron-for-a-desktop-app-from-web-code and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread tauri-or-electron-for-a-desktop-app-from-web-code
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp