medusa

The world's most flexible commerce platform.

19 articles 33.7k View on GitHub ↗
19 articles
Where to Find Medusa Workflow and API Route Implementations: A Complete Guide

Discover production-ready Medusa workflow and API route implementations in the official medusajs/medusa repository. Learn practical patterns for creating workflows and API routes.

how-to-guide
May 19, 2026
How to Extend Medusa's Core Functionality: A Complete Guide for Developers

Extend Medusa's core functionality with custom modules, Workflows SDK, and new API routes. Learn how to enhance your e-commerce platform without core code changes.

how-to-guide
May 19, 2026
Best Practices for Structuring a Medusa Project: A Complete Developer Guide

Learn best practices for structuring Medusa projects with a TypeScript monorepo. Explore clear separation for scalable commerce apps following official conventions.

best-practices
May 19, 2026
How to Observe the Execution of Medusa Workflows: 4 Monitoring Methods

Learn to observe Medusa workflow execution using 4 monitoring methods. Subscribe to lifecycle events via Redis Pub/Sub, callbacks, or REST APIs for clear insights.

how-to-guide
May 19, 2026
Can Medusa Workflows Trigger API Routes? Architecture and Implementation Guide

Discover how Medusa workflows interact with services and repositories, not API routes. Learn the architecture and implementation for efficient headless commerce.

architecture
May 19, 2026
How to Test Medusa API Routes: Complete Integration Testing Guide

Learn to test Medusa API routes effectively with the createServer fixture. This guide covers integration testing and offers a supertest wrapper for authenticated HTTP requests.

how-to-guide
May 19, 2026
How to Validate Input Data for Medusa API Routes: A Complete Zod Implementation Guide

Learn how to validate input data for Medusa API routes using Zod. Discover how Medusa's built-in middleware ensures type-safe request bodies for robust API handling.

how-to-guide
May 19, 2026
How to Handle Errors Gracefully in Medusa API Routes

Learn to handle errors gracefully in Medusa API routes. Centralized middleware maps MedusaError and Zod validation to HTTP codes for standardized JSON responses.

how-to-guide
May 19, 2026
Medusa Transaction Management for API Operations: How the Decorator Pattern Ensures Data Consistency

Discover how Medusa ensures ACID compliance for API operations. Learn about automatic transaction management using the @InjectTransactionManager decorator to maintain data consistency.

internals
May 19, 2026
How to Implement Custom Logic Within Medusa API Routes: A Complete Guide

Learn to implement custom logic within Medusa API routes by exporting HTTP verb functions and resolving services. Master custom TypeScript processing for typed responses.

how-to-guide
May 19, 2026
How to Build Responses in Medusa API Routes: Complete Guide with Code Examples

Learn to build responses in Medusa API routes. Fetch paginated data, enrich results, and return uniform JSON using MedusaResponse. Full code examples provided for your integration.

how-to-guide
May 19, 2026
How to Access Request Parameters and Body in Medusa API Routes

Learn how to access request parameters and body in Medusa API routes. Effortlessly retrieve URL params, query filters, and validated request body data for your custom endpoints.

how-to-guide
May 19, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →