# woutdp/live_svelte

Svelte inside Phoenix LiveView with seamless end-to-end reactivity

Repository: https://github.com/woutdp/live_svelte
Canonical: https://ross.abutalabs.com/products/live_svelte
Homepage: https://hexdocs.pm/live_svelte
Language: Elixir
License: MIT
License Family: permissive
Topics: liveview, elixir, ssr, svelte, phoenix, phoenix-liveview, websocket
Last push: 2026-07-26T11:49:57+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 68, longevity 92
- inputs: {"age_days": 1289, "days_push": 38, "days_rel": 138, "gap_med": 74.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1656, forks 76 (observed 2026-08-28T04:05:17.991353+00:00)

## What it is
LiveSvelte is an Elixir library that integrates Svelte components into Phoenix LiveView, providing seamless end-to-end reactivity over websockets. It supports server-side rendering of Svelte, a sigil-based DSL, TypeScript, Tailwind, and slot interoperability.

## Use cases
- build real-time chat UIs in Phoenix with Svelte components
- add client-side interactivity to a LiveView app without a separate SPA
- server-side render Svelte components inside an Elixir web app
- sync complex local frontend state with a Phoenix server over websockets
- use Svelte animations and scoped CSS in a LiveView project
- create hybrid apps where LiveView handles forms and Svelte handles rich UI

## When to choose
- you use Phoenix LiveView and want Svelte's DX, animations, and scoped CSS
- you need complex client-side state alongside server-driven real-time updates
- you want SSR for Svelte within an Elixir stack

## When to avoid
- your project is not built on Phoenix or Elixir
- you need a fully client-side SPA without a server-rendered backend
- your production environment cannot run Node.js 19+ for SSR

## Facets
- artifact type: library
- maturity: active
- function: ssr, websocket, frontend-framework, state-management, templating
- domain: web-development, frontend, developer-tools
- platform: cross-platform
- tags: svelte, phoenix-liveview, elixir, end-to-end-reactivity, hex-package, real-time, web-server, nodejs

## Member repositories
- woutdp/live_svelte (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:17.991353+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-30T03:44:50.944682+00:00, confidence not recorded.
  - readme: https://github.com/woutdp/live_svelte (fetched 2026-08-28T04:05:17.991353+00:00, sha e9ff7024594d)
  - homepage: https://hexdocs.pm/live_svelte (fetched 2026-08-29T11:17:35.791768+00:00, sha f87861f9206e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
