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

motia

v0.1.0-beta.28

Published

Code-first framework for intelligent workflows

Downloads

2,847

Readme

Motia

What is Motia?

Motia is a lightweight, flexible framework for building complex workflows and business processes across multiple programming languages. It allows you to define, visualize, and execute workflows with a clean, declarative API in JavaScript, TypeScript, Ruby, Python, and more languages coming soon.

Key features:

  • 🔄 Declarative Workflows: Define complex processes with a simple, readable syntax
  • 🛠️ Type-Safe: Built with strong typing support for all supported languages
  • 🔍 Visualizable: Inspect and debug your workflows with Motia Workbench
  • 🧩 Composable: Build complex workflows from reusable components
  • 🚀 Multi-Language Support: Works with JavaScript, TypeScript, Ruby, Python, with more languages coming soon
  • 🌐 Framework Agnostic: Integrates with any framework in your language of choice

Installation

JavaScript/TypeScript

npm install motia
# or
yarn add motia
# or
pnpm add motia

Quick Start

Ready to get started in minutes? Follow these simple steps using pnpm and the automated project creation:

  1. Create a new project using the Motia CLI:

    npx motia create --name my-motia-project --cursor

    (Replace my-motia-project with your desired project name)

    This command will:

    • Create a new folder my-motia-project
    • Set up a basic Motia project with example steps
    • Install dependencies using pnpm
    • Include the .cursor folder for enhanced development experience (with -c flag)
  2. Navigate into your new project directory:

    cd my-motia-project
  3. Start the Motia development server:

    pnpm run dev

    This will launch the Motia server and the Workbench UI (typically at http://localhost:3000).

  4. Open the Motia Workbench in your browser (usually http://localhost:3000). You should see a pre-built flow named "default" with example steps visualized.

  5. Test an example API Step: In your terminal, use curl to trigger the example API endpoint (often /default in the default template):

    curl -X POST http://localhost:3000/default \
    -H "Content-Type: application/json" \
    -d '{}'

    Alternatively, use the Motia CLI to emit an event (for event-based steps in the template):

    npx motia emit --topic test-state --message '{}'

    Check the Workbench logs – you should see logs indicating the step execution and event flow!

Congratulations! You've just created and run your first Motia workflow using the automated project setup.

CLI Commands

Motia comes with a powerful CLI to help you manage your projects:

motia init

Initializes a new Motia project in the current directory.

motia init

motia install

Sets up your project's dependencies and environment. For Python projects, this will create and configure a virtual environment.

motia install

motia build

Builds a lock file based on your current project setup which is then used by the Motia ecosystem.

motia build

motia dev

Initiates a dev environment for your project allowing you to use Motia Workbench (visualization tool for your flows). For Python projects, this will automatically use the configured virtual environment.

motia dev [options]

Options:
  -p, --port <port>     The port to run the server on (default: 3000)
  -v, --verbose         Enable verbose logging
  -d, --debug          Enable debug logging
  -m, --mermaid        Enable mermaid diagram generation
  -c, --cursor         Enable cursor support for enhanced development

Visualizing Workflows

Motia Workbench provides a visual interface to inspect and debug your workflows:

motia dev

Then open your browser at http://localhost:3000 to see your workflows in action.

Language Support

Motia currently supports:

  • JavaScript
  • TypeScript
  • Ruby
  • Python

With more languages coming soon!

Help

For more information on a specific command, you can use the --help flag:

motia <command> --help

Documentation

For full documentation, visit https://motia.dev/docs

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

This project is licensed under the MIT License.