GX Framework
The Go foundation for frontend work.
GX keeps component authoring, generated rendering, callbacks, runtime bridges, and tests inside Go packages. That makes frontend changes easier for Go-first teams and Go-specialized agents to generate, inspect, and maintain.
Framework areas
Nodes and render tree
Return and compose gx.Node values.
Source files
Write markup inside Go package files and compile it into Go.
Component functions
Use Go functions as reusable UI building blocks.
Props and children
Pass data through structs and nested content through slots.
Generated Go
Inspect the compiled roots that runtime and tests execute.
Events
Pass typed callback functions through the render tree.
Rendering
Render stable HTML and normalized VNodes.
Runtime bridges
Mount Go component trees and host effect surfaces.
Effects
Route actions and resource requests through the host.
Testing
Assert output, HTML, VNodes, snapshots, and mounted behavior.
What belongs to GX
GX owns the low-level component language: source parsing, formatting, linting, compilation, render-tree constructors, deterministic HTML rendering, callback payloads, runtime mounts, effect routing, and core test helpers.
Go-first teams can keep component source, generated rendering, tests, and automation in the same toolchain they already use for the rest of the product.
The GX Framework is available as the library layer. It gives you the foundation; your team still builds and maintains its own component package, and the pricing page shows the current purchase options. See GX/UI pricing.
func Hello(name string) gx.Node {
return <p class="message">
Hello {name}
</p>
}