| title |
icon |
details |
Pure, beautiful Ruby |
๐งโ๐ณ |
Phlex gives you HTML semantics in Ruby so you can use your existing skills designing object-oriented views. Plus, you get to use tools like RubyLSP, Rubocop and Simplecov. |
|
| title |
icon |
details |
Fast enough |
๐ |
Phlex renders HTML at ~1gbps per core on a MacBook Pro (M3 Max) and it doesnโt slow down the more components you extract. |
|
| title |
icon |
details |
Rails integration |
๐ |
Phlex works great with Rails. It supports all Rails helpers and plays nicely with ViewComponent, ActionView, Stimulus, Turbo and Tailwind. |
|
| title |
icon |
details |
Structural safety |
๐ก๏ธ |
Phlex is designed to structurally prevent cross-site-scripting (XSS) attacks by default. |
|
| title |
icon |
details |
Sensible isolation |
๐งช |
Phlex components only depend on the data you pass in, making them easier to test and reuse. |
|
| title |
icon |
details |
Zero dependencies |
๐ฆ |
Phlex has no dependencies and the Rails extension only depends on Rails itself. |
|
| title |
icon |
details |
Kits |
๐ |
You can package up components into โkitsโ for easy reuse across projects. Kits can be shared with the community as Ruby gems or kept for internal use. |
|
| title |
icon |
details |
Selective rendering |
๐ |
You can render a view targeting a specific DOM ID. Phlex only does the work to render just the parts you want. This is great for partial Hotwire updates like Turbo Frames. |
|
| title |
icon |
details |
Streaming |
๐ |
Phlex can stream responses to boost time to first byte (TTFB). In some cases users can see the first static content before the database has even responded. |
|