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

rive-web-component

v0.1.3

Published

With this package you can bring the power of Rive / Flare to the browser and enhance your users experience with beautiful animations.

Readme

Rive Web Component: Create and use beautiful animations

With this package you can bring the power of Rive / Flare to the browser and enhance your users experience with beautiful animations.

enter image description here

Animation

Install

NPM

Get the package with

npm i rive-web-component

and check your frameworks documentation on how to use Web Components

CDN

https://unpkg.com/rive-web-component@latest

How to use

Attributes

All attributes that the HTMLElement accepts:

  • file: string

  • animation: string | undefined

  • color: string | undefined

  • artboard: string | undefined

  • bounds-node: string | undefined

  • antialias: boolean | undefined

  • snap-to-end: boolean | undefined

  • should-clip: boolean | undefined

  • paused: boolean | undefined

  • on-animation-end: function | undefined

  • on-ready: function | undefined

Properties

All Properties the HTMLElement has (Changing those will update the HTMLElement):

  • playing: string | undefined // currently playing animation

  • paused: boolean

  • antialias: boolean

  • color: string| undefined

  • artboard: string | undefined

  • boundsNode: string | undefined

  • snapToEnd: boolean

  • shouldClip: boolean

Methods

All Methods the HTMLElement has:

  • play(animation?: string): Promise< void >

Will resume the animation if paused or will play the animation given by the first parameter and return a promise which resolves when the animation ended (when the current animations gets override the promise will get rejected!!)

  • pause(): void

Will pause the animation

  • changeAnimation(animation?: string): Promise< void >

Will change (override) the currently playing animation and return a promise which resolves when the animation ended (when the current animations gets override the promise will get rejected!!)

Events

  • on-ready

Will fire when the element is ready to play animations Wait until this event has been fired before calling methods or changing properties

  • animation-end

gets fired when the currently animation ends. Will never fire on looped animations

How does it work?

This package is based on the flare_flutter package from rive.app

Thanks to Flutter Web its possible to compile Flutter Apps for Web.

Why?

Because the available package from 2dimensions to use rive/flare animations in web is not well maintained and documented and hard to setup

Whats missing / Problems

  • Unit/Integration/e2e Tests (zero tests currently)

  • Very big bundle size thanks to Flutter

Problems?

Because this package is based on flare_flutter it's possible that by studding the documentation of that package your problem could be solved.