Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

ScriptWidget adds AI-assisted widget tools and a browser-based studio

AI summary

ScriptWidget’s developer says AI helped revive the JavaScript widget app and advance previously deferred documentation, testing, and compatibility work. The updated app supports iPhone, iPad, and Mac, while Web Studio provides browser-based code editing, visual layout controls, mock data, and previews; scriptwidget-cli adds validation, native Mac previews, and .swt export. A scriptwidget-creator Skill can guide coding agents such as Claude Code in generating components, although the developer says generated code still requires preview review and physical-device testing.

In-depth insight

The update combines AI-assisted component generation with browser editing and native tooling, giving developers a more accessible path from code to native home-screen widgets across iPhone, iPad, and Mac.

用 AI 重塑 ScriptWidget
用 AI 重塑 ScriptWidget

2021 年,我做了一个叫 ScriptWidget 的 App,让人可以用 JavaScript 写 iPhone 小组件。后来项目做做停停,还下架过一段时间。这是当时的发布文章 https://sspai.com/post/65435

最近我又(让AI)把它捡起来,有了AI的存在,就可以大胆实现之前曾经没有时间做的事情。现在可以在 iPhone、iPad 和 Mac 上使用,也可以打开 Web Studio,在浏览器里写代码、调布局、看预览。如果你平时用 Coding Agent,还可以让它按 ScriptWidget 的规则生成组件,再用工具检查。

从一块桌面小组件开始

我想在手机桌面上放一点自己关心的东西:倒计时、一句话、一张图片,或者接口返回的几行数据。ScriptWidget 就是从这个念头开始的。

为了这么一小块界面去建原生工程、写 Swift、编译安装,我总觉得准备工作比做组件本身还多。于是我用 JavaScript 和 JSX 做了一层接口:用代码描述文字、图片和布局,ScriptWidget 再把它渲染成原生小组件。写过 React 的人会觉得 JSX 眼熟。ScriptWidget 用的是自己的组件和 API,桌面上显示的是原生小组件。

#ScriptWidget#Web Studio#scriptwidget-creator#scriptwidget-cli#Claude Code#iPhone#iPad#Mac

Original · 7 min readRead the original
Group chat

No comments yet. Start the conversation.