# Meituan-Dianping/mpvue

基于 Vue.js 的小程序开发框架，从底层支持 Vue.js 语法和构建工具体系。

Repository: https://github.com/Meituan-Dianping/mpvue
Canonical: https://ross.abutalabs.com/products/mpvue
Homepage: http://mpvue.com
Language: JavaScript
License: MIT
License Family: permissive
Topics: mpvue, vue, wxmp, weapp, mini
Last push: 2022-03-02T04:31:30+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3101, "days_push": 1645, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 20258, forks 2021 (observed 2026-08-28T04:11:29.848495+00:00)

## What it is
mpvue is a Vue.js-based framework for building mini programs (WeChat, Alipay, Baidu, Toutiao), a fork of Vue 2.4.1 with a modified runtime and compiler so Vue syntax and tooling run in mini-program environments. It ships with a webpack-based build ecosystem (mpvue-loader, postcss-mpvue-wxss, px2rpx-loader) and a vue-cli quickstart template.

## Use cases
- build a wechat mini program with vue
- reuse existing vue components in a mini program
- compile h5 vue code to mini program
- use vuex and webpack in mini program development
- write one codebase for wechat and alipay mini programs
- scaffold a mini program project with vue-cli

## When to choose
- your team already knows Vue 2 and is targeting WeChat or other Chinese mini programs
- you want component-based development, Vuex, and webpack tooling inside a mini program
- you need to port existing Vue 2 H5 code to a mini program

## When to avoid
- you are starting a new project today - the project is largely inactive and newer options like uni-app or Taro are better maintained
- you need Vue 3 features or modern tooling
- you target platforms outside the supported mini-program set

## Facets
- artifact type: framework
- maturity: maintenance
- function: frontend-framework, build-tool, state-management, cli
- domain: frontend, web-development, cross-platform, developer-tools
- platform: cross-platform
- tags: vuejs, mini-programs, weapp, wechat-mini-program, alipay-mini-program, webpack, vuex, vue2, javascript, nodejs, wechat

## Member repositories
- Meituan-Dianping/mpvue (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:29.848495+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-29T16:59:18.686565+00:00, confidence not recorded.
  - readme: https://github.com/Meituan-Dianping/mpvue (fetched 2026-08-28T04:11:29.848495+00:00, sha 0a231a1e6e8f)
  - homepage: http://mpvue.com (fetched 2026-08-29T07:58:01.581682+00:00, sha 0a73f4b2721f)
  - site_page: http://mpvue.com/mpvue/quickstart.html (fetched 2026-08-29T07:58:01.584520+00:00, sha f0bea551f718)
  - site_page: http://mpvue.com/mpvue/quickstart (fetched 2026-08-29T07:58:01.587392+00:00, sha f0bea551f718)
  - registry_npm: https://registry.npmjs.org/mpvue (fetched 2026-08-29T07:58:01.589852+00:00, sha abffa1f0fdf2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
