Introduction
Radiant is a reactive host toolkit with three package layers that work together:
@ecopages/radiantforRadiantElement,RadiantController, decorators, lifecycle, context, and host rendering behavior@ecopages/jsxfor TSX authoring, DOM mounting, SSR serialization, and hydration helpers@ecopages/signalsfor renderer-agnostic signals, effects, watchers, and stores
Start Here
The primary workflow is:
- Install
@ecopages/radiantand@ecopages/jsx - Choose a host style:
RadiantElementfor custom elements, orRadiantControllerfor behavior attached to authored DOM - Override
render()when that host should own a JSX view. Skiprender()and use@bindTowhen it should enhance authored light DOM. - Reuse the same decorators, bindings, context, and reactive patterns across both host types
Shared Reactive Host
RadiantElement and RadiantController both implement the same reactive host contract.
That shared surface is what lets the same decorator layer define fields, bindings, context reactions, and tracked reads without depending on one specific host class.
In practice, the split is simple:
- Use
RadiantElementwhen you want the host to be a real custom element with its own public tag contract. - Use
RadiantControllerwhen the DOM should stay authored outside the class and the controller should enhance or render inside that existing host. - Use the same reactive fields, bindings, events, and context patterns either way.
Radiant still keeps browser primitives visible and still favors light DOM by default. That keeps styling, DOM inspection, and authored child content straightforward, while avoiding a separate abstraction for controller-driven hosts.
Getting Started
If you're new to Radiant, we recommend starting with the following guides:
- Installation - Set up the package combination you need.
- Hydration - Learn the current SSR-to-client attach model for JSX and Radiant hosts.
- Best Practices - Learn the recommended host patterns and when to split element and controller responsibilities.
- RadiantElement - Start with the custom-element host base class.
- JSX Overview - Understand the TSX authoring layer.
- Signals Overview - Understand the standalone reactive core.
For agents
This site publishes skill.txt, SKILL.md, and llms.txt. Start with the skill pack, then use llms.txt as the generated docs index.