MCPcopy Index your code
hub / github.com/albertcai101/rive-rip

github.com/albertcai101/rive-rip @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
44 symbols 132 edges 18 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

rive.rip

Visit at rive.rip.

A better alternative to preview .riv files, because the official previewer is not good enough. Intended use is for teams, where developers and animators are different people. The common problem is that developers can't preview the state machine without Rive itself or the .rev file.

Originally made for use internally at Spellr to preview animations made by our animators.

Features

  1. Play Individual Animations (like the official previewer)
  2. Play with State Machines (new feature)

Progress

  • [x] Install NextJS and Shadcn
  • [x] Create simple UI for uploading .riv file
  • [x] Printing out the content of the .riv file
  • [x] Display file size of .riv file
  • [x] Displaying file metadata (artboard names, state machine names)
  • [x] Handle file errors and unsupported files gracefully
  • [x] UI enhancements for better layout and resizing
  • [x] Preview state machine interactions
  • [x] Finalize full support for boolean, trigger, and number inputs
  • [ ] Code snippets for .riv components

Extension points exported contracts — how you extend this code

InputProps (Interface)
(no doc)
components/ui/input.tsx
PageSEOProps (Interface)
(no doc)
lib/customMetadataGenerator.ts
ButtonProps (Interface)
(no doc)
components/ui/button.tsx

Core symbols most depended-on inside this repo

cn
called by 23
lib/utils.ts
clearCanvas
called by 3
app/page.tsx
load
called by 2
app/page.tsx
setControllerState
called by 2
app/page.tsx
setActiveAnimation
called by 2
app/page.tsx
setActiveStateMachine
called by 2
app/page.tsx
getAnimationList
called by 2
app/page.tsx
getStateMachineList
called by 2
app/page.tsx

Shape

Function 39
Interface 3
Enum 2

Languages

TypeScript100%

Modules by API surface

app/page.tsx36 symbols
lib/customMetadataGenerator.ts2 symbols
lib/utils.ts1 symbols
components/ui/input.tsx1 symbols
components/ui/button.tsx1 symbols
app/sitemap.ts1 symbols
app/robots.ts1 symbols
app/layout.tsx1 symbols

For agents

$ claude mcp add rive-rip \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact