🧑🍳Pure, beautiful RubyPhlex gives you HTML semantics in Ruby so you can use your existing skills designing object-oriented views.
🚀Fast enoughPhlex renders HTML at ~1.4gbps per core on a MacBook Pro (M3 Max) and it doesn’t slow exponentially the more components you extract.
🚂Rails integrationPhlex works great with Rails. It supports all Rails helpers and plays nicely with ERB, ViewComponent, Stimulus, Turbo and Tailwind.
🧪Sensible isolationPhlex components only depend on the data you pass in, making them easier to test and reuse.
🔎Selective renderingRender a view targeting a specific fragment of HTML and Phlex only does the work to render just the parts you want.
🌊StreamingPhlex can stream responses to improve time-to-first-byte (TTFB). Let users see content before the database has even responded.
💵Fragment cachingRails-compatible fragment caching lets you control how different parts of your view are cached.
🧵HTML / SVG string-builderYou can also use the Phlex DSL to build HTML and SVG strings directly, without creating a component class.