Phonebook turns SwiftUI and Compose previews into a shareable static UI gallery

A developer has released Phonebook, an open-source CLI and MCP server that converts existing Jetpack Compose and SwiftUI preview annotations into a self-hosted static HTML component gallery. The tool addresses a long-standing gap in native mobile development, where UI previews are typically locked inside developer IDEs and inaccessible to designers, PMs, and QA teams. Phonebook works by harvesting previews already written in the codebase rather than requiring developers to maintain a separate component catalog. It uses two commands — generate and build — to render previews and output a plain static website with no SaaS dependency. The project draws on a recurring industry need, with multiple teams at companies like Doist and rebuy previously having built similar internal tools independently.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in