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 terminal sync component.ex
Raw

lib/raxol/terminal/sync/component.ex

defmodule Raxol.Terminal.Sync.Component do
@moduledoc """
Defines the structure for synchronized components.
"""
defstruct [
:id,
:type,
:state,
:version,
:timestamp,
:metadata
]
@type t :: %__MODULE__{
id: String.t(),
type: String.t(),
state: term(),
version: integer(),
timestamp: integer(),
metadata: map()
}
end