交互式 AUP 演示
52 个在 AUP 渲染器中运行的在线演示——从仪表盘和表单到物联网控制和品牌复刻。每个演示都是一个 JSON 文件。同一棵树在 iOS (SwiftUI)、Android (Compose)、终端和 Web 上呈现完全一致。
实时预览
每个演示都在真实的 AUP 渲染器中运行。所见即所得——同样的 JSON 树在 iOS (SwiftUI)、Android (Compose) 或终端上渲染效果完全一致。
交互式探索
点击任意演示标签切换预览。使用「查看源码」开关查看生成各界面的 AUP JSON。每个演示都是单个 JSON 文件。
跨设备就绪
全部 52 个演示仅使用 AUP 的 18 个跨平台原语(加上少量仅 Web 的专用组件)。降级链确保每个 UI 都能适配设备能力。
仪表盘与门户6 个演示
Multi-panel layouts combining charts, tables, metric cards, and live data feeds. AUP's view primitive with layout: row and mode: card/panel composes complex dashboard grids without any custom CSS.
关键特性
- Zero CSS grids —
viewwithlayout: rowandgaphandles all column/row arrangements - Live data binding — each card's
srcproperty connects to a data endpoint; changes push automatically - Nested composition — cards contain charts, charts sit beside tables, all from the same JSON tree
Notice how dashboard arranges 6+ metric cards and charts in a responsive grid using only view nesting. In finance, the candlestick chart and order book update from the same data source. portal shows a full app shell with sidebar navigation, header, and content area — all declarative.
表单与向导2 个演示
Input validation, multi-step flows, and settings panels built from AUP's input and action primitives. Sidebar step navigation, field validation, and conditional visibility — all declared in JSON.
关键特性
- Multi-step wizards — sidebar navigation with step indicators, each step a separate
viewchild - Input variants — text, email, password, select, textarea, checkbox — all via
inputprimitive'svariantprop - Validation rules —
required, pattern matching, and conditional visibility declared in the JSON tree
In form-wizard, notice the sidebar step list and how advancing steps swaps the visible content panel. form-contact demonstrates field grouping, labels, and a submit action button — the form state is managed entirely through AUP events, no JavaScript handlers.
智能家居5 个演示
Five IoT control interfaces with device panels, status readouts, and real-time charts. Each demo uses view cards with media icons, text status, and action buttons for device control.
关键特性
- Device cards — each IoT device rendered as a
view mode=cardwith icon, name, status, and toggle - Real-time charts — energy consumption and climate data via
chartprimitive bound to live sensor data - Room-based layout — sh-living groups devices by room using nested
viewcontainers
sh-homekit recreates the Apple Home app layout — device tiles with status icons and toggle controls. sh-energy shows solar panels, battery, and grid consumption with area charts. sh-security combines camera feeds (media) with alarm status and motion sensor history.
数据可视化7 个演示
Charts (line, bar, area, pie, radar, scatter), geographic maps, 3D globe, and specialized visualizations. Each configured via props.variant and bound to live data via src.
关键特性
- 6 chart variants — line, bar, area, pie, radar, scatter — all from the single
chartprimitive - 3D globe — WebGL-rendered rotating globe with data point overlays, degrades to
mapon low-cap devices - Specialized renderers —
moonphaseandnatalshow how custom web-only widgets extend the primitive set
chart displays all six chart variants side by side in a single page — same primitive, different variant prop. globe renders a 3D earth with clickable data points. calendar shows the calendar cross-platform primitive with event markers and month navigation.
通信4 个演示
Real-time messaging with channel lists, message feeds, and input composers. Cross-node event routing: selecting a channel fires an event that updates the message list's src binding.
关键特性
- Event-driven navigation — selecting a channel fires an event that rebinds the message list's
src - Chat primitive — the cross-platform
chattype handles message list, input composer, and typing indicators - Session management — session and session-chrome show browser-like tab management within AUP
chat shows a full messaging app: channel sidebar (via afs-list), message feed, and input bar. Click a channel — the message list updates via AUP event routing, no page reload. sharing demonstrates share sheets and social media previews as AUP overlay nodes.
列表与集合10 个演示
The afs-list primitive's two dimensions: layout (list, grid, masonry, slideshow, table) × itemStyle (row, card, compact, media, hero). Pagination, virtual scrolling, and custom templates — all JSON.
关键特性
- Layout × ItemStyle matrix — 5 layouts × 5 item styles = 25 combinations from one primitive
- Field mapping —
fieldsprop maps data keys to display slots (title, subtitle, image, badge) - Virtual scrolling — list-virtual renders 10,000+ items with DOM recycling, no pagination needed
Compare list-fields-row vs list-fields-card vs list-fields-hero — same data, different itemStyle. list-grid shows a product catalog with image cards. list-pagination demonstrates server-side paging with page controls — the list fetches only the current page via src.
内容与媒体8 个演示
Article layouts, media galleries, and branded showcase pages. The same AUP primitives — view, text, media, action — compose into polished product interfaces through layout and theme configuration alone.
关键特性
- Rich typography —
textprimitive withlevel,scale, andintentfor headings, body, captions, and badges - Media galleries — unsplash and exposure show photo grids with lightbox overlays using
media+overlay - Markdown rendering — the
markdowndemo converts MD content to styled AUP text nodes
content shows a full article page: hero image, author byline, body text, and related articles sidebar. unsplash recreates a photo search/gallery interface with masonry grid. overlays demonstrates modals, toasts, and slide-out panels — all via the overlay primitive.
品牌体验4 个演示
Pixel-accurate recreations of well-known product interfaces — no custom CSS or HTML. Proves AUP's semantic nodes + theme tokens can reproduce complex, branded UIs from pure JSON.
关键特性
- No custom CSS — every pixel is achieved through AUP theme tokens and primitive props
- Complex layouts — google recreates the search page with header, search bar, suggestion pills, and footer
- Dark/light themes — openai-home and once show dark-mode branded experiences
google reproduces the Google homepage — centered search bar, 'I'm Feeling Lucky' button, and footer links. openai-home recreates the ChatGPT interface with sidebar, model selector, and message area. once shows a Basecamp-style project management UI. All pure JSON, zero HTML.
设备与降级4 个演示
How AUP handles device capabilities, error states, and graceful degradation. One tree definition adapts automatically: chart→table→text, map→media→text.
关键特性
- Degradation chains — chart→table→text, map→media→text, editor→input→text — built into the protocol
- Device caps detection — the runtime probes what the device supports and auto-selects the best renderer
- Error boundaries — errors shows how invalid nodes display structured error messages instead of crashing
degradation-demo shows the same tree rendered with full, reduced, and minimal capabilities side by side. Watch charts become tables and maps become images. device displays current device capabilities and how each primitive resolves on this device.