{
  "id": 3311935,
  "title": "Phonebook: a Storybook-style preview gallery for SwiftUI and Compose, built for agents",
  "url": "https://urgent.news/2026/08/25/phonebook-a-storybook-style-preview-gallery-for-swiftui-and-compose",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-25T17:26:17.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/orelzion/phonebook-a-storybook-style-preview-gallery-for-swiftui-and-compose-built-for-agents-6g9"
  },
  "original_language": "en",
  "account": "The article discusses the creation of Phonebook, an open-source CLI and MCP server that transforms existing Jetpack Compose @Preview and SwiftUI #Preview components into a static HTML gallery. This gallery functions as a Storybook-style component catalog for native mobile previews, eliminating the need for developers to install Xcode, Android Studio, or debug apps to review loading states.\n\nMobile developers typically have efficient tools for rendering UI in isolation. For instance, Android developers can use @Preview in Jetpack Compose, while iOS developers have #Preview. However, when designers or other stakeholders request to see various states of buttons, loading screens, or dark mode versions, the preview becomes insufficient as it is confined within the developer's workflow.\n\nThe article explains that Storybook, a popular tool for web teams, does not have a direct equivalent for native mobile platforms. Teams have resorted to building their own solutions or catalog apps to address this issue. Phonebook aims to provide a solution by harvesting existing previews from the repository and converting them into a static website, avoiding the need to maintain separate sample apps or external services for hosting screenshots. The tool generates a static HTML, CSS, JavaScript, and image files site that can be opened locally or uploaded to various hosting platforms.",
  "summary": "TL;DR I built Phonebook , an open-source CLI and MCP server that turns existing Jetpack Compose @Preview s and SwiftUI #Preview s into a static, self-hosted HTML gallery. Think Storybook-style component catalog, but for native mobile previews you already have in your codebase. No SaaS account. No extra Storybook files to maintain. No asking designers to install Xcode, Android Studio, or your…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}