页面简介
Build Rive files with Claude Code, Codex, or Cursor through the Rive CLI, then shape them by hand in the Rive Editor. No account needed to start.
正文摘录
DocsGet StartedBuildRive EditorDesign, animate, and wire interactive graphicsRive CLIYour coding agent builds Rive filesGame EngineMake 2D and 3D games for web, mobile, desktop, and consolesDownloadsDesktop apps and the CLIShipRuntimesOpen-source runtimes for every platformRendererVector, raster, and 3D on the GPUThe .riv FormatSmall, fast files for art, motion, and logicExploreAll FeaturesAnimaScriptMarketplaceRive CLIBuild with your agentYour agent and the Rive Editor work together, so you can go back and forth.Set up your agentBuild forAppsInteractive UI for iOS, Android, and desktopWebsitesHeroes, product stories, and interactive pagesProduct DesignProduct UI and AI charactersGamesWhole games, from art to gameplayGame UIMenus and HUDs for any engineCharactersRig and animate characters that reactVehiclesClusters and infotainmentBroadcastScorebugs and live data overlaysFilm & TVScreen graphics played live on setAll Use CasesCase StudiesSpotifyDuolingoLinkedInFigmaIntercomPocketwatch GamesAll Case StudiesCompareRive vs HTMLRive vs LottieRive vs After EffectsRive vs AnimateRive vs SpineFigma to RiveGamesPlay games made with RiveEach one runs on web, mobile, desktop, and consoles.Play nowLearnDocumentationGuides for the Editor, CLI, and runtimesBlogReleases, case studies, and tutorialsChangelogWhat shipped in the Editor and runtimesVideo TutorialsLearn Rive step by step on YouTubeCommunityCommunityDiscordExpertsFeature RequestsBug ReportsSupport and CompanySupportVoyager SupportEnterpriseContactCareersPressNewsletterNewsletterGet Rive news in your inboxNew features, case studies, and community work, about once a month.SubscribeDocsGet StartedBuildRive EditorDesign, animate, and wire interactive graphicsRive CLIYour coding agent builds Rive filesGame EngineMake 2D and 3D games for web, mobile, desktop, and consolesDownloadsDesktop apps and the CLIShipRuntimesOpen-source runtimes for every platformRendererVector, raster, and 3D on the GPUThe .riv FormatSmall, fast files for art, motion, and logicExploreAll FeaturesAnimaScriptMarketplaceRive CLIBuild with your agentYour agent and the Rive Editor work together, so you can go back and forth.Set up your agentBuild forAppsInteractive UI for iOS, Android, and desktopWebsitesHeroes, product stories, and interactive pagesProduct DesignProduct UI and AI charactersGamesWhole games, from art to gameplayGame UIMenus and HUDs for any engineCharactersRig and animate characters that reactVehiclesClusters and infotainmentBroadcastScorebugs and live data overlaysFilm & TVScreen graphics played live on setAll Use CasesCase StudiesSpotifyDuolingoLinkedInFigmaIntercomPocketwatch GamesAll Case StudiesCompareRive vs HTMLRive vs LottieRive vs After EffectsRive vs AnimateRive vs SpineFigma to RiveGamesPlay games made with RiveEach one runs on web, mobile, desktop, and consoles.Play nowLearnDocumentationGuides for the Editor, CLI, and runtimesBlogReleases, case studies, and tutorialsChangelogWhat shipped in the Editor and runtimesVideo TutorialsLearn Rive step by step on YouTubeCommunityCommunityDiscordExpertsFeature RequestsBug ReportsSupport and CompanySupportVoyager SupportEnterpriseContactCareersPressNewsletterNewsletterGet Rive news in your inboxNew features, case studies, and community work, about once a month.SubscribeRive for agentsBuild Rive with your AI agentBuild Rive with your AI agentThe CLI builds Rive files from Rive Markup Language (RML), plain-text .rml files that agents can read and write. No sign-in and no account needed to get started.CLI docsWatch the walkthroughCheck what you builtConfirm a scene compiles, inspect what it contains, render frames without a window, and drive it with real or simulated input and data. Run the same checks in CI.Text you can diffA project is a folder of plain text and assets, so it lives in Git or Perforce next to your app code, and every change reviews as a readable diff.Work offlineWrite, preview, verify, and test without a connection. Sign in to publish or sync with the Rive Editor. Publishing compiles and signs your scripts, and runtimes refuse any script that isn’t signed.scene.rml~/card1 <Artboard width="480" height="300" name="Card">2 <LayoutComponent name="Root">3 <LayoutComponentStyle flexDirectionValue="row"4 flexWrapValue="wrap" gapHorizontal="24" …/>5 <LayoutComponent width="132" height="132" name="Avatar">6 <Node x="66" y="70" name="Face">…</Node>7 <Shape x="66" y="66" name="Knob" id="0:25">8 <DistanceConstraint distance="48" …/>9 </Shape>10 </LayoutComponent>11 <LayoutComponent name="Info">12 <LayoutComponentStyle flexDirectionValue="column"13 minWidth="200" layoutWidthScaleType="fill" …/>14 </LayoutComponent>15 </LayoutComponent>16 <LinearAnimation duration="60" name="Look X" id="0:30">…17 <LinearAnimation duration="60" name="Look Y" id="0:31">…18 </Artboard>Rive CLI previewcard$ rive card --verifyverified (0 errors, 0 warnings)Install it yourselfOr skip this step: your agent installs the CLI when you paste the starter prompt.macOS and Linuxcurl -fsSL https://releases.rive.app/cli/install.sh | bashmacOS with Homebrewbrew install --cask rive-app/tap/rive-cliWindows (PowerShell)irm https://releases.rive.app/cli/install.ps1 | iexAnimaScriptScripts your engineers can sign off onScripts your engineers can sign off onAnimaScript is Rive’s scripting language: TypeScript syntax, compiled to WebAssembly. Edit the code below: the compiler runs in your browser.Read the docsSee the benchmarksReviewed like your codeEvery script is a .as text file in your repo. Engineers, Copilot, or your own agent review it in a pull request, with the same approvals as everything else you ship.SignedPublishing signs your scripts. Runtimes refuse scripts that are unsigned or changed after signing.SandboxedScripts run in a WebAssembly sandbox and only reach the Rive APIs the runtime gives them. A bad pointer stops the script instead of touching your app’s memory.Tested in CIWrite tests next to your scripts and run them headless with rive --test. A failing test fails the build.Near native speedCompiled ahead of time, AnimaScript decodes Draco meshes 8.7× faster than the previous scripting runtime. Existing scripts keep working.orbit.asbounce.asclosure.asResetFormat← type here// Edit any number: the scene recompiles as you type. declare function dot(x: f32, y: f32, r: f32, a: f32): void; struct Vec2 { x: f32; y: f32; } function orbit(i: i32, t: f32): Vec2 { const k = <f32>i; const angle = t * (0.3 + k * 0.004) + k * 2.399; const radius = 16.0 + k * 0.42; let p = Vec2(); p.x = Mathf.cos(angle) * radius; p.y = Mathf.sin(angle) * radius * 0.6; return p; } export function frame(t: f32): void { const count = 360; for (let i = 0; i < count; i++) { const p = orbit(i, t); const fade = <f32>i / <f32>count; dot(p.x, p.y, 1.0 + fade * 1.6, 0.25 + fade * 0.75); } } loading the rasc compiler…rasc · the AnimaScript compiler, running in your browserWebAssemblyTwo ways to workPick how your agent works with RiveUse one, or move between them on the same project.Rive CLIYour coding agent builds and edits Rive files from text, checks its work, and exports. Works with any agent that runs shell commands. No account needed to start.Built-in AI AgentAsk the agent inside the Rive Editor to write scripts, build layouts and data models, and animate. Every plan has it: Free and Cadet get a preview, Voyager and up get the full feature set.Agent setupWorks with the agent you already useThe same starter prompt works everywhere.Claude CodePaste the starter prompt and Claude Code installs the CLI. Projects come with a CLAUDE.md, so Claude knows how to check its work.Open in terminalOpen in Claude appCodexPaste the starter prompt and Codex installs the CLI. Projects come with an AGENTS.md, which Codex reads when it opens the folder.Open in Codex appCursorOpen the project folder in Cursor and paste the starter prompt. Cursor reads AGENTS.md.Open in CursorAny other agentHermes, OpenClaw, and any agent that can edit files and run shell commands work the same way.Copy starter promptHow to get startedDirect your agent. Then shape it by hand.Start with one prompt in your coding agent. It installs the Rive CLI, builds a first version, and opens the CLI preview window on your screen, no account needed. Keep directing it, or open it in the Rive Editor for professional design and animation tools: rigging, timelines, state machines, and data binding.Works with Claude Code, Codex, Cursor, Hermes, OpenClaw, and other agents that run on your computer. macOS (Apple Silicon), Windows, and Linux.Copy starter promptOpen the Editor01 Start with a promptInstall the Rive CLI from rive.app/cli and use it to build a drivable night city. Put me in the driver’s seat of a hovercar whose dashboard screens and windshield HUD are live Rive artboards with state machines, animations and data binding. Fill the skyline with animated, clickable billboards that are also Rive artboards. Render it in 3D with GPU Canvas.CopyA first prompt like this gets you an early version: a city, a drivable car, working cockpit screens, and billboards. Name the Rive features you want. Most models learned before the CLI existed, so specifics help.02 Watch it buildCoding agent~/cityInstall the Rive CLI from rive.app/cli and use it to build a drivable night city. Put me in the driver’s seat of a hovercar…Installing the Rive CLI and setting up a project.›Rancurl -fsSL releases.rive.app/cli/install.sh | bash›Ranrive create city›Ranrive citypreview window open›Editedscene.rml+214 -3A first version is in the preview window: city, car, cockpit screens, and billboards. Tell me what to change.Ask for changesRive CLI previewcityWatching for changesThe preview window rebuilds every time your agent saves, and your agent checks its own work in it too.03 Give notesLooks great, now let’s make it cinematic. Add a title screen where the city builds itself before the Rive logo appears, with lighting closer to golden hour. Make the HUD smaller and glassier, ke