Skip to content

readyplayerme/visage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5f8d2b9 · Mar 18, 2025
Nov 11, 2024
Jul 31, 2023
Aug 11, 2023
Mar 18, 2025
Mar 18, 2025
Mar 18, 2025
Apr 22, 2022
Aug 9, 2024
Aug 9, 2024
Mar 28, 2022
Jul 20, 2023
Apr 22, 2022
Mar 25, 2022
May 16, 2023
Aug 12, 2024
Mar 25, 2022
Mar 25, 2022
Mar 18, 2025
Feb 11, 2025
Mar 25, 2022
Mar 18, 2025
Nov 16, 2022
Aug 12, 2024

Repository files navigation

Visage is a collection of components for showcasing Ready Player Me avatars and 3D on the web!

Built with three.js, react-three-fiber, drei, three-stdlib and react.

Installation

Visage is available as an npm package.

npm install @readyplayerme/visage

Documentation & examples

You can find all code examples of the components and their documentation on our GitHub page.

Here is the first one to get you started:

import React from 'react';
import ReactDOM from 'react-dom';
import { Avatar } from '@readyplayerme/visage';

const modelSrc = 'https://readyplayerme.github.io/visage/male.glb';

function App() {
  return (
    <Avatar modelSrc={modelSrc} />
  );
}

ReactDOM.render(<App />, document.querySelector('#app'));

Validation

Props such as modelSrc, animationSrc, poseSrc and onLoadedAnimation.src are validated before rendering on the scene. Animation source props support both .glb and .fbx formats. All other props mentioned before only support .glb.

Examples on supported resource formats:

  • URL resources
    • relative /headwear.glb
    • absolute https://readyplayerme.github.io/visage/male.glb?queryParams=allowed
  • Base64 strings
    • data:application/octet-stream;base64
    • data:model/gltf-binary;base64
  • Binary input such as model/gltf-binary

License

Visage is MIT licensed.