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

@labpics/motion

v0.5.0

Published

Zero-dependency headless motion engine for interruptible UI animation, browser-native playback, and 9 framework bindings.

Readme

Lab Motion

Библиотека анимаций для веб-интерфейсов: пружины, жесты, переходы между состояниями и управление движением. JavaScript и TypeScript, без runtime-зависимостей.

npm CI license

Установка

pnpm add @labpics/motion

ESM, CommonJS и типы TypeScript включены. Для серверного использования нужен Node.js 22 или новее; для браузерного runtime нужны ES2022 и WeakRef. Биндинги подключают фреймворк через optional peer dependency.

Первое движение

import { animate } from '@labpics/motion';

const move = animate('.card', { x: 160, opacity: 1 });
const result = await move.finished;

Задайте цель. Библиотека выбирает подходящее исполнение и возвращает одинаковые контролы: pause, play, seek, stop, finish. Новая цель продолжает движение, а явный массив значений проигрывает авторскую траекторию.

Компонент

import { scope } from '@labpics/motion';

const ui = scope(document.querySelector('.panel')!);
ui.animate('.item', { opacity: [0, 1], y: [8, 0] }, { duration: 180, stagger: 25 });
ui.on('.replay', 'click', () => ui.animate('.item', { x: [0, -4, 4, 0] }));

// При удалении компонента:
ui.dispose();

Область локализует селекторы и освобождает движения, обработчики, значения и дочерние области. Системное уменьшенное движение учитывается автоматически. Остановка старого controller не отменяет движение, которым уже владеет новый.

Возможности

animate задаёт движение. scope связывает его с компонентом. sequence объединяет шаги одной временной шкалой. layout показывает переход между состояниями DOM. value предоставляет реактивное анимируемое число. Все эти функции доступны из @labpics/motion.

Начало работы · API · Изменения версии · Устройство исполнения.

В репозитории pnpm size проверяет полный достижимый код потребительских сборок. Размер и производительность зависят от использованных возможностей; методика измерений описана в руководстве по бенчмаркам.

Разработка

Участие в проекте. Сообщить об уязвимости.

MIT. Labpics.