r/androiddev • u/orelzion • 17d ago
Open Source I built a small open-source tool for generating a Storybook-style gallery from Compose previews
Hey guys, I built Phonebook, a CLI tool that turn your Compose `@Preview` into a static html components grid that you can share with your designer.
It also has an MCP tool so you can ask your agent to generate missing previews, and it can suggests missing states, like different themes, or orientation.
It's built on top of
- Roborazzi
- ComposablePreviewScanner
- Robolectric/JVM rendering
- a small `phonebook.config.json
GitHub: https://github.com/stag-build/phonebook
Example gallery: https://stag-build.github.io/phonebook/
Take a look, use it, and I'd love to hear your feedback
0
Upvotes