phlex

Object-oriented views in Ruby. (by yippee-fun)

Phlex Alternatives

Similar projects and alternatives to phlex

  1. htmx

    674 phlex VS htmx

    </> htmx - high power tools for HTML

  2. AppSignal

    AppSignal knows why the f*#k it crashed. Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.

    AppSignal logo
  3. shadcn/ui

    377 phlex VS shadcn/ui

    Composable, accessible components with thoughtful defaults. Build your own component library with code you can customize, extend, and make your own.

  4. view_component

    A framework for building reusable, testable & encapsulated view components in Ruby on Rails.

  5. shoelace-css

    80 phlex VS shoelace-css

    Discontinued Shoelace is now Web Awesome. Come see what’s new!

  6. stimulus_reflex

    Build reactive applications with the Rails tooling you already know and love.

  7. oclif

    39 phlex VS oclif

    CLI for generating, building, and releasing oclif CLIs. Built by Salesforce.

  8. Haml

    30 phlex VS Haml

    HTML Abstraction Markup Language - A Markup Haiku

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. hiccup

    20 phlex VS hiccup

    Fast library for rendering HTML in Clojure

  11. liveviews

    Phoenix LiveView workalikes for different languages and frameworks

  12. Arbre

    3 phlex VS Arbre

    An Object Oriented DOM Tree in Ruby

  13. tortoise-orm

    12 phlex VS tortoise-orm

    Familiar asyncio ORM for python, built with relations in mind

  14. Pagy

    12 phlex VS Pagy

    Agnostic pagination in plain ruby

  15. rux

    9 phlex VS rux

    A jsx-inspired way to render view components in Ruby.

  16. Slim

    32 phlex VS Slim

    Slim is a template language whose goal is to reduce the syntax to the essential parts without becoming cryptic. (by slim-template)

  17. Cells

    7 phlex VS Cells

    View components for Ruby and Rails.

  18. Hamlit

    1 phlex VS Hamlit

    High Performance Haml Implementation

  19. ruby_ui

    6 phlex VS ruby_ui

    Ruby gem for RubyUI Components

  20. pyxl4

    5 phlex VS pyxl4

    Extend Python syntax with HTML.

  21. maglev-core

    Ruby on Rails website builder

  22. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better phlex alternative or higher similarity.

phlex discussion

Log in or Post with

phlex reviews and mentions

Posts with mentions or reviews of phlex. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-04-01.
  • RubyUI (Former PhlexUI): Ruby Gem for RubyUI Components
    7 projects | news.ycombinator.com | 1 Apr 2025
    There is an experimental feature that allows you to use ERB templates like ViewComponent. https://github.com/phlex-ruby/phlex/pull/867
  • Django and Postgres for the Busy Rails Developer
    10 projects | news.ycombinator.com | 11 Dec 2024
    A bit off topic, but whenever Rails and templating get brought up, I have to plug my absolute favorite project out there: [Phlex](https://beta.phlex.fun/). It's like ViewComponents, but swap out the ERB for pure Ruby. It has been a joy to develop with.

    With the addition of Phlex::Kit, it has made building out a component library pretty easy too. [RubyUI](https://github.com/ruby-ui/ruby_ui) does a great job of showing off how to do this.

  • Do React ao Hotwire - Parte II - [PT-BR]
    5 projects | dev.to | 16 Jun 2024
  • From React to Hotwire - Part II - [EN]
    5 projects | dev.to | 16 Jun 2024
    As an alternative to ViewComponent, I found Phlex. It comes with the boldness of creating components using only Ruby code. This is the kind of boldness that scares. I was scared when I first saw React put HTML, JS, and CSS (StyledComponents) inside a component. I was scared to see Tailwind create classes for each CSS property and have HTML created with dozens of classes in an element. Letting go of this "prejudice" and testing Phlex was important here. But the decisive factor was following the creator of Phlex, Joel Drapper, on social media and realizing how motivated he is.
  • Phlex: Fast, object-oriented view framework for Ruby
    1 project | news.ycombinator.com | 15 Feb 2024
  • RailsWorld 2023: Hotwire Edition
    3 projects | dev.to | 8 Oct 2023
    The community was a delight! I can't even count how many people I connected with, and it was just great to meet people whom I had previously only interacted with online. Also got to meet a lot of those people who significantly contribute to the Rails ecosystem. Everyone I said hi to was more than willing to spare time and nerd out and share experiences. I was also thrilled to connect with Philip, who shares my enthusiasm for Phlex. He provided me with some exciting ideas for creating an even more crazy yet cohesive form object with Phlex.
  • Anyone tried Django? How does it compare to RoR?
    3 projects | /r/rails | 24 Jun 2023
    Why use ActiveAdmin or RailsAdmin: Brick is not nearly as configurable -- at least yet! With Brick you can drop in your own model / controller / view template and it will use it, but on its own you can not change theming / use it to do templating tricks / etc. Currently working hard to arrive upon a straightforward and logical approach so that all of this will be possible. Looking into Arbre (used by ActiveAdmin) and Phlex for inspiration.
  • Phlex is the ruby way to build your views
    2 projects | dev.to | 8 Jun 2023
    Phlex is an incredibly refreshing gem created by Joel Drapper. It introduces a remarkable way to build views in pure Ruby, as exemplified below:
  • Any component based UI system for Rails?
    4 projects | /r/rails | 3 Jun 2023
  • I built a Rails app using 100% Phlex components and 0% Erb
    2 projects | /r/rails | 18 Apr 2023
    A few months ago I came across https://www.phlex.fun and thought it was a nifty little library that could be useful for creating components. Since then I've been playing around with it in Rails, using it more seriously, and finally took it to a point where I built a Rails application with 100% Phlex components and 0% Erb. The other crazy thing is I figured out how to inline the Phlex view components into a controller, so prototyping Rails apps feels vaguely familiar to prototyping one in Sinatra.
  • A note from our sponsor - AppSignal
    www.appsignal.com | 5 Oct 2026
    Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise. Learn more →

Stats

Basic phlex repo stats
23
1,529
9.0
4 days ago

yippee-fun/phlex is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of phlex is Ruby.


Sponsored
AppSignal knows why the f*#k it crashed.
Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.
www.appsignal.com

Did you know that Ruby is
the 14th most popular programming language
based on number of references?