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/terminal/screen_buffer/visualizer.ex
defmodule Raxol.Terminal.ScreenBuffer.Visualizer do
@moduledoc false
defstruct [:charts]
@type t :: %__MODULE__{
charts: list(map())
}
def init do
%__MODULE__{
charts: []
}
end
def create_chart(%__MODULE__{} = state, data, options) do
chart = %{
data: data,
options: options,
id: System.unique_integer([:positive])
}
%{state | charts: [chart | state.charts]}
end
end