# surface-ui/surface

A server-side rendering component library for Phoenix

Repository: https://github.com/surface-ui/surface
Canonical: https://ross.abutalabs.com/products/surface
Homepage: https://surface-ui.org
Language: Elixir
License: MIT
License Family: permissive
Last push: 2026-03-25T17:07:50+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 74, release rhythm 35, longevity 100
- inputs: {"age_days": 2604, "days_push": 161, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2136, forks 147 (observed 2026-08-28T04:06:17.610040+00:00)

## What it is
Surface is a server-side rendering component library for the Phoenix web framework, built on top of Phoenix LiveView. It offers an HTML-centric templating language with components as modules, declarative properties, slots, contexts, and compile-time checking, enabling rich interactive UIs with minimal custom JavaScript.

## Use cases
- build server-rendered interactive UIs in a Phoenix LiveView app
- write Phoenix templates with an HTML-centric component syntax
- create reusable Elixir components with props, slots, and contexts
- get compile-time checking of template structure and component properties
- reduce the amount of custom JavaScript in a Phoenix web app
- add a component library to an existing Phoenix project

## When to choose
- you are building a Phoenix LiveView application and want a more ergonomic, HTML-centric component API
- you want compile-time validation of templates, props, slots, and events
- you prefer server-side rendering with minimal custom JavaScript
- you want components that can be stateless, stateful, renderless, or compile-time

## When to avoid
- your project is not built on Elixir/Phoenix
- you need a heavy client-side SPA with complex in-browser state
- you are happy with plain HEEx/LiveView templates and don't want an extra templating layer
- you need a framework that runs rendering in the browser rather than on the server

## Facets
- artifact type: library
- maturity: active
- function: ssr, ui-components, templating, frontend-framework
- domain: web-development, frontend
- platform: elixir
- tags: phoenix-liveview, phoenix, component-library, html-templating, compile-time-checking, slots, minimal-javascript, server-rendered-ui, web-server

## Member repositories
- surface-ui/surface (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:17.610040+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-30T02:51:53.551054+00:00, confidence not recorded.
  - readme: https://github.com/surface-ui/surface (fetched 2026-08-28T04:06:17.610040+00:00, sha 5fd995e45908)
- Data as of 2026-08-30T08:39:29.467469+00:00.
