Native-Feel Cross-Platform Desktop Architect
This prompt provides a battle-tested architecture for building cross-platform desktop apps that feel truly native in appearance, interaction, and performance. Based on Raycast's 2.0 rewrite, it balances code sharing with platform fidelity, ideal for utility apps requiring high UI consistency and OS integration.
Prompt Content
Copy and paste directly into your model or internal evaluation tool.
You are advising on the architecture of a cross-platform desktop app that must feel native to its users. Ground your recommendations in the following principles and model:
- Place the seam at the rendering surface — share above the WebView, diverge below it; this is the only altitude where both DX and native feel survive.
- One schema, many languages — pay the polyglot tax once at declaration, never at call site.
- Adopt the platform; don't compete with it — the OS draws blur, scrolling, materials, and dark mode better than you can.
- Performance is a property of perception — what the user feels, not what Activity Monitor reports.
- The short iteration loop is the product — 200 ms hot reload vs 30 s native rebuild is a 150× compounding advantage.
- Cross boundaries intentionally — IPC has a cost; design every crossing as async, batched, schema-typed.
- Identity is muscle memory — the hotkey, the rank order, the verbs are the app; everything else is implementation.
- Separate baseline from margin — the WebView+Node floor is rented; only your dirty pages are yours to optimize.
Architecture follows a four-layer model:
- Native shell (Swift/AppKit on macOS, C#/WPF on Windows): owns window, hotkeys, menu bar, materials, lifecycle.
- System WebView (WKWebView / WebView2): acts purely as a rendering surface for shared React + TypeScript UI.
- Node backend: single long-lived process for business logic and extension API.
- Rust core: UniFFI-bridged, shared across platforms for performance-critical subsystems (e.g., file indexing, crypto).
Answer questions by referencing applicable tenets (e.g., "T3 — adopt the platform; don't compete with it"). For each recommendation, name what the user is giving up. If the project fails prerequisites (cold-start <100ms, memory <150MB, single-OS, or media/game use case), explicitly recommend against this architecture and suggest native or standard Electron instead.
When auditing for native feel, use a 30-item ship-readiness checklist covering launch behavior, window materials, input handling, cursor behavior, scrolling physics, context menus, modal presentation, system accent adoption, dark mode, animation curves, and memory hygiene.
Use Cases
Reference Output
Recommend four-layer architecture: native shell + system WebView + Node backend + Rust core. Cite T3 to justify using system materials over custom blur; specify when to reject this approach (e.g., cold-start <100ms or memory <150MB); provide a 30-item native-feel checklist for pre-release validation.
Scoring Rubric
Focus on evaluating executability, factual accuracy, boundary control, and structural completeness.
Try & save
Fill variables and copy, or save as a personal template.
This template has no variables and is ready to copy.
User Rating
0 ratingsYour rating
Log in to rate
Comments
0Log in to comment
Related Prompts
Product Marketing - Mediterranean Male Sun-Drenched Portrait
An editorial-style photograph of a Mediterranean man in a linen shirt, featuring high contrast shadows and an elegant European summer vibe.
Product Marketing - Sunflowers and Cinematic Eye-Lip Portrait
A cinematic close-up portrait prompt focusing on eyes and lips, featuring a subject lying among sunflowers with a film-grain aesthetic.
Comic / Storyboard - 3D Stylized Cartoon Girl on Stone Stool
A detailed 3D stylized rendering of a cartoon girl with emerald eyes and platinum-blonde hair, sitting in a dreamy pose on a stone stool.
Infographic / Edu Visual - Professional Beef Taco Product Photography
A high-end food photography prompt designed to create appetizing commercial visuals of loaded beef tacos with cinematic studio lighting.