iOS/macOS ScriptWidget – Create Widgets with JavaScript
xnu.app·12h·
Discuss: Hacker News
📱Mobile Development
Preview
Report Post

SwiftUI runtime for JavaScript widgets

ScriptWidget lets you author widgets in a familiar JS + JSX workflow, then renders them with a native SwiftUI runtime across iOS, iPadOS, and macOS.

iOS, iPadOS, macOSLive Activities + Dynamic IslandJSX to SwiftUI

Example

// ScriptWidget
// https://xnu.app/scriptwidget

$render(
<vstack frame="max" padding="12" background="#0f172a">
<text font="caption" color="#94a3b8">Hello ScriptWidget</text>
<text font="title3" color="#e2e8f0">Widgets with JavaScript + JSX</text>
</vstack>
);

Edit scripts in the app and preview instantly. Widgets refresh automatically on device.

Composable UI

Build layouts with JSX components mapped to native SwiftUI views, including stacks, charts, gauges, and custom shapes.

Powerful runtime APIs

Ac…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help