00Widget

com.00widget由 00widget.com 发布官方发布者v1.0.0更新于 Nov 22, 2026

Publish status cards and Live Activities to iOS widgets, the Lock Screen, and the Dynamic Island.

已验证Streamable HTTP可网页运行效率与工作流开发者工具

概览

AI 生成的概览

把状态卡片和实时活动发布到 iOS 小组件、锁定屏幕和灵动岛,让助手的工作进度一眼可见。

可以做什么
  • 列出、读取、创建、批量写入和删除仪表盘卡片,并可一次读取整个仪表盘
  • 启动、更新、列出和结束锁定屏幕与灵动岛上的实时活动
  • 查询投递状态、权限、速率额度和已启用功能
  • 读取集成指南,了解模板选择与发布规范
适用场景
适合助手执行耗时或周期性任务(构建、部署、批处理、配送等)时,让操作者无需打开应用即可在 iPhone 或 Apple TV 上看到进度;也适合把队列深度、当日总量等常驻数值放到小组件上。
运行要求
需要一个远程 MCP 端点并作为自定义连接器添加;用户登录后选择租户,签发的凭据为租户令牌。后端本身需部署为 Cloudflare Worker,并配置 D1 与 APNs 凭据;iOS 应用需 Xcode 26+ 和 iOS 26。
安装前请注意
发布会写入操作者的设备:卡片可被创建、替换和删除,结束实时活动不可撤销。发布内容会显示在锁定屏幕上,因此卡片字段中不应包含密钥或个人数据。连接器流程会在公网签发 API 令牌,默认关闭;管理员权限可创建和吊销租户凭据并删除租户数据。

AI 概览如何生成和校验

安装

在 SourceWeft 中

  1. 打开 控制台中的 00Widget,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.00widget%2F00widget/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "00widget": {
      "type": "http",
      "url": "https://api.00widget.com/mcp"
    }
  }
}

README

[00Widget — Widgets for all your agents.]

00Widget

Widgets for all your agents.

A reusable Apple-platform companion app and Cloudflare Worker backend that gives Claude, ChatGPT, automations, and software you build a native output channel through widgets, Live Activities, the Dynamic Island, and Apple TV dashboards.

The server never sends UI — only structured state conforming to a small set of templates. The Apple apps render that state through predefined SwiftUI views.

Choose how to connect

Claude, ChatGPT, and other MCP hosts

Hosts that speak the Model Context Protocol can publish to 00Widget with no integration code: add <BASE_URL>/mcp as a custom connector, sign in, and pick a tenant. The tools wrap the same handlers as the REST routes, so the two surfaces cannot drift.

MCP is off by default (MCP_ENABLED in wrangler.toml) because it exposes a browser flow that mints API tokens on the public internet. Approving a connector requires signing in, and the credential it issues is a normal tenant token scoped to the approver's own account, revocable from /admin.

Details: server/README.md → "MCP".

An additive MCP Apps UI can be tested without touching that connector: deploy the same Worker with MCP_PREVIEW_ENABLED = "true", then add <BASE_URL>/mcp-preview as a separate Developer Mode connection. It adds read-only render_card, render_activity, and render_dashboard tools backed by a versioned HTML resource; /mcp keeps its existing discovery and tool contract.

Apps, scripts, automations, and coding agents

If you're inside another repo (say, a CI pipeline or a home-automation script) and want to make Claude Code / Codex publish state to your 00Widget instance, paste this into the agent — it's self-contained:

Integrate this project with 00Widget so its state shows up on iOS widgets and Live Activities.

Read the integration contract: https://github.com/morais/00widget/blob/main/docs/llms.md
That single document is everything you need — don't pull in the rest of the 00Widget repo.

Operator-supplied env vars:
  00WIDGET_BASE_URL=https://api.example.com
  00WIDGET_API_KEY=<bearer token>

Verify both work with `curl $00WIDGET_BASE_URL/health` and an authenticated `GET /v1/cards` before writing any code.

Then:
1. Identify the surfaces in this project that an iOS widget should reflect (status, build state, queue depth, in-progress jobs, etc.).
2. For each, pick a template (`summary`, `progress`, `list`, `action`, `chart`, `history`, `breakdown`, `briefing`, or `timeline`) per llms.md's decision matrix.
3. Add the smallest possible publish path — POST one card to `/v1/cards/upsert`, or one related snapshot to `/v1/cards/upsert-batch`, using stable ids. No SDK, no class hierarchy.
4. If something is time-bounded with a clear end (a build, a charge cycle, a delivery), use a Live Activity instead of a card.

Constraints:
- Use a stable `id` per logical thing — never embed timestamps or run ids.
- Never put secrets or PII in card fields. They render on the Lock Screen.
- Always end Live Activities. Never make destructive actions auto-run from widgets.
- Don't publish more than ~once a minute per card unless the value actually changed.

If this project is itself a Cloudflare Worker, see the "Notes for Cloudflare Workers callers" section in llms.md — same-account integrations should use a Service Binding instead of a public HTTPS fetch.

Anatomy

00widget/
  ios/          # SwiftUI app + WidgetKit extension + Live Activity (iOS 26+)
  server/       # Cloudflare Worker (TypeScript) — REST API + APNs fan-out
  examples/     # curl scripts showing how any agent can publish state
  marketing/    # Screenshot and App Preview sources, docs, and entry points
  artifacts/    # Generated marketing output (ignored by Git)

Quick start

1. Backend

cd server
npm install
install -m 600 .dev.vars.example .dev.vars   # fill in SESSION_SECRET; enable the local fallback only when needed
npx wrangler dev

Then:

curl -s http://localhost:8787/health

2. Examples

cd examples
install -m 600 env.example.sh env.sh   # edit BASE_URL and API_KEY
./upsert-solar.sh

3. iOS

Requires macOS with Xcode 26+, iOS 26 simulator or device, and XcodeGen.

brew install xcodegen
cd ios
xcodegen
open ZeroZeroWidget.xcodeproj

In Xcode, change the bundle id and App Group to values your Apple Developer team owns (see ios/README.md), then run.

Data model

See ios/Sources/Shared/Models/ (Swift) and server/src/types.ts (zod) — the two are kept in lockstep.

  • DashboardCard — a single widget tile. Templates: summary, progress, list, action, chart, history, breakdown, briefing, timeline.
  • LiveActivitySession — a Lock Screen / Dynamic Island activity.
  • ActionDefinition — a button that runs a backend-defined action via POST /v1/actions/:id/run.

Web sign-in and admin

/login signs a person in with the same Apple ID they use in the iOS app. Signing in establishes identity, not authority: ADMIN_EMAILS names the addresses whose sessions additionally carry admin capabilities, and every route under /admin asserts that capability rather than assuming it.

Signing in does not sign you up. The callback resolves the Apple identity against the account the app created and turns away one it does not recognise, so finding this endpoint is not a way to become a tenant. WEB_SIGNUP_ENABLED (off by default) opts a deployment into web account creation.

The admin dashboard at /admin lists cards, devices, push tokens, Live Activities, pending activities, and push-to-start tokens across every tenant. It can also create and revoke tenant credentials and delete tenant data, so access grants full administrative control rather than read-only visibility. An API_KEYS bootstrap login (ADMIN_API_TOKEN_LOGIN=true, off by default) covers a deployment that has no accounts yet.

Administration is enabled by default. Set ADMIN_ENABLED = "false" under [vars] in server/wrangler.toml and redeploy to make /admin and all its mutation endpoints return 404 before session or database access. Web sign-in, the account dashboard, MCP authorization, and the public API remain available.

Create least-privilege tenant API tokens from /admin using the tenant owner email and a permission preset; those generated credentials are what apps and agents use for /v1/*.

Setup walkthrough: server/README.md → "Web sign-in".

Documentation

  • ios/README.md — Xcode setup, entitlements, signing.
  • server/README.md — Worker deploy, D1 binding, APNs secrets, web sign-in and admin.
  • examples/README.md — publishing state from any shell or agent.
  • docs/llms.md — for agents (Claude Code / Codex) integrating another project with 00Widget.
  • docs/brand/README.md — logo, colors, tagline rules.
  • marketing/screenshots/README.md — raw capture, promotional composition, and App Store screenshot workflow.
  • marketing/app-preview/README.md — App Store Preview capture, rendering, and validation workflow.

Status

Working end-to-end. Cards publish, Live Activities start/update/end, push-to-start is wired, and APNs payloads are verified against Apple's current docs (date-stamped in server/src/apns.ts).

Push-to-start (ActivityKit, iOS 17.2+) — fully implemented. iOS observes Activity<ZeroZeroWidgetActivityAttributes>.pushToStartTokenUpdates from didFinishLaunchingWithOptions, registers via POST /v1/live-activities/register-start-token. The backend's POST /v1/live-activities/start sends the start event to all registered devices and falls back to the pending-queue path if no token is registered (or if the APNs delivery fails). End-to-end verification needs .p8 credentials configured on the Worker.

tvOS activity dashboard — the Apple TV app lists ongoing Live Activities above its widgets. The backend exposes one deduplicated tenant-scoped view across pending starts and registered device activities, while tvOS renders countdowns and progress locally.

WidgetKit pushHandler (iOS 26+) — fully implemented. Each widget configuration calls .pushHandler(ZeroZeroWidgetPushHandler.self). The handler persists WidgetKit’s canonical token/configuration snapshot in the App Group, and the host app reconciles it at launch, on foreground, after app-build changes, and through a short bounded retry while WidgetKit finishes generating a token. Backend pushes carry aps.content-changed: true, use budget-aware per-tenant cadence, and durably coalesce suppressed changes into one delayed queue delivery when the cadence window opens. A successful foreground app fetch also requests targeted timeline reloads immediately. End-to-end verification still needs .p8 credentials and a physical device.

License

Source code is MIT licensed. The 00Widget name and brand assets are excluded; see LICENSE and docs/brand/LICENSE.

来源:README.md,提交 f98ddff

工具

12

list_cards

List cards

List every dashboard card this credential's tenant has published, as stored. Use it to discover the ids already in use before publishing, and to read back what a widget shows.

输入参数includeShared

get_card

Get a card

Read one published card by its stable id. Returns `{ card }`, the same envelope every other read on this API uses.

输入参数id必填

upsert_card

Publish a card

Create or replace one dashboard card, for standing state the operator checks on — a balance, a queue depth, today's total. For work with a start and an end that you will report on while it runs, start_live_activity is the better surface: it reaches the Lock Screen and Dynamic Island, where a card only reaches a Home Screen widget on a rationed refresh budget. The `id` is the identity of the thing…

输入参数id必填iconunitchartitemstitle必填valuestatus另有 14 个

upsert_cards_batch

Publish several cards at once

Create or replace up to 32 cards in one call. Always prefer this over repeated upsert_card when one snapshot produces several related cards: it makes a single widget-reload decision instead of burning WidgetKit's daily reload budget once per card. Set `replacePrefix` to your own id namespace and the snapshot also deletes what it no longer contains, which is the only way to stop reporting…

输入参数cards必填replacePrefix

delete_card

Delete a card

Remove a published card. Widgets showing it stop showing it.

输入参数id必填

list_live_activities

List Live Activities

The Live Activities this tenant currently has running, with their content state. Pass includeEnded to also get the ones that finished in the last day — which is how to check whether an end actually landed, or to find an activity whose externalActivityId you lost.

输入参数includeEnded

start_live_activity

Start a Live Activity

Start a Live Activity on the Lock Screen and Dynamic Island. Use this for work with a start and an end that you will report on while it runs — a build, a deploy, a test or capture run, a batch job, a wash cycle, a charge, a delivery. It is the right surface whenever the operator wants to watch progress without opening anything, and the only one that can be. Always end it. `title`, `kind` and…

输入参数iconkind必填unitalertchartitemsstate必填title必填另有 11 个

update_live_activity

Update a Live Activity

Push new content state to a running Live Activity. A new `title` is stored and returned by list_live_activities but the Lock Screen keeps the original — it is frozen at start.

输入参数iconunitalertchartitemsstatetitlevalue另有 9 个

end_live_activity

End a Live Activity

End a running Live Activity with a final frame. Always end what you start. This cannot be undone: an ended activity cannot be resumed, only replaced by starting a new one, which the user sees as the old one dismissing and a new one animating in.

输入参数finalUnitfinalChartfinalItemsfinalStatefinalValuefinalEndsAtfinalSignaldismissalDate另有 4 个

get_dashboard

Read everything at once

Every published card and every running Live Activity in one call. Prefer it over list_cards plus list_live_activities when you want the whole picture — it is one request instead of two and the two halves are read together.

无需输入参数。

get_status

Check what this connection can reach

Whether anything will actually see what you publish, what this credential may do, how much rate budget is left, and what this deployment has enabled. Worth one call before publishing for the first time: if `delivery.canPushWidgets` is false, nothing you publish will be seen by anyone, and the operator needs to install the app and allow notifications rather than you trying again.…

无需输入参数。

get_integration_guide

Read the 00Widget integration guide

The rules no argument schema can carry: which template fits which shape of data, what a Live Activity freezes at start, and what publishing etiquette costs you if you ignore it. Read it before publishing for the first time. ALWAYS pass `section`: pick `cards` or `live-activities` for the surface you decided on, which is half the size of the default and all of it relevant. Only fall back to…

输入参数section

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

这个评分如何计算