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

@sawabona/motion-engine

v1.0.1

Published

Remotion-based engine for rendering dynamic videos from React, Tailwind, and Shadcn UI.

Readme

✨ Features

  • Built on React: Programmatic video creation without needing to learn a new framework or after-effects. If you know React, you know Motion Engine.
  • JSON-Driven Declarative API: Build entire video compositions by simply passing a deeply-typed JSON configuration payload (perfect for AI & LLMs).
  • Zod Validated Schemas: Strict out-of-the-box validation.
  • 11 Built-In Elegant Animations: Fluid entering/exiting hooks powered by Remotion Springs (fade, zoom, slide-up, typewriter, and more).
  • Tailwind & Shadcn Compatible: Perfectly syncs with your application's UI design system.

🚀 Quick Start

Installation

No complex peer dependency resolution required. Motion Engine pulls everything you need except React.

npm install @sawabona/motion-engine
# or
yarn add @sawabona/motion-engine
# or
pnpm add @sawabona/motion-engine

Basic Usage

Define your scenes and configurations inside a JSON payload (validates securely against our VideoConfigSchema), and map your custom UI React components to the MotionEngine root.

import React from 'react';
import { MotionEngine, type VideoConfig } from '@sawabona/motion-engine';

// 1. Create your custom standard React Components (Scenes/Slides)
const TitleSlide = ({ text }: { text: string }) => (
  <div className="flex w-full h-full items-center justify-center bg-zinc-950">
    <h1 className="text-8xl font-black text-white">{text}</h1>
  </div>
);

// 2. Map the name you will use in your JSON to the Component
const MY_COMPONENT_REGISTRY = {
  "MainTitle": TitleSlide
};

// 3. Define the configuration for the Video Timeline
const myVideoConfig: VideoConfig = {
  fps: 60,
  width: 1920,
  height: 1080,
  scenes: [
    {
      id: "scene-1",
      durationInFrames: 120, // 2 seconds
      componentName: "MainTitle",
      animation: { 
        type: "spring", 
        durationInFrames: 30 
      },
      props: { text: "Hello World!" }
    }
  ]
};

// 4. Render the Engine!
export default function App() {
  return (
    <div style={{ width: '100%', height: '500px' }}>
       <MotionEngine 
          config={myVideoConfig} 
          componentRegistry={MY_COMPONENT_REGISTRY} 
       />
    </div>
  );
}

📖 Available Built-In Animations

Motion Engine’s AnimateWrapper natively intercepts your JSON choices and executes Remotion hooks under the hood:

  • none / fade / fade-out
  • slide-up / slide-down / slide-left / slide-right
  • spring (bouncy native scale)
  • zoom
  • rotate
  • move
  • typewriter (Ideal for strings)

For detailed information about API schemas and hooks, see our robust type definitions directly in your IDE.

🤝 Contributing & Licensing

We welcome contributions from the community! See our Contributing Guide to get started on setting up the local environment.

Distributed under the MIT License. See LICENSE.md for more information.