SlexKit
Streaming Live EXpressions Kit
HTML-first interactive Markdown rendered in isolated document frames.
SlexKit is an interactive UI runtime for Markdown hosts. Write explicit slex fences in the document; the runtime mounts forms, metrics, calculators, and previews without adding a build step for each artifact.
Runtime scope
- Zero-build — Write slex fences directly in Markdown; the host loads the runtime and CSS.
- Streaming — Works with message and document streams; fences mount as content arrives.
- Standard JavaScript — Use DOM events and the
slexSDK; no expression-string binding language. - Component set — Built-in document components: cards, forms, tables, code blocks, tabs, and more.
- Secure sandbox — Run untrusted content in a secure runtime isolated from the host page.
- Tool-call rendering — ToolHost renders confirmations, choices, and forms as submit-ready UI.
Quick Example
Write an interactive calculator in Markdown:
```slex
<slex-row>
<slex-input id="price" type="number" label="Price" value="99"></slex-input>
<slex-input id="qty" type="number" label="Qty" value="3"></slex-input>
<slex-stat id="total" label="Total" value="297"></slex-stat>
</slex-row>
<script type="module">
const price = slex.root.querySelector("#price");
const qty = slex.root.querySelector("#qty");
const total = slex.root.querySelector("#total");
const update = () => { total.value = Number(price.value) * Number(qty.value); };
price.addEventListener("input", update);
qty.addEventListener("input", update);
slex.onDispose(() => {
price.removeEventListener("input", update);
qty.removeEventListener("input", update);
});
</script>
```
Get Started
- Introduction — Learn about SlexKit's design philosophy
- Quick Start — Get up and running in 5 minutes
- Component Docs — Browse all available components
- Examples — Browse use-case examples
- npm — Install with
npm install slexkit - GitHub — Source code and contributions
AI / LLM Documentation
Index, full context, and MCP entry points for agents:
- /llms.txt — Documentation index with structured table of contents for all guides, components, examples, and reference docs
- /llms-full.txt — Full English documentation in a single file (all Markdown source)
- /llms-components.txt — Component docs with props/state reference
- /llms-runtime.txt — Runtime, host integration, and secure rendering docs
- /llms-toolhost.txt — ToolHost structured user-input docs
- /llms-authoring.txt — slex fence authoring rules
- /slexkit-ai-manifest.json — Machine-readable page and component metadata
MCP server: npx -y @slexkit/mcp (read-only: docs search, examples browsing, Slex source validation)