npm.mascot.bot, a private registry — it is not
on npmjs.com. You need a Mascotbot API key to install and to run.
1. Get an API key
Create a key at app.mascot.bot/api-keys. Keys are prefixed by environment:
A
mascot_dev_… key sent from a public origin is rejected by design, and
a mascot_pub_… key from localhost is rejected too. Use the matching key
for the environment. See Licensing & keys for
the full model.
2. Point npm at the private registry
Add a.npmrc at the root of your project:
3. Install the package
@rive-app/webgl2 (and @rive-app/react-webgl2 for React) is an optional
peer dependency of the /rive subpaths. Install it only if you render an
avatar; the audio pipeline alone does not need it. npm and yarn work the
same way once the registry line is in .npmrc.
4. Configure the client
Pass configuration to<MascotProvider> (React) or LipsyncClient.init (vanilla):
mascot_pub_…) are safe in client bundles — they
are scoped to your allow-listed origins. Keep standing third-party keys (TTS,
OpenAI, ElevenLabs) on the server.
TypeScript
All packages ship.d.ts. Public types are re-exported from each root entry
point — you do not need to install lipsync-core separately just for types if
you depend on lipsync-react.
Next
Quickstart
A working avatar in a few lines.
Licensing & keys
Dev vs production, session lifecycle, error codes.