# didi/chameleon

🦎 一套代码运行多端，一端所见即多端所见

Repository: https://github.com/didi/chameleon
Canonical: https://ross.abutalabs.com/products/didi-chameleon
Homepage: http://cml.didi.cn/
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: miniprogram, weex, cml, vue, mobile, android, ios, chameleon
Archived: true
Last push: 2023-01-07T22:16:40+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2784, "days_push": 1334, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8952, forks 688 (observed 2026-08-28T04:10:26.455912+00:00)

## What it is
Chameleon (CML) is a cross-platform development framework by DiDi that lets you write one Vue-like codebase and compile it to web, WeChat/Alipay/Baidu/QQ/ByteDance mini-programs, and native Android/iOS apps via Weex. It provides a polymorphic protocol so developers can still handle platform-specific differences when needed.

## Use cases
- build a mini-program and web app from one codebase
- compile a single Vue-like codebase to WeChat, Alipay, and Baidu mini-programs
- develop native Android and iOS apps without writing platform-specific code
- share UI components across web and mini-program targets
- migrate an existing web app to mini-programs

## When to choose
- you need to target multiple mini-program platforms plus web and native from one codebase
- your team prefers a Vue-like syntax and wants high consistency across platforms
- you want a mature compile-time solution with a polymorphic protocol for platform differences

## When to avoid
- you only target a single platform like web or one mini-program
- you need cutting-edge framework features or active community development - the project has seen limited updates since 2023
- you prefer mainstream ecosystems like Taro or uni-app with larger communities

## Facets
- artifact type: framework
- maturity: maintenance
- function: frontend-framework, mobile-framework, compiler, build-tool
- domain: cross-platform, mobile-development, web-development, frontend
- platform: cross-platform
- tags: vue-based, miniprogram, weex, write-once-run-everywhere, chameleon, cml, android, ios, web-server, nodejs, javascript

## Member repositories
- didi/chameleon (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:26.455912+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-29T17:24:28.369366+00:00, confidence not recorded.
  - readme: https://github.com/didi/chameleon (fetched 2026-08-28T04:10:26.455912+00:00, sha 92cca863802f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
