Start with the runtime.
Install the single `@ardabot/lensui` npm package, mount a stage region, and render lightcode. The package includes the runtime, CLI bridge, and reusable agent skill.
npm install @ardabot/lensui
import { createStageRuntime } from "@ardabot/lensui/html";
const root = document.querySelector("#lens-stage-mount");
const stage = createStageRuntime(root);
stage.setSource("markets", { bitcoin: { usd: 76448 }, ethereum: { usd: 2098 } });
stage.render(`0DS|markets|https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum&vs_currencies=usd|ttl=30|mode=poll
0F|st=mono|mode=dark
0V|Market Pulse|Live source
1G|auto|min=180|max=3
2M|BTC|$markets.bitcoin.usd|usd
2M|ETH|$markets.ethereum.usd|usd
2M|Tokens|-64%|vs React
1H|line|4,7,6,10,9,13,16|trend|h=190`);