Repository navigation
Description
Prioritize a native macOS path that runs shared Mavis/Vue logic in JavaScript and renders AppKit controls through @nativescript/macos-node-api. The first delivery must prove an existing shared screen and representative Jolt motion before expanding the component catalog.
The current SwiftUI path also translates a supported subset of application TypeScript/Vue behavior into Swift. A Vue runtime with an AppKit renderer could remove that language-translation burden while preserving native controls and avoiding a WebView.
Product decision — 2026-11-19
- NativeScript/AppKit becomes the next macOS development priority.
- Keep the existing SwiftUI target, compiler, templates and documentation available. Preserve existing behavior and compatibility checks; do not remove, deprecate or silently replace that target.
- Move further SwiftUI parity expansion behind this investigation. The remaining work in Compile existing shared Vue SFCs to SwiftUI through a framework-neutral source front end #339–Generate motion and effect components for macOS #354 stays open; macOS SwiftUI target: component, shared-source and navigation parity #338 is the historical tracking index, already closed on 2026-11-13. Reprioritization changes no completion states and makes no parity claim.
- A JavaScript runtime is allowed for this new path. The no-JavaScript-runtime gate in macOS SwiftUI target: component, shared-source and navigation parity #338 belongs to the retained SwiftUI target, not to all native macOS implementations.
- Keep the Jolt RC.16 upgrade tracked in Upgrade Mavis to Jolt 0.1.0-rc.16 #366. Use its verified baseline for motion evaluation; upgrading Jolt alone does not supply an AppKit renderer.
Evidence and boundaries
@nativescript/macos-node-api exposes real AppKit APIs to JavaScript. That does not make the current NativeScript-Vue mobile renderer or Mavis components automatically compatible with AppKit. Existing native components depend on NativeScript Core and UIKit/Android implementations; Jolt's mobile integration also needs an explicit compatibility audit.
The published Edge desktop host runs native windows and streams them to the browser IDE. Its example has separate Mac and Windows entry files with shared state. It demonstrates native interop and live updates, not complete Mavis/Vue portability or standalone distribution.
NativeScript runtimes #105 targets React Native macOS; #104 updates macOS SDK metadata. Both are open as of 2026-11-19. Record the versions/commits actually tested and distinguish published behavior from pending changes.
First delivery and acceptance
- Define the Vue/AppKit renderer and host boundary: evaluate Vue's custom-renderer API versus extending the existing NativeScript-Vue/Core path. Record what is reusable and what needs a desktop implementation.
- Run shared Vue reactivity, stores, async services, watchers, lifecycle and ordinary TypeScript modules without translating their behavior to Swift. Keep platform services explicit; do not assume DOM-dependent packages or arbitrary Nuxt pages become native.
- Implement the smallest component set needed by the existing Directory flow: search/list, details, edit, persistence, loading/error states, theming and navigation. Document any source changes rather than rewriting the example into an unrelated demo.
- Prove representative Jolt motion on real AppKit views. Identify which evaluators/Core Animation pieces can be reused and which host bindings, clocks, gestures or lifecycle hooks are missing. Keep animation scheduling in Jolt; track necessary upstream work separately.
- Validate direct window interaction: text editing, keyboard focus/shortcuts, pointer/scroll delivery, resizing, popup/sheet ownership, cancellation, reduced motion and cleanup after navigation/window close. Browser-streamed interaction is not the only acceptance evidence.
- Build and launch a standalone packaged app without the Edge preview server. Document runtime distribution, signing/notarization requirements, supported macOS versions and CPU architectures.
- Compare the same flow with the retained SwiftUI target: supported source behavior, native interaction, startup/memory where measured, distribution and maintenance burden. Record evidence and unresolved gaps without assuming a performance advantage.
- Publish an architecture decision and staged component/CLI adoption plan. Keep both targets explicitly distinguishable; no default switch or removal of SwiftUI is part of this first delivery.
Windows is a possible future reuse target, not a requirement of this first Mac slice. No promise of all 96 components or complete native parity follows from the preview command.
References
- macOS Node-API runtime
- Official AppKit example
- Vue custom-renderer API
- Edge desktop host
- Reference demo command:
npx @nativescript/edge-cli live --desktop - Retained SwiftUI parity: macOS SwiftUI target: component, shared-source and navigation parity #338. Jolt upgrade: Upgrade Mavis to Jolt 0.1.0-rc.16 #366. Initiative: Portable Mavis components: direct adapters, familiar authoring and native targets #144.
Accepted evidence — 2026-11-19
Delivered to main by #370 (80c773f). Required CI passed, including packaged AppKit acceptance, full Swift compilation, Web/creator/consumer checks and the retained SwiftUI UI gate. The first Mac UI allocation was abandoned by GitHub because no hosted ARM runner was acquired; its rerun passed.
The Directory Vue screens and stores run unchanged through a Vue custom renderer and explicit AppKit hosts. Native acceptance launches the relocated standalone app outside the checkout, delivers AppKit keyboard/pointer/scroll input, exercises editing, persistence across launches, error/loading states, navigation, sheets, resize, themes, motion cancellation/reduced motion and teardown. Window captures and JSON reports are retained in the CI artifact.
The tested package is @nativescript/macos-node-api@0.5.0-beta.0, Node 22.23.3 and Jolt RC.16 on an Apple Silicon macOS runner. Native motion uses Jolt's compiled track and Core Animation playback for the representative opacity adapter; the missing public AppKit adapter is tracked in Jolt #516.
Architecture and adoption plan and Portuguese version retain SwiftUI and distinguish both targets. This closes the first delivery only: the binary's declared macOS 13.3 minimum has not been runtime-tested, and Intel/Windows, production signing/notarization, comparative benchmarks, all-component coverage and full motion bindings are not claimed.
Activity
rafaelaugustos commentedon Nov 19, 2026
The first implementation is in #369, stacked on the Jolt RC.16 upgrade #368. The original Directory Vue screens, routes, store, watchers and async storage interface run unchanged through a private Vue/AppKit renderer. SwiftUI remains available; new macOS development prioritizes AppKit.
The packaged native acceptance job passed on macOS 15 arm64 with Node 22.23.3 and the published macos-node-api 0.5.0-beta.0. It launches the relocated, ad hoc signed
.appwith its bundled runtime, drives native mouse/keyboard/scroll events, verifies editing/navigation, themes/resizing, pending/failed/successful saves, Jolt/Core Animation completion/cancellation/Reduce Motion, sheet ownership and cleanup. A second process restores the saved edit. Reports and composited window screenshots are in theappkit-acceptanceartifact; the screenshots were also visually reviewed.The architecture comparison and staged renderer/component/CLI plan are documented in EN/PT. The experiment implements the Directory component subset and finite reveal opacity, not all Mavis components or the full motion API. A supported Jolt AppKit adapter is tracked in rafaelaugustos/jolt#516; the experiment currently uses version-checked private track compilation with native Core Animation playback.
Distribution remains local/ad hoc. No physical-pointer, oldest-supported-OS, Intel or comparative performance acceptance is claimed. No SwiftUI target, compiler, template or CLI default is removed or silently switched. Keep the issue open until the implementation is reviewed and merged.