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

@animxyz/core

v0.6.7

Published

AnimXYZ is a composable animation library that makes your site shine

Readme

@animxyz/core

AnimXYZ is a composable animation library that makes your site shine.

See animxyz.com for full documentation.

Testing

Tests live in test/ and run on the plain Node.js test runner (node:test, no extra framework). From this package directory:

npm test

or from the repo root:

npm test -w @animxyz/core
# or
turbo run test

turbo run test builds this package first (the test task depends on ^build in turbo.json), so the snapshot and size-budget tests always run against freshly built output.

What's covered:

  • Compile test (test/compile.test.js) — build.scss compiles without errors, and without any Sass deprecation warnings (build.scss uses @use, not @import).

  • Mixin API tests (test/mixin-api.test.js) — small fixture .scss files under test/fixtures/ @use the source directly and invoke the public mixins/functions (xyz-utility, xyz-var, xyz-set-all, xyz-animation, xyz-make-keyframes), asserting they compile and spot checking emitted declarations. test/fixtures/xyz-apply.scss documents a known bug (tracked by work brief A2, fix/xyz-apply): the mixin currently always errors due to swapped constructor arguments. Once A2 lands, flip that test from asserting the @error to asserting a successful compile. test/fixtures/xyz-time-levels-override.scss proves that $xyz-duration-levels / $xyz-delay-levels / $xyz-stagger-levels remain independently !default-overridable after being derived from the shared $xyz-time-levels map (work brief A3).

  • Snapshot test (test/snapshot.test.js) — compiles build.scss (expanded), normalizes it (strips comments, collapses whitespace, reflows to one declaration per line for reviewable diffs), and compares it against the committed test/__snapshots__/animxyz.css. If you intentionally change compiled output, regenerate the snapshot with:

    npm run test:update-snapshot

    then review the resulting git diff and explain the change in your PR description — don't just regenerate and commit blindly.

  • Size budget (test/size-budget.test.js) — asserts the gzipped size of dist/animxyz.min.css stays under a fixed byte budget (measured size + 10% headroom). If a change intentionally grows the output, remeasure and update BUDGET_BYTES in that file with justification in the PR.

Building from source

This package requires Dart Sass to compile src/*.scss (see sass in devDependencies).

Minimum Dart Sass version: 1.57.0. The source uses sass:string's string.split(), which was added in Dart Sass 1.57. If you @use this package's src/*.scss directly (rather than consuming the prebuilt dist/animxyz.css), make sure your own Sass compiler is at least 1.57.