@webmcp-auto-ui/ui
v2.5.40
Published
Svelte 5 UI components — primitives, widgets, window manager
Maintainers
Readme
@webmcp-auto-ui/ui
32 Svelte 5 components for building data-dense interfaces. Built with Tailwind CSS and Svelte 5 runes.
Components
Primitives
Card · Panel · GridLayout · List · Window
Generic layout containers. No data assumptions.
Simple blocks
StatBlock · KVBlock · ListBlock · ChartBlock · AlertBlock · CodeBlock · TextBlock · ActionsBlock · TagsBlock
Compact single-purpose blocks. Each takes a data prop.
Rich widgets
StatCard · DataTable · Timeline · ProfileCard · Trombinoscope · JsonViewer · Hemicycle · Chart · Cards · GridData · Sankey · MapView · LogViewer
Higher-level components with more complex data shapes and interactivity.
Window manager
Pane · TilingLayout · FloatingLayout · FlexLayout · StackLayout
Layout containers for multi-pane interfaces. TilingLayout uses a Fibonacci spiral. FlexLayout provides an auto-grid layout with a size slider for adjusting block dimensions. FloatingLayout supports collapse/expand (double-click) and a fit-to-content button.
Agent UI widgets
ModelLoader · TokenBubble · EphemeralBubble · RemoteMCPserversDemo · SettingsPanel
ModelLoader — floating overlay with progress stream, auto-collapses to a pill once model is loaded. TokenBubble — real-time metrics display (req/min, input tokens/min, output tokens/min, cached tokens). EphemeralBubble — transient notification bubble (moved from app to package). RemoteMCPserversDemo — MCP server discovery component listing available demo servers. SettingsPanel — sliders with dynamic ranges for temperature, topK, and maxTokens controls.
WidgetRenderer
Dispatches a type string and data object to the right component. Accepts a servers prop listing WebMCP servers whose widgets should be available for rendering.
<script>
import { WidgetRenderer } from '@webmcp-auto-ui/ui';
import { autoui } from '@webmcp-auto-ui/agent';
</script>
<WidgetRenderer
type="stat"
data={{ label: 'Revenue', value: '€142K', trendDir: 'up' }}
servers={[autoui]}
/>Migration:
BlockRendereris still exported as a deprecated alias forWidgetRenderer. Theadapterprop is replaced byservers: WebMcpServer[].
Install
npm install @webmcp-auto-ui/uiRequires Svelte 5 and Tailwind CSS.
Usage
<script>
import { StatCard, DataTable, Timeline, BlockRenderer } from '@webmcp-auto-ui/ui';
</script>
<StatCard spec={{ label: 'Users', value: '8 204', variant: 'success', delta: '+3.2%' }} />Each component accepts a spec prop (rich widgets) or data prop (simple blocks). See the showcase app at :3010 for all components with live data.
License
AGPL-3.0-or-later
