# Tencent/wcdb

WCDB is a cross-platform database framework developed by WeChat.

Repository: https://github.com/Tencent/wcdb
Canonical: https://ross.abutalabs.com/products/wcdb
Language: C
License: NOASSERTION
License Family: other
Topics: database, android, ios, wechat, sqlcipher, sqlite, windows, linux, macos
Last push: 2026-04-10T11:50:30+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 76, release rhythm 65, longevity 100
- inputs: {"age_days": 3401, "days_push": 145, "days_rel": 159, "gap_med": 57.5, "n_releases_24m": 9}
- 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 11631, forks 1500 (observed 2026-08-28T04:10:49.215712+00:00)

## What it is
WCDB is a cross-platform mobile database framework developed by WeChat, built on SQLite and SQLCipher. It provides ORM and a native query language (WINQ) across C++, Java, Kotlin, Swift, and Objective-C.

## Use cases
- store structured data locally on iOS or Android
- encrypt a local SQLite database with SQLCipher
- map objects to database tables without writing SQL strings
- share one database layer across mobile and desktop platforms
- perform CRUD operations from Swift or Kotlin with type-safe queries

## When to choose
- you need an encrypted, high-performance local database on mobile
- you want ORM support across multiple languages in one framework
- you are building a WeChat-scale app needing battle-tested storage

## When to avoid
- you need a server-side or web-only database
- you prefer lightweight direct SQLite access without an ORM layer
- you need a database other than SQLite

## Facets
- artifact type: library
- maturity: active
- function: database, orm, database-driver, cryptography
- domain: databases, mobile-development, cross-platform, security
- platform: windows, cpp, jvm
- tags: sqlite, sqlcipher, wechat, mobile-database, winq, objective-c, kotlin, openharmony, android, ios, macos, linux, swift

## Member repositories
- Tencent/wcdb (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:49.215712+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:15:26.756858+00:00, confidence not recorded.
  - readme: https://github.com/Tencent/wcdb (fetched 2026-08-28T04:10:49.215712+00:00, sha a954aca198ab)
- Data as of 2026-08-30T08:39:29.467469+00:00.
