npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@grandgular/rive-angular-webgl2

v2.0.0

Published

Angular wrapper for Rive using the @rive-app/webgl2 runtime (Rive Renderer) — recommended for quality and performance.

Readme

@grandgular/rive-angular-webgl2

Rive for Angular (WebGL2 / Rive Renderer) — a modern Angular (18+) library for Rive .riv animations: standalone RiveCanvasComponent, RiveFileService for loading and caching, optional provideRiveRuntime() for WASM, ViewModel / data binding, state machines, and signal-based, zoneless-friendly updates.

This package is the recommended Rive web runtime for most projects: it uses the official @rive-app/webgl2 peer (Rive Renderer) for strong rendering quality and performance. For the smaller Canvas2D runtime, see @grandgular/rive-angular-canvas and Rive’s Canvas vs WebGL2 guide.

Rive for Angular – interactive showcase (GIF)

Install

npm install @grandgular/rive-angular-webgl2 @rive-app/webgl2

@rive-app/webgl2 is a peer dependency (you install it next to this package so versions stay aligned with your app).

Quick start

1. Import the component (standalone) where you use <rive-canvas>:

import { RiveCanvasComponent, Fit, Alignment } from '@grandgular/rive-angular-webgl2';

2. Register the component in the standalone imports array of your feature component (or your route loadComponent setup).

3. Use the template (component selector and inputs are shared with the canvas package):

<rive-canvas
  src="assets/animation.riv"
  [fit]="Fit.Contain"
  [alignment]="Alignment.Center"
  [autoplay]="true"
/>

4. (Optional) Configure the Rive WASM runtime in app.config.ts — see the full README and CHANGELOG for provideRiveRuntime({ wasmUrl, lazy: true }) and provideRiveDebug().

What you get (API overview)

  • <rive-canvas> — load .riv from src or buffer, layout (Fit / Alignment), playback, state machines, inputs, ViewModel + data binding, lifecycle and error outputs.
  • RiveFileService — preload, dedupe, and cache RiveFile instances across components.
  • Types re-exported from your Rive peer (@rive-app/webgl2) where useful: e.g. Rive, RiveFile, Layout, Fit, Alignment, LoopType, and related types — same surface as the canvas package, different runtime.
  • Shared helpers (colors, errors, debug) are shipped inside this package; full narrative docs live in the monorepo README.

Versioning and migration

These packages are published as 2.0.0 as a product-line major (renderer split; legacy meta package no longer built from this repo). See “Why 2.0.0” and the Migration section in the root README if you used @grandgular/rive-angular before.

More documentation

License

MIT (see repository).