# yippee-fun/phlex

Object-oriented views in Ruby.

Repository: https://github.com/yippee-fun/phlex
Canonical: https://ross.abutalabs.com/products/phlex
Homepage: https://phlex.fun
Language: Ruby
License: MIT
License Family: permissive
Topics: ruby, view-components, ui-components, phlex, component-architecture, component-library, server-side-rendering, ssr
Last push: 2026-07-28T07:51:48+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 69, longevity 100
- inputs: {"age_days": 1554, "days_push": 36, "days_rel": 208, "gap_med": 1, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1527, forks 108 (observed 2026-08-28T04:04:58.549340+00:00)

## What it is
Phlex is a Ruby gem for building fast, object-oriented HTML and SVG view components in pure Ruby. It integrates with Rails and supports streaming, fragment caching, and selective fragment rendering.

## Use cases
- build reusable view components in Ruby
- render HTML without ERB templates
- create SVG components programmatically
- integrate components into a Rails app
- stream HTML responses for faster time-to-first-byte
- prevent XSS through safe HTML construction
- cache fragments of server-rendered views

## When to choose
- you want object-oriented views in pure Ruby instead of template languages
- you need fast server-side rendering with Rails
- you want testable, isolated components that depend only on passed data
- you need streaming or fragment-level rendering and caching

## When to avoid
- you prefer template-based views like ERB, Haml, or Slim
- you need client-side rendering or a JavaScript component framework
- your project is not in Ruby

## Facets
- artifact type: library
- maturity: active
- function: ui-components, ssr, templating, web-framework
- domain: web-development, frontend, backend
- platform: ruby
- tags: view-components, html-rendering, svg, rails-integration, server-side-rendering, component-library

## Member repositories
- yippee-fun/phlex (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:58.549340+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:31:34.893039+00:00, confidence not recorded.
  - readme: https://github.com/yippee-fun/phlex (fetched 2026-08-28T04:04:58.549340+00:00, sha 5de157793a77)
  - homepage: https://phlex.fun (fetched 2026-08-29T11:34:10.081088+00:00, sha 7b7239489421)
  - site_page: https://v1.phlex.fun (fetched 2026-08-29T11:34:10.085407+00:00, sha b5f917147d77)
- Data as of 2026-08-30T08:39:29.467469+00:00.
