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

@edmill/motion-md

v0.1.4

Published

The MOTION.md spec — give your AI coding agent a motion personality

Readme

motion-md

Give your AI coding agent a motion personality.

MOTION.md is a plain-text file that defines how your product moves. AI coding agents (Claude Code, Cursor, Codex) read it before generating animated components — ensuring every transition feels consistent and on-brand, no matter who wrote it.

npx motion-md init

One command. Two files in your project root. Every agent, every component, every animation — consistent from day one.


What it creates

your-project/
  MOTION.md    ← your motion personality (enter, drawer, press, stagger...)
  SKILL.md     ← teaches agents motion implementation principles

If you have a CLAUDE.md or AGENTS.md, it's updated automatically to tell your agents to read both files.


Quick start

# Scaffold with the default preset
npx motion-md init

# Or pick a brand personality
npx motion-md init --preset linear     # Fast & confident
npx motion-md init --preset notion     # Calm & considered
npx motion-md init --preset duolingo   # Playful & springy
npx motion-md init --preset stripe     # Trustworthy & smooth
npx motion-md init --preset figma      # Instant & direct

# Validate your MOTION.md
npx motion-md validate

# Generate motion-tokens.ts (TypeScript projects)
npx motion-md sync

Presets

| Preset | Personality | |------------|------------------------------------------------| | default | Balanced — purposeful, nothing overdone | | linear | Fast & confident — snappy, precise | | notion | Calm & considered — smooth, restrained | | duolingo | Playful & springy — bouncy, celebratory | | stripe | Trustworthy & smooth — weighted, premium | | figma | Instant & direct — near-zero motion |


The format

---
motion:
  drawer:
    duration: 400ms # medium4
    easing: cubic-bezier(0.05,0.7,0.1,1)
    slide-from: right
    exit-duration: 220ms
---

## Drawer

Panels open with deliberate weight — this is a context shift,
not a tooltip. The exit is 55% of enter duration.

Each recipe block defines one interaction pattern. The description below the values tells agents why — so they can make consistent decisions even for patterns not explicitly listed.

Full format reference: SPEC.md


TypeScript integration

npx motion-md sync

Generates lib/motion-tokens.ts from your MOTION.md:

import { motionTokens } from '@/lib/motion-tokens'

// In Framer Motion:
<motion.div
  animate={{ x: 0 }}
  transition={{
    duration: motionTokens.drawer.duration,  // 0.4
    ease: motionTokens.drawer.ease,          // [0.05, 0.7, 0.1, 1]
  }}
/>

// Press feedback:
<motion.button
  whileTap={{ scale: motionTokens.press.scale }}  // 0.97
  transition={{ duration: motionTokens.press.duration }}
/>

Add to package.json to keep tokens in sync:

"scripts": {
  "sync:motion": "motion-md sync",
  "check:motion": "motion-md validate"
}

Using with agents

Once MOTION.md and SKILL.md are in your project root, prompt your agent:

Read MOTION.md and SKILL.md then build me a settings drawer component.

The agent reads your motion spec and implements the component using the exact values you defined — not its own defaults.

Claude Code

MOTION.md in the project root is read automatically when your CLAUDE.md references it. Run npx motion-md init — it updates CLAUDE.md for you.

Cursor

Run npx motion-md init — it creates .cursor/rules/motion-md.mdc which enforces motion token usage on every AI edit.

Codex / other agents

Reference MOTION.md from your AGENTS.md:

## Motion system
Read MOTION.md before generating animated components.

Learn more

Learn more at https://craftedby.ai/motion-md


CI integration

# .github/workflows/ci.yml
- name: Validate MOTION.md
  run: npx motion-md validate

Keeps your motion spec valid across the whole team.


Spec

The full MOTION.md format specification is in SPEC.md. The spec is MIT licensed — use it, build tools around it, publish your own MOTION.md files.


Contributing

Contributions welcome. See SPEC.md for the format.

Issues: https://github.com/edmill/motion-md/issues


License

MIT © edmill