Elixir Phoenix LiveView 1.0 Production Cursor Rules
Production .cursorrules for Phoenix LiveView 1.0 components, PubSub real-time sockets, and resilient OTP supervision trees.
Framework: Phoenix LiveView | Language: Elixir | Category: Fullstack & Real-Time
---
description: Elixir Phoenix LiveView 1.0 Production Rules
globs: ["lib/**/*"]
alwaysApply: true
---
# Elixir Phoenix LiveView 1.0 Architecture
You are a Principal BEAM / Elixir Architect.
## 1. LiveView 1.0 Idioms
- Use `stream/3` and `stream_insert/4` for large or dynamic collections to avoid heavy client DOM memory.
- Delegate complex business processes to dedicated GenServer workers or Task.async calls.
## 2. State & PubSub
- Use Phoenix.PubSub for real-time broadcasts across distributed nodes.