Agent-readable docs index: /effect-swiftui/llms.txt. Full docs in one file: /effect-swiftui/llms-full.txt. Download /effect-swiftui/docs.zip to grep all markdown files locally.

AppKit 0.2.x: Travel Notebook Example

AppKit 0.2.x archive. The recording and commands use the AppKit notebook checkout, including DevTools work after 0.2.1. For the current SwiftUI notebook, see Run the notebook.
Open From Naples to the Alps. Its checklist appears twice: in the task queue beside Postcards from Naples, and inside the itinerary. Reserve the Courmayeur bunk in either place and both views update from the same task.
The trip checklist, recorded in Cap: filter the queue, tick off the bookings, then add a final packing reminder. The itinerary stays open through the switch from dark to light.

Run it offline

From the repository root on a Mac with Bun and Xcode:
bun install --frozen-lockfile --ignore-scripts bun run demo:workspace
Dependencies need to be installed once. The running app uses no account, API, database, or network connection. Its sample dates are labels, not dates relative to your clock. Quit and relaunch to reset the workspace.
The window follows macOS appearance. Choose View → Appearance → Light or Dark to preview either look without changing your Mac’s settings; System resumes automatic switching.
  • Select Today to see “Paste the ferry ticket into my journal.” Return to All to see both checklists.
  • Select New Task with the itinerary open and add “Pack the hut slippers.” It appears in both the queue and the itinerary.
  • Select Naples for a first-person journal entry, Turin for a market morning, or Mont Blanc for the planned walking stages.
  • Complete the six trip tasks. The progress ring becomes a checkmark and the list offers Archive. Uncheck a task to dismiss the offer.
To inspect this example rather than just use it, follow Pick a control in Travel Notebook. The recording there shows the running app and its official DevTools panel side by side.

Test the running app with an agent

Close the standalone demo first. From the repository root, run the following in separate terminals. Use the project's dev dependencies and Node (CI uses Node 24).
# Terminal 1: serve the local timeline and HTTP MCP endpoint bun run devtools --dispatch
# Terminal 2: explicitly enable dispatch on this debug instance EFFECT_APPKIT_DEVTOOLS=dispatch bun run demo:workspace
Point your agent’s HTTP MCP client at http://127.0.0.1:4774/mcp. Choose the connected, controllable TravelNotebook session, inspect the ToggledTask schema on /TravelNotebook, and read the task whose ID is hut. With Tasks → All and From Naples to the Alps open, dispatch this message, check the root model and both mounted rows, then toggle again to restore the original state:
{ "_tag": "ToggledTask", "taskID": "hut" }
You can run the exact round trip without configuring an agent:
# Terminal 3: connect to the existing session, not a mock node examples/kestrel/check-workspace.mjs
The agent can drive model-backed actions while the debug session is connected. It cannot drive native-only menus, grant itself access, or record the screen through this bridge. For read-only mode and port configuration, see Effect UI DevTools.

Follow one click across the bridge

The queue and reader each mount their own TaskRow[hut]. Check Reserve a bunk near Courmayeur in the queue: that row emits ToggledTask with taskID: "hut". TaskQueue forwards it to TravelNotebook, which changes done on the shared task. Both rows receive new props; neither owns a second copy of the checklist. Pick alone selects a row without sending ToggledTask.

Where the glass comes from

The workspace shell (examples/kestrel/Native/Workspace.swift) and content panes (WorkspacePanes.swift) are ordinary SwiftUI, mounted using the public custom-view API. The window keeps its real macOS traffic lights. Glass is reserved for floating controls; the document uses system text colors on a separate reading surface.
Build with the macOS 26 SDK or later and run on macOS 26 or later for native Liquid Glass. Earlier supported systems use a material fallback. The visual design belongs to this example, not to every app using the library.

Export the GIF with Cap

The full-resolution MP4 is the source for the animated preview. With Cap Desktop installed on macOS, run this from the repository root:
sh examples/kestrel/export-gif.sh
The script references the existing MP4 in a temporary Cap project and exports it locally at 12 fps. It keeps the original dark-to-light transition and zooms; there is no need to re-record the app. Cap records and exports the media. DevTools is what changes the running model.