talira

Compare

PhlexViewComponent
What it isObject-oriented views in RubyA framework for building reusable, testable & encapsulated view components in Ruby on Rails
KindOpen sourceOpen source
Trust0.230.67
Stars—3568
Last commit—2026-11-12
LicenceMITMIT
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostableYesYes
Ways to run it——
SOC 2——
HIPAA——
SSO——
API——
Plugins——
MCP server——
Company——
Features
  • HTML, SVG and CSV views written as Ruby classes
  • structural templating that is designed to prevent cross-site scripting
  • kits, caching, fragments, streaming, snippets and testing for components
  • phlex-rails: Rails helpers, views and layouts, adoption guide for existing apps
  • works alongside ERB, ViewComponent, Stimulus, Turbo and Tailwind CSS
  • renders about 1.4 Gbps of HTML per core on an M3 Max MacBook Pro, by the project's own figure
  • follows BreakVer, with security patches for recent minor versions
  • Ruby class plus template per component
  • unit tests with render_inline
  • Capybara matchers in tests
  • slots
  • previews
  • about 2.5x faster than partials in its benchmark
  • long-term support release (4.x)
Limitations
  • Doesn't run on Ruby older than 3.2: phlex 2.x requires Ruby 3.2 or newer
  • Doesn't support Rails before 7.1: phlex-rails 2.x requires railties 7.1 or newer (and below 9)