Skip to main content
T
5mo ago

Access .riv file from Share Links

When sharing a project (via Share Links), I get access to an embed URL like this: https://rive.app/s/{ID}. But I'd like to access the path of the hosted .riv file instead. I can see (in the network panel of the embed site) that it's hosted on a public URL that includes both this ID, and my user ID, along with some third ID that I don't understand.

Is there way to get this URL (without first looking at the embed)?

2 replies
j
5mo ago

Hi no this isn't something we surface at the moment. In the future there may be a dedicated hosting feature that only serves to host a .riv asset and not create embed/share links.

j
(edited) 3mo ago

Hey , if you view the Framer code from the Share links code snippets, you will see an entry like this:

import RiveComponent, {
    componentName, propertyControls
} from "https://rive.app/api/s/asdfasdfasdf_5wewewEA/framer/"

If you paste the url that ends in /framer you will get a code snippet.

Within that code snippet will be a link to the public hosted .riv file.

const params = {
    src: "https://public.rive.app/hosted/472119/196490/bXrYsdfsdfsdfXEuEw_5sdfsdfsfDEA.riv",
    artboard: "Artboard",
    stateMachines: "State Machine 1",
    autoplay: true && props.play,
    automaticallyHandleEvents: true,
    layout,
  };