# Introduction

What @rupamotion/player is, what it adds to a Rupamotion export, and when you need it.

`@rupamotion/player` is a small runtime that plays and controls the animations a Rupamotion export writes. The
animations stay plain CSS, so they run without JavaScript. The player holds the animations the browser makes from that
CSS and drives them through the Web Animations API: states, hover, click and in-view triggers, run back, loop, play,
pause, seek, speed and events. It carries no keyframes and evaluates nothing.

- **Tiny.** The core is a few kilobytes gzipped. The exact numbers are on the [size page](/reference/size/).
- **Never crashes the page.** Every entry point is guarded. An internal error makes that one player inert and the CSS
  goes on playing.
- **No telemetry.** The only network requests are the ones your page asks for: a `.rupaplay` file and its font
  stylesheet.
- **MIT licensed**, ES modules, typed.

## What you need it for

A single clip runs on CSS alone. Load the player when you want to control an animation from code, switch between the
states of an interactive flow, react to events, or load an animation from a `.rupaplay` file while keeping your own
markup on the page.

## The four entries

| Entry | What it holds |
| - | - |
| `@rupamotion/player` | The core: `mount` and the `Player` type. |
| `@rupamotion/player/file` | `loadFile` and `mountFile` for `.rupaplay` files. |
| `@rupamotion/player/element` | The `<rupa-player>` custom element, and every snippet root mounted. |
| `@rupamotion/player/react` | `RupaPlayer`, `useRupaPlayer` and `usePlayerState` for React 18 or 19. |

## Where next

1. [Install the player](/start/installation/).
2. [Play your first animation](/start/quick-start/).
3. [Choose a way to use it](/guides/choose-a-way/).
