phoenix
Original:🇺🇸 English
Translated
Phoenix Elixir framework with LiveView for real-time. Use for Elixir apps.
5installs
Sourceg1joshi/agent-skills
Added on
NPX Install
npx skill4agent add g1joshi/agent-skills phoenixTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Phoenix
Phoenix (Elixir) provides real-time scalability (millions of connections). v1.7 + LiveView allows building rich SPAs without writing JavaScript.
When to Use
- Real-time: Chat apps, live dashboards (Channels).
- High Concurrency: Leveraging the BEAM VM (Erlang).
- Low JS: LiveView handles the UI state on the server.
Core Concepts
LiveView
Server-rendered HTML that updates over WebSockets. "The server is the state source".
Ecto
The database wrapper. Using for validation.
ChangesetPubSub
Built-in, distributed publish-subscribe system.
Best Practices (2025)
Do:
- Use Verified Routes: ensures compile-time link safety.
~p"/users/#{@user}" - Use Tailwind: Default in 1.7.
- Use Function Components: HEEx templates with declarative assigns.
Don't:
- Don't use SPA unless needed: LiveView covers 95% of use cases.