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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mmd-mpl

v0.3.6

Published

MPL is a rule-based Domain-Specific Language for creating MMD poses and animations using natural semantic syntax

Readme

MPL - Motion Programming Language

MPL is a domain-specific language that revolutionizes 3D motion and animation through human-readable, semantic syntax. Designed to bridge the gap between natural language and 3D movement, MPL transforms complex mathematical representations into intuitive, code-like commands that both humans and AI systems can easily understand and generate.

Current Implementation: MMD (MikuMikuDance) format support with plans for broader 3D animation ecosystems.

Gallery and playground

npm

crates

Why MPL?

🎯 Human-Centric Design

  • Semantic commands: Intuitive, readable syntax for complex 3D movements
  • Natural language alignment: Bridge human intent and 3D mathematics
  • Built-in safety: Anatomically-aware constraints prevent impossible poses

🤖 AI & Machine Learning Ready

  • LLM-friendly syntax: Structured grammar for language models
  • Training-optimized: Semantic tokens for AI motion synthesis
  • Compositional intelligence: Modular components for pattern learning
  • Cross-modal potential: Text-to-motion and motion-to-text transformations

🔧 Developer Benefits

  • Composable architecture: Reusable animation building blocks
  • Version control friendly: Text-based format for development workflows
  • Extensible framework: Domain-agnostic design for future formats

Syntax

Pose Definitions

@pose kick_left {
    leg_l bend forward 30;
    knee_l bend backward 0;
    leg_r bend backward 20;
    knee_r bend backward 15;
}

@pose kick_right {
    leg_r bend forward 30;
    knee_r bend backward 0;
    leg_l bend backward 20;
    knee_l bend backward 15;
}

Animation Sequences

@animation walk {
    0: kick_left;
    0.3: kick_right;
    0.6: kick_left;
    0.9: kick_right;
}

Main Execution

main {
    walk;
}

Supported Bones

Body Core: base, center, upper_body, lower_body, waist, neck, head
Arms: shoulder_l/r, arm_l/r, elbow_l/r, wrist_l/r
Legs: leg_l/r, knee_l/r, ankle_l/r, toe_l/r
Fingers: thumb_l/r, index_l/r, middle_l/r, ring_l/r, pinky_l/r

Bone Commands

Format: bone action direction amount; or bone reset;

Actions: bend, turn, sway, move, reset
Directions: forward, backward, left, right, up, down

Compound Statements

Multiple actions for the same bone can be combined on a single line using commas:

head turn left 30, bend forward 20, sway right 15;
arm raise up 45, rotate right 15;
neck reset;

🚀 Command Line Tool

The MPL compiler is available as a command-line tool (mpl.exe in cmd/ directory) or build from source with cargo build --release.

Usage:

  • Compile MPL to VMD: mpl -c input.mpl -o output.vmd
  • Reverse compile VMD/VPD to MPL: mpl -r input.vmd -o output.mpl

📄 License

GPL-3.0 License - see LICENSE for details.