# Tencent/MMKV

An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, POSIX, and OHOS.

Repository: https://github.com/Tencent/MMKV
Canonical: https://ross.abutalabs.com/products/mmkv
Language: C++
License: NOASSERTION
License Family: other
Topics: android, ios, kotlin, swift, macos, key-value, wechat, flutter, golang, python, windows, tvos, visionos, watchos, ohos
Last push: 2026-08-21T03:16:41+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 98, longevity 100
- inputs: {"age_days": 2907, "days_push": 12, "days_rel": 12, "gap_med": 19.0, "n_releases_24m": 19}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 18715, forks 1981 (observed 2026-08-28T04:11:27.045623+00:00)

## What it is
MMKV is an efficient, small key-value storage framework developed by the WeChat team, using mmap and protobuf for fast, persistent storage. It supports Android, iOS/macOS, Windows, POSIX, HarmonyOS NEXT, and experimental Kotlin Multiplatform, with multi-process concurrency support.

## Use cases
- persist key-value settings on android without sync or apply calls
- fast local storage for ios apps
- share key-value data across multiple processes
- replace sharedpreferences with a faster storage layer
- store small config values in a flutter app
- cross-platform key-value persistence with kotlin multiplatform

## When to choose
- you need high-performance key-value persistence on mobile
- your app requires multi-process read/write access to stored data
- you want tiny binary size overhead (~50K per architecture)
- you need immediate persistence without explicit commit calls

## When to avoid
- you need complex relational queries or structured database features
- you require 32-bit architecture or Android API level 21-22 support (use v1.3.x LTS)
- you need a pure managed-language solution without native dependencies

## Facets
- artifact type: library
- maturity: active
- function: caching, serialization, file-system
- domain: mobile-development, developer-tools, cross-platform
- platform: windows, cpp, cross-platform
- tags: key-value-store, mmap, wechat, persistence, kotlin-multiplatform, harmonyos, flutter, android, ios, macos, mobile

## Member repositories
- Tencent/MMKV (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:27.045623+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:01:19.549656+00:00, confidence not recorded.
  - readme: https://github.com/Tencent/MMKV (fetched 2026-08-28T04:11:27.045623+00:00, sha 4361e86794ea)
- Data as of 2026-08-30T08:39:29.467469+00:00.
