Replace Storybook
The standard way to develop UI components in isolation — built for JavaScript component libraries rather than server-rendered views.
Why teams move off Storybook
Storybook is free and excellent, and it is built for JavaScript components. Getting it to render a Rails partial means a second server and duplicated markup.
What you give up
The addon ecosystem and the interaction testing built around it.
This directory says so when an engine only covers part of the job. A replacement that needs a caveat is still worth knowing about — it just should not surprise you in week three.
1 Rails engine that replaces Storybook
Questions
- Is there an open-source alternative to Storybook for Rails?
- Yes — Lookbook. It mounts into an application you already run, so there is no second deployment and no second database.
- What do I give up by replacing Storybook?
- The addon ecosystem and the interaction testing built around it.
- How do I replace Storybook in a Rails app?
- Add lookbook to your Gemfile, mount it in config/routes.rb at /lookbook, and run its migrations. The whole integration is two lines and a migration.
- How much does replacing Storybook save?
- Storybook is priced open source. The engines here are open source, so the cost becomes the time to mount one and the resources it uses inside your existing application.
Same category