Lookbook
UI development environment for Ruby on Rails apps that renders component previews and Markdown pages in a browsable inspector.
Lookbook is a UI development environment for Ruby on Rails applications, built as an isolated Rails engine. Each public method of a preview class is a scenario that Lookbook renders in isolation, and the preview inspector lists those scenarios. Lookbook previews ViewComponent and Phlex components, as well as ActionView partials, and Markdown pages in it can use ERB.
Installation adds the gem to the Gemfile, runs bundle install and mounts the engine in the application’s routes.
Worth knowing
The installation guide places the gem in the development group and mounts the engine inside a development check. The production guide says the gem must move into the production group and the development check must come out of the mount before Lookbook runs in production.
Sources
- 2026-10-28: links, Categories, Templating
lookbook.build/ - 2026-10-28: links, Written in, License, GitHub stars
api.github.com/repos/lookbook-hq/lookbook - 2026-10-28: links, Install with
lookbook.build/guide/installation - 2026-10-28: Maintainer, License model
raw.githubusercontent.com/lookbook-hq/lookbook/main/LICENSE.txt - 2026-10-28: Built on
github.com/lookbook-hq/lookbook/blob/main/README.md - 2026-10-28: Runtime
github.com/lookbook-hq/lookbook/blob/main/lookbook.gemspec - 2026-10-28: Minimum runtime
github.com/lookbook-hq/lookbook/blob/v2.3.15/lookbook.gemspec - 2026-10-28: First release, Current major version, Last release
api.github.com/repos/lookbook-hq/lookbook/releases - 2026-10-28: Contributors
api.github.com/repos/lookbook-hq/lookbook/contributors