<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/xenia-vktsmjpcz" -->

---
title: xenia | daily.dev
description: Xenia lets you use any JavaScript library inside a Phoenix LiveView page. You write a small adapter per library, and Xenia manages props, events, commands, and...
canonical: https://daily.dev/posts/xenia-vktsmjpcz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: xenia | daily.dev
og:description: Xenia lets you use any JavaScript library inside a Phoenix LiveView page. You write a small adapter per library, and Xenia manages props, events, commands, and...
og:url: https://daily.dev/posts/xenia-vktsmjpcz
og:image: https://api.daily.dev/og/posts/VKTSMJpCZ.png
og:image:alt: xenia
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# xenia

**[ElixirStatus](https://daily.dev/sources/elixirstatus)** · 1 min read · 0 upvotes · 0 comments

## Summary

Xenia lets you use any JavaScript library inside a Phoenix LiveView page. You write a small adapter per library, and Xenia manages props, events, commands, and cleanup on navigation. It also handles form fields and app-wide values like the theme, plus routes, layouts, and persistent parts defined from folders.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://hex.pm/packages/xenia>

## Questions this post answers

### How can I use a JavaScript library inside a Phoenix LiveView page?

Xenia, a Hex package, lets you integrate any JavaScript library into a Phoenix LiveView page by writing a small adapter per library. It handles props, events, commands, and cleanup on navigation, as well as form fields and app-wide values such as the theme, plus routes and layouts from folders.

_Evaluating LiveView and JS interop options is easier when tracked alongside other Phoenix tooling on daily.dev._

## Similar posts on daily.dev

- [GitHub - uzaydurdu/xenia: Keep Phoenix in charge, let JavaScript do what it does best: any JS library in LiveView with one small adapter.](https://daily.dev/posts/github---uzaydurdu-xenia-keep-phoenix-in-charge-let-javascript-do-what-it-does-best-any-js-librar-6nurb7hue) · ElixirStatus · 1 upvotes · 0 comments
- [Xenia — Xenia v0.1.1](https://daily.dev/posts/xenia-xenia-v0-1-1-eeyieiewb) · ElixirStatus · 1 upvotes · 0 comments
- [Elixir Programming Language Forum](https://daily.dev/posts/elixir-programming-language-forum-qyfr7vfn8) · Elixir Forum · 0 upvotes · 0 comments
- [PyView: Real-time Python Web Apps](https://daily.dev/posts/pyview-real-time-python-web-apps-2huh9on7d) · Planet Python · 0 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#elixir](https://daily.dev/tags/elixir), [#liveview](https://daily.dev/tags/liveview)

[View this post on daily.dev](https://daily.dev/posts/xenia-vktsmjpcz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"xenia","url":"https://daily.dev/posts/xenia-vktsmjpcz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/xenia-vktsmjpcz"},"datePublished":"2026-10-26T21:57:11.937Z","dateModified":"2026-10-26T22:14:12.349Z","description":"Xenia lets you use any JavaScript library inside a Phoenix LiveView page. You write a small adapter per library, and Xenia manages props, events, commands, and...","image":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","thumbnailUrl":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","isAccessibleForFree":true,"articleSection":"ElixirStatus","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ElixirStatus","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/22e4640538124187827caf8cc8e39190","url":"https://daily.dev/sources/elixirstatus"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/xenia-vktsmjpcz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,elixir,liveview","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ElixirStatus","item":"https://daily.dev/sources/elixirstatus"},{"@type":"ListItem","position":3,"name":"xenia"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/xenia-vktsmjpcz#faq","mainEntity":[{"@type":"Question","name":"How can I use a JavaScript library inside a Phoenix LiveView page?","acceptedAnswer":{"@type":"Answer","text":"Xenia, a Hex package, lets you integrate any JavaScript library into a Phoenix LiveView page by writing a small adapter per library. It handles props, events, commands, and cleanup on navigation, as well as form fields and app-wide values such as the theme, plus routes and layouts from folders. Evaluating LiveView and JS interop options is easier when tracked alongside other Phoenix tooling on daily.dev."}}]}
```

