Quickstart

Load your personal Ready Player Me avatar in your React project in less than 5 minutes.

Before you begin

  • Sign in to Studioarrow-up-right (Developer Dashboard) and copy your subdomain. This will allow you to create and load an avatar in your domain at a later step.

Install the package

Ready Player Me React SDK is available as an npm packagearrow-up-right.

npm i @readyplayerme/rpm-react-sdk

Overview

React SDK comes with two main components.

  • AvatarCreator: A component wrapping the Ready Player Me in an iFrame with parameters to configure the creator.

  • AvatarCreatorViewer: A combination of AvatarCreator and Visage to load and render the avatar after creation. Visage arrow-up-rightis a 3D viewer layer of Ready Player Me which is used for loading and visualizing 3D objects and Avatars. It comes with two main components (Exhibit and Avatar).

Import the package and integrate the Avatar Creator

After installing the npm package into your project, you can import the AvatarCreatorViewer Component and pass your subdomain as a parameter to load the Ready Player Me in your React project.

import { AvatarCreatorViewer } from '@readyplayerme/rpm-react-sdk';

export default function App() {
  return (
    <div>
      <AvatarCreatorViewer subdomain="your_subdomain"/>
    </div>
  );
}
circle-info

If you want to signup later, you can use demoarrow-up-right as subdomain parameter.

Check out the live code sample on CodeSandbox

Next Steps

Learn how to customize the experience tailored to your app by checking out

Last updated

Was this helpful?