# didi/mpx

Mpx，一款具有优秀开发体验和深度性能优化的增强型跨端小程序框架

Repository: https://github.com/didi/mpx
Canonical: https://ross.abutalabs.com/products/mpx
Homepage: https://mpxjs.cn
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: mpx, miniprogram, webpack, reactive-programming, development-framework, alipay-mini-program, wechat-mini-program, webapp, vue
Last push: 2026-08-26T03:08:55+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 94, longevity 100
- inputs: {"age_days": 2828, "days_push": 7, "days_rel": 42, "gap_med": 13, "n_releases_24m": 32}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3931, forks 388 (observed 2026-08-28T04:08:29.974368+00:00)

## What it is
Mpx is an enhanced cross-platform mini-program framework by DiDi that lets developers build apps with a Vue-like development experience and compile a single codebase to WeChat, Alipay, Baidu, ByteDance, QQ, JD mini-programs, Web, and React Native (iOS/Android/Harmony). It combines reactive data binding, composition API, single-file components, and deep webpack5-based build optimizations for runtime performance and bundle size.

## Use cases
- build a wechat mini program with vue-like reactive syntax
- compile one codebase to all mini-program platforms
- convert an existing mini program to run on alipay and baidu
- output a mini program app to web and react native
- optimize mini program bundle size and setData performance
- progressively migrate a native mini program to a framework
- build cross-platform app with single file components

## When to choose
- you need to target multiple Chinese mini-program platforms from one codebase
- you want Vue-style reactivity and composition API in mini-program development
- runtime performance and small bundle size are critical
- you need to also output to web or React Native from the same source

## When to avoid
- you only target a single platform and prefer native tooling
- your team is not familiar with Vue-style paradigms
- you need a general-purpose web SPA framework unrelated to mini-programs

## Facets
- artifact type: framework
- maturity: active
- function: web-framework, frontend-framework, build-tool, state-management, ssr
- domain: web-development, frontend, cross-platform, mobile-development
- platform: cross-platform
- tags: miniprogram, wechat-mini-program, alipay-mini-program, vue-like, react-native, webpack, cross-platform-compilation, single-file-components, web-server, nodejs, javascript

## Member repositories
- didi/mpx (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:29.974368+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:24:40.936273+00:00, confidence not recorded.
  - readme: https://github.com/didi/mpx (fetched 2026-08-28T04:08:29.974368+00:00, sha c5de3a100647)
  - homepage: https://mpxjs.cn (fetched 2026-08-29T09:18:54.448535+00:00, sha 92c38af03bf2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
