# MMKV

> Fast key-value storage for mobile and desktop apps, from WeChat

Source: https://talira.ai/catalog/mmkv-nxtvsn5a
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Database
- Categories: [databases / embedded](https://talira.ai/categories/databases/embedded), [databases / key value](https://talira.ai/categories/databases/key-value)
- Platforms: android, ios, macos, windows[^1]
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Tencent](https://talira.ai/orgs/tencent.md)

MMKV is a small key-value storage library made by Tencent for the WeChat app. It keeps values in memory-mapped files and encodes them with protobuf, so every write is saved at once with no sync or apply call, and on Android, Windows and POSIX systems several processes can read and write the same store. It ships for Android (Maven), iOS and macOS (CocoaPods and Swift Package Manager), Windows, POSIX systems and HarmonyOS NEXT, with experimental Kotlin Multiplatform support.

## Links

- GitHub: https://github.com/Tencent/MMKV
- Docs: https://github.com/Tencent/MMKV/wiki

## Problems it solves

- SharedPreferences is slow and loses data when my Android app crashes
- fast local key-value storage for an iOS app instead of UserDefaults
- share small settings between processes of my Android app

## Features

- key-value storage for mobile apps that saves every write at once
- memory-mapped files with protobuf encoding
- multi-process access on Android, Windows and POSIX
- adds about 30K to an iOS app and 50K per architecture to an Android app

## Limitations

- Since version 2.0 it no longer supports 32-bit architectures or Android API levels 21 and 22: those need the 1.3.x LTS series.[^1]
- Kotlin Multiplatform support is experimental, for Android and iOS only.[^1]

## Trust

Overall: 0.62 out of 1.
Signals: maintenance 0.76, adoption 0.85, momentum 0.69, community 0.72, backing 0.30, extensibility 0.00.

- last commit 44 days ago
- 46 commits in the last 90 days
- latest release v2.4.3 44 days ago
- 18.8k GitHub stars
- 63 contributors
- accepts sponsorship (Github)
- backed by Tencent

## Alternatives

- [Realm](https://talira.ai/catalog/realm-rbjz5m12.md): Open source object database that runs inside mobile apps

## Sources

[^1]: https://github.com/Tencent/MMKV/blob/master/README.md (checked 26 Nov 2026)
[^2]: https://github.com/Tencent/MMKV/blob/master/LICENSE.TXT (checked 26 Nov 2026)
