Overview of @rive-app/canvas
masterThe @rive-app/canvas package provides an easy-to-use, high-level Rive API that uses a CanvasRenderingContext2D renderer. This approach leverages the browser's native high-level vector graphics renderer instead of WebGL.
Key Benefits
- Small Download Size: Extremely lightweight compared to WebGL-based runtimes.
- High Concurrency: Ideal for displaying many animated canvases simultaneously (e.g., in lists or grids) because it is not subject to the browser's WebGL context limits.
- Feature Support: Supports simple vector graphics animations, raster images, and mesh deformations.
- Automatic Dependency Management: Automatically requests the required WebAssembly (WASM) backing dependency for you.