
Rive 动画桌面查看器(Tauri)双平台(Mac/PC)。具备演示包生成功能,用于向客户端分发自包含动画可执行文件。嵌入式 MCP 服务器
概览
本地和桌面查看器,支持.riv文件,支持运行时控制、JavaScript配置编辑、ViewModelInstance调试工具、媒体和独立导出、捆绑的原生MCP侧车,以及桌面自动更新支持。 关于媒体导出和录制,请参见媒体导出和录制。发布历史应放在更新日志中;验证证据保存在报告中。 - 当前公开版本:2.5.5(GitHub 版本)。- macOS 下载和更新应用均为 Developer ID 签名、公证并订书;更新器负载保留各自独立的更新签名。 仓库为应用程序、导出和 Windows Chrome 表面提供了明确的预构建保护: - NPM 运行检查:架构强制文件大小和文件夹形状预算- NPM 运行检查:DEPS 强制依赖-巡洋舰导入边界 - 测试/烟雾/UI-regressions.烟.测试。
概述(AI 翻译)
本地和桌面查看器,支持.riv文件,支持运行时控制、JavaScript配置编辑、ViewModelInstance调试工具、媒体和独立导出、捆绑的原生MCP边车,以及桌面自动更新支持。
关于媒体导出和录制,请参见媒体导出和录制。发布历史应放在更新日志中;验证证据保存在报告中。
发布
- 预发布候选:
2.5.9(待本地接受和发表)。 - 当前公开发布:
2.5.8(GitHub发布)。 - macOS 下载和更新器应用均由开发者 ID 签名、公证并订书;更新器负载保留各自独立的更新签名。
回归门
仓库为应用程序、导出和 Windows Chrome 表面提供了明确的预构建保护:
npm run check:architecture强制执行文件大小和文件夹形状预算npm run check:deps执行依赖-巡洋舰进口边界tests/smoke/ui-regressions.smoke.test.js保护共享滚动条合同、自定义窗口-Chrome 结构、Tauri 窗口配置以及导出的演示 Chrome 合约- 'tests/unit/ui/window-chrome.test.
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Rive Animation Viewer
A local and desktop viewer for .riv files with runtime controls, JavaScript configuration editing, ViewModelInstance debugging tools, media and standalone export, a bundled native MCP sidecar, and desktop auto-update support.
For media export and recording, see Media export and recording. Release history belongs in the changelog; validation evidence is kept in reports.
Release
- Prepared release candidate:
2.5.9(native acceptance and publication pending). - Current public release:
2.5.8(GitHub release). - macOS downloads and updater apps are Developer ID signed, notarized, and stapled; updater payloads retain their separate update signatures.
Regression Gates
The repo has explicit prebuild guards for the application, export, and window-chrome surfaces:
npm run check:architectureenforces file-size and folder-shape budgetsnpm run check:depsenforces dependency-cruiser import boundariestests/smoke/ui-regressions.smoke.test.jsprotects the shared scrollbar contract, custom window-chrome structure, Tauri window config, and exported demo chrome contracttests/unit/ui/window-chrome.test.jsprotects desktop window-control wiring and Tauri/non-Tauri behavior splitnpm run testruns the full Vitest suite before every package buildcargo check --manifest-path src-tauri/Cargo.tomlvalidates the native Tauri layer
These gates reduce regression risk, but they remain code and DOM contract tests. Packaged desktop behavior still requires native acceptance with a real .riv file.
Quick Start
npm install
npm start # Opens the browser DEV viewer at http://localhost:1420; MCP uses isolated port 9278
Browser preview and packaged DEV sessions may share port 9278, but the bridge
always routes agent commands to the packaged desktop app while it is connected.
The browser remains a fallback only when no desktop RAV peer is present.
Features
Core Viewer
- File Loading: Open button plus drag/drop file loading for
.rivfiles - Desktop Open With: Double-click / open-with / single-instance handoff for
.rivfiles - Runtime Selection: Toggle between Canvas and WebGL2 renderers
- Runtime Version Selection: Pick runtime semver (
Latest (auto), the latest 4 concrete versions, orCustom) from Settings - Layout Options: Fit and alignment are surfaced directly in the main toolbar next to playback controls
- Background Color: Color picker with
No BGreset for transparent canvas backgrounds - Explicit Canvas Size: Settings can pin the canvas to a specific width/height in pixels and optionally lock the aspect ratio
- Playback Controls: Play, pause, and reset/restart (reset restarts playback in place with autoplay and restores control values)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →