Packages

Multi-surface application runtime for Elixir. One TEA module renders to terminal, browser (LiveView), SSH, and MCP (agents). 30+ widgets, flexbox + CSS grid, AI agent runtime, distributed swarm with CRDTs, time-travel debugging, session recording, sandboxed REPL, and agentic commerce.

Current section

Files

Jump to
raxol lib raxol web supervisor.ex
Raw

lib/raxol/web/supervisor.ex

defmodule Raxol.Web.Supervisor do
@moduledoc """
Supervisor for web-related processes.
"""
use Supervisor
def start_link(init_arg) do
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
end
@impl true
def init(_init_arg) do
children = [
{Registry, keys: :unique, name: Raxol.Web.Registry},
{DynamicSupervisor,
name: Raxol.Web.DynamicSupervisor, strategy: :one_for_one},
Raxol.Web.Manager,
# Authentication Manager for handling user authentication
Raxol.Web.Auth.Manager,
# Session Manager for managing user sessions
Raxol.Web.Session.Manager,
# Add Phoenix Presence for user tracking
{RaxolWeb.Presence, []}
]
Supervisor.init(children, strategy: :one_for_one)
end
end