medusajs/medusa

https://github.com/medusajs/medusa

New Analysis
Last analysis: Mar 09, 2026 13:16

GitHub Stats

Stars

32,281

Forks

4,118

Watchers

32,281

Open Issues

135

Contributors

30

Default Branch

develop

Repository Overview

Files

20739

Folders

5

Size

222.99 MB

Tests

413

Code Analysis

Lines of Code

992,357

Files Analyzed

10,053

Total Commits

100

Contributors

29

Structure Metrics

Max Depth

13

Avg Files per Folder

4147.8

Test Coverage

1.99%

Project DNA

59
Needs Improvement
documentation 100/100
tests 26/100
structure 40/100
size 70/100
maintainability 61/100

Hotspot Files

Files with most changes (high churn)

index.tsx 88 changes
middlewares.ts 43 changes
route.ts 40 changes
index.test.tsx 29 changes
index.ts 9 changes

Stack Signals

Laravel
Symfony
React
Vue
Angular
Node.js
Python
Django
Flask
FastAPI
Spring
Express
Next.js
Nuxt
NestJS
.NET
ASP.NET
HTML
CSS

Languages

ts 66.26%
tsx 28.28%
js 5.36%
css 0.09%
html 0.01%

Largest Directories

www 12861 files
scripts 8 files
packages 7449 files
thoughts 1 files
integration-tests 406 files

Largest Files

cart.spec.ts 5951 lines
cart.workflows.spec.ts 5152 lines
entity-builder.spec.ts 8057 lines
compute-actions.spec.ts 7671 lines
order-module-service.ts 4426 lines

Dependencies & Documentation

README
Docs
go.mod
Gemfile
package.json
composer.json
pyproject.toml
requirements.txt

Project Structure (depth 3)

-- www
|   -- apps
|   |   -- ui
|   |   |   -- app
|   |   |   -- specs
|   |   |   -- types
|   |   |   -- utils
|   |   |   -- config
|   |   |   -- public
|   |   |   -- scripts
|   |   |   -- generated
|   |   |   -- providers
|   |   |   -- components
|   |   -- book
|   |   |   -- app
|   |   |   -- utils
|   |   |   -- config
|   |   |   -- public
|   |   |   -- scripts
|   |   |   -- generated
|   |   |   -- providers
|   |   |   -- components
|   |   -- docs
|   |   -- bloom
|   |   |   -- app
|   |   |   -- utils
|   |   |   -- config
|   |   |   -- public
|   |   |   -- scripts
|   |   |   -- sidebars
|   |   |   -- generated
|   |   |   -- providers
|   |   |   -- components
|   |   -- cloud
|   |   |   -- app
|   |   |   -- utils
|   |   |   -- config
|   |   |   -- public
|   |   |   -- scripts
|   |   |   -- generated
|   |   |   -- providers
|   |   |   -- components
|   |   -- resources
|   |   |   -- app
|   |   |   -- utils
|   |   |   -- config
|   |   |   -- public
|   |   |   -- scripts
|   |   |   -- sidebars
|   |   |   -- generated
|   |   |   -- providers
|   |   |   -- components
|   |   |   -- references
|   |   -- user-guide
|   |   |   -- app
|   |   |   -- utils
|   |   |   -- config
|   |   |   -- public
|   |   |   -- scripts
|   |   |   -- generated
|   |   |   -- providers
|   |   |   -- components
|   |   -- api-reference
|   |   |   -- app
|   |   |   -- lib
|   |   |   -- hooks
|   |   |   -- specs
|   |   |   -- types
|   |   |   -- utils
|   |   |   -- config
|   |   |   -- public
|   |   |   -- layouts
|   |   |   -- scripts
|   |   |   -- markdown
|   |   |   -- generated
|   |   |   -- providers
|   |   |   -- components
|   -- vale
|   |   -- styles
|   |   |   -- docs
|   |   |   -- config
|   |   |   -- write-good
|   -- utils
|   |   -- packages
|   |   |   -- types
|   |   |   -- utils
|   |   |   -- scripts
|   |   |   -- docs-generator
|   |   |   -- typedoc-config
|   |   |   -- react-docs-generator
|   |   |   -- typedoc-plugin-custom
|   |   |   -- typedoc-plugin-workflows
|   |   |   -- typedoc-generate-references
|   |   |   -- workflows-diagrams-generator
|   |   |   -- typedoc-plugin-markdown-medusa
|   |   -- generated
|   |   |   -- dml-output
|   |   |   -- oas-output
|   |   |   -- typedoc-json-output
|   |   |   -- route-examples-output
|   -- packages
|   |   -- tags
|   |   |   -- src
|   |   -- types
|   |   |   -- src
|   |   -- docs-ui
|   |   |   -- src
|   |   -- tailwind
|   |   -- tsconfig
|   |   -- docs-utils
|   |   |   -- src
|   |   -- build-scripts
|   |   |   -- src
|   |   -- remark-rehype-plugins
|   |   |   -- src
-- scripts
|   -- deps-analyze
-- packages
|   -- cli
|   |   -- oas
|   |   |   -- oas-github-ci
|   |   |   -- medusa-oas-cli
|   |   -- medusa-cli
|   |   |   -- src
|   |   |   -- scripts
|   |   -- medusa-dev-cli
|   |   |   -- src
|   |   -- create-medusa-app
|   |   |   -- src
|   -- core
|   |   -- types
|   |   |   -- src
|   |   -- utils
|   |   |   -- src
|   |   -- js-sdk
|   |   |   -- src
|   |   -- framework
|   |   |   -- src
|   |   -- core-flows
|   |   |   -- src
|   |   -- modules-sdk
|   |   |   -- src
|   |   -- orchestration
|   |   |   -- src
|   |   -- workflows-sdk
|   |   |   -- src
|   -- deps
|   |   -- src
|   -- admin
|   |   -- admin-sdk
|   |   |   -- src
|   |   -- dashboard
|   |   |   -- src
|   |   |   -- public
|   |   |   -- scripts
|   |   -- admin-shared
|   |   |   -- src
|   |   -- admin-bundler
|   |   |   -- src
|   |   -- admin-vite-plugin
|   |   |   -- src
|   -- medusa
|   |   -- src
|   |   |   -- api
|   |   |   -- jobs
|   |   |   -- types
|   |   |   -- utils
|   |   |   -- loaders
|   |   |   -- modules
|   |   |   -- commands
|   |   |   -- policies
|   |   |   -- core-flows
|   |   |   -- subscribers
|   |   |   -- feature-flags
|   |   |   -- instrumentation
|   |   |   -- migration-scripts
|   -- modules
|   |   -- tax
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- auth
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- cart
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- file
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- rbac
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- user
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- index
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- order
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- store
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- region
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- api-key
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- caching
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- locking
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- payment
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- pricing
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- product
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- currency
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- customer
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- settings
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- analytics
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- inventory
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- promotion
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- providers
|   |   |   -- file-s3
|   |   |   -- file-local
|   |   |   -- auth-github
|   |   |   -- auth-google
|   |   |   -- caching-redis
|   |   |   -- locking-redis
|   |   |   -- auth-emailpass
|   |   |   -- payment-stripe
|   |   |   -- analytics-local
|   |   |   -- locking-postgres
|   |   |   -- analytics-posthog
|   |   |   -- fulfillment-manual
|   |   |   -- notification-local
|   |   |   -- notification-sendgrid
|   |   -- cache-redis
|   |   |   -- src
|   |   -- fulfillment
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- translation
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- link-modules
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- notification
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- sales-channel
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- cache-inmemory
|   |   |   -- src
|   |   -- stock-location
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- event-bus-local
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- event-bus-redis
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- workflow-engine-redis
|   |   |   -- src
|   |   |   -- integration-tests
|   |   -- workflow-engine-inmemory
|   |   |   -- src
|   |   |   -- integration-tests
|   -- plugins
|   |   -- draft-order
|   |   |   -- src
|   -- design-system
|   |   -- ui
|   |   |   -- src
|   |   -- icons
|   |   |   -- src
|   |   -- toolbox
|   |   |   -- bin
|   |   |   -- src
|   |   -- ui-preset
|   |   |   -- src
|   -- medusa-telemetry
|   |   -- src
|   |   |   -- util
|   -- medusa-test-utils
|   |   -- src
|   |   |   -- __tests__
|   |   |   -- __fixtures__
|   |   |   -- medusa-test-runner-utils
-- thoughts
|   -- shared
|   |   -- research
-- integration-tests
|   -- api
|   |   -- src
|   |   -- __tests__
|   |   |   -- admin
|   |   |   -- store
|   |   |   -- swaps
|   |   |   -- taxes
|   |   |   -- claims
|   |   |   -- totals
|   |   |   -- returns
|   |   |   -- batch-jobs
|   |   |   -- price-selection
|   |   |   -- line-item-adjustments
|   -- http
|   |   -- src
|   |   |   -- utils
|   |   -- __tests__
|   |   |   -- auth
|   |   |   -- cart
|   |   |   -- rbac
|   |   |   -- user
|   |   |   -- cloud
|   |   |   -- index
|   |   |   -- order
|   |   |   -- store
|   |   |   -- views
|   |   |   -- claims
|   |   |   -- invite
|   |   |   -- region
|   |   |   -- upload
|   |   |   -- api-key
|   |   |   -- payment
|   |   |   -- product
|   |   |   -- returns
|   |   |   -- currency
|   |   |   -- customer
|   |   |   -- fixtures
|   |   |   -- campaigns
|   |   |   -- event-bus
|   |   |   -- exchanges
|   |   |   -- inventory
|   |   |   -- collection
|   |   |   -- price-list
|   |   |   -- promotions
|   |   |   -- tax-region
|   |   |   -- draft-order
|   |   |   -- fulfillment
|   |   |   -- order-edits
|   |   |   -- product-tag
|   |   |   -- translation
|   |   |   -- feature-flag
|   |   |   -- product-type
|   |   |   -- reservations
|   |   |   -- refund-reason
|   |   |   -- sales-channel
|   |   |   -- customer-group
|   |   |   -- stock-location
|   |   |   -- product-variant
|   |   |   -- shipping-option
|   |   |   -- workflow-engine
|   |   |   -- price-preference
|   |   |   -- product-category
|   |   |   -- shipping-profile
|   |   |   -- payment-collection
|   |   |   -- shipping-option-type
|   |   -- __fixtures__
|   |   |   -- auth
|   |   |   -- feature-flag
|   |   |   -- worker-mode-server
|   -- helpers
|   -- modules
|   |   -- src
|   |   |   -- links
|   |   |   -- utils
|   |   |   -- modules
|   |   |   -- subscribers
|   |   -- helpers
|   |   -- __tests__
|   |   |   -- tax
|   |   |   -- auth
|   |   |   -- cart
|   |   |   -- rbac
|   |   |   -- index
|   |   |   -- order
|   |   |   -- store
|   |   |   -- users
|   |   |   -- common
|   |   |   -- invites
|   |   |   -- modules
|   |   |   -- payment
|   |   |   -- product
|   |   |   -- regions
|   |   |   -- currency
|   |   |   -- customer
|   |   |   -- defaults
|   |   |   -- fixtures
|   |   |   -- event-bus
|   |   |   -- fulfillment
|   |   |   -- price-lists
|   |   |   -- query-graph
|   |   |   -- __fixtures__
|   |   |   -- link-modules
|   |   |   -- notification
|   |   |   -- customer-group
|   |   |   -- workflow-engine
|   |   |   -- shipping-options
|   |   |   -- fulfillment-providers
|   -- scripts
|   |   -- cli
|   -- factories
|   -- environment-helpers