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
Current section
Files
lib/raxol/core/runtime/rendering/engine_behaviour.ex
defmodule Raxol.Core.Runtime.Rendering.Engine.Behaviour do
@moduledoc """
Behavior for rendering engines.
"""
@doc """
Renders a view to output.
"""
@callback render(view :: term(), context :: term()) ::
{:ok, term()} | {:error, term()}
@doc """
Initializes the rendering engine.
"""
@callback init(opts :: keyword()) :: {:ok, term()} | {:error, term()}
@doc """
Terminates the rendering engine.
"""
@callback terminate(state :: term()) :: :ok
end