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

@motion-core/cli

v0.5.1

Published

Motion Core CLI tooling

Downloads

1,367

Readme

@motion-core/cli

The official command-line interface for Motion Core, a Svelte library for high-quality animations and motion components.

This package serves as a Node.js wrapper around the native Rust binary, ensuring optimal performance while remaining easily installable via your favorite package manager.

Installation

You can run the CLI directly using npx, bunx, or pnpm dlx without installation:

npx @motion-core/cli init

Or install it globally:

# using npm
npm install -g @motion-core/cli

# using pnpm
pnpm add -g @motion-core/cli

# using bun
bun add -g @motion-core/cli

# using yarn
yarn global add @motion-core/cli

Usage

Once installed, you can use the motion-core command to scaffold projects, add components, and manage the local cache.

init

Initialize a new Motion Core configuration in your current project. This command detects your framework and sets up the necessary file structure.

motion-core init [options]

Options:

  • --dry-run: Preview the initialization process without writing any files or changes.

add

Add a component (and its dependencies) to your project.

motion-core add <component-names> [options]

Examples:

motion-core add glass-pane
motion-core add glass-pane image-trail

Options:

  • --dry-run: Preview the installation plan (files to create/update, dependencies to install) without applying changes.
  • -y, --yes: Skip confirmation prompts. Useful for CI/CD environments.
  • When a component file already exists locally, the CLI now shows a colored diff and asks whether to overwrite or keep your local changes. Passing -y (or setting MOTION_CORE_CLI_ASSUME_YES=1) will automatically overwrite without prompting, while dry-run mode reports all conflicts without touching disk.

list

List all available components in the registry.

motion-core list [options]

Options:

  • --json: Output the registry data in JSON format instead of a human-readable table.

cache

Manage the local cache used to store registry data and component assets.

motion-core cache [options]

Options:

  • --clear: Prepare to clear cached registry data and assets. Must be used with --force to perform the deletion.
  • --force: Confirm the deletion of cached files.

How it Works

This package identifies your operating system and CPU architecture (Windows, macOS, Linux / x64, arm64) and delegates execution to the appropriate pre-compiled Rust binary. This approach combines the raw performance of native code with the convenience of Node.js package distribution.

Development

If you are contributing to the CLI or building it locally:

  1. Prerequisites: Ensure you have Rust and Node.js installed.

  2. Build the Rust binary: From the motion-core-cli root directory, build the binary for your current platform:

    cargo build --release

    Note: You may need to specify a target if cross-compiling.

  3. Place the binary: The Node.js wrapper expects the binary to be located in dist/<target-triple>/.

    For example, on an Apple Silicon Mac:

    mkdir -p js/dist/aarch64-apple-darwin
    cp target/release/motion-core js/dist/aarch64-apple-darwin/
  4. Run the wrapper:

    cd js
    bun link # or npm link
    motion-core --help

License

MIT