Quick Start
Get up and running with a new Motia project in just a few seconds.
1. Create Your Project
Use npx
to create a new Motia project. This single command will scaffold a new application and install all necessary dependencies.
The installer will guide you through a few questions to set up your project. Once it's done, you will have a new project directory ready to go.
2. Start the Development Server
Navigate into your new project directory and start the Motia development server.
The create
command uses npm
by default. If you chose a different package manager during setup, use pnpm dev
, yarn dev
, or bun dev
.
This command starts the Motia runtime and the Workbench, a powerful UI for developing and debugging your workflows. By default, it's available at http://localhost:3000
.
3. Run Your First Flow
The starter project comes with a pre-built default
flow. Let's run it.
- Open the Workbench in your browser at
http://localhost:3000
. - Select the
default
flow from the left top panel. - Run the flow. You'll see a visual diagram of the workflow. Find the first node (the API Step) and click the Start button on it. This will trigger the flow.
- Observe the execution. Watch the trace unfold in real-time in the bottom panel. You can inspect the logs, traces and state for each step as it completes.
- Explore the Workbench. You can also read your files directly from the Workbench.
Next Steps
Congratulations! You've successfully created, run, and observed your first Motia workflow.
- To build a multi-language application from scratch, follow our Multi-Language Data Processing guide.
- To learn how to build REST APIs with Motia, check out our Creating Your First REST API guide.
- To learn about Motia, dive into our Welcome to Motia.
Welcome to Motia
Motia is an all-in-one framework for modern backend systems. Out of the box support for API endpoints, background jobs, scheduled tasks and agentic workflow orchestration through a unified runtime. Thanks to its event driven architecture you can run tasks in parallel, stream data to clients, or allow for seamless orchestration of flows. What used to take 5 frameworks to build now comes out of the box with Motia.
Build Your First Motia App
Follow this step-by-step journey to build a complete pet store application. Learn API endpoints, background jobs, workflows, and advanced features in a structured progression.