# agrosner/DBFlow

A blazing fast, powerful, and very simple ORM android database library that writes database code for you.

Repository: https://github.com/agrosner/DBFlow
Canonical: https://ross.abutalabs.com/products/dbflow
Language: Kotlin
License: MIT
License Family: permissive
Last push: 2026-08-23T22:43:01+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 4368, "days_push": 10, "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 4847, forks 593 (observed 2026-08-28T04:09:01.348402+00:00)

## What it is
DBFlow is a Kotlin Multiplatform ORM for SQLite that uses annotations and a compiler plugin to generate database adapters and a typed query DSL. It targets Android, JVM, iOS, and macOS, with built-in coroutine support and optional encryption via SQLCipher.

## Use cases
- persist kotlin data classes to sqlite with annotations
- write type-safe sqlite queries with a dsl instead of raw sql
- share database code across android and ios with kotlin multiplatform
- observe database changes reactively with flows or livedata
- encrypt local sqlite databases on android
- run transactions and migrations for an android app database

## When to choose
- you want a fast annotation-based sqlite orm for android or kotlin multiplatform
- you prefer generated code and a typed query dsl over writing raw sql
- you need coroutine-based async database access with reactive observers
- you need encrypted local storage via sqlcipher

## When to avoid
- you need a non-sqlite database like postgres or mysql
- you want a stable release - the current version is an alpha
- you prefer a lightweight sql builder without code generation
- your project does not use kotlin

## Facets
- artifact type: library
- maturity: active
- function: orm, database, database-driver
- domain: databases, mobile-development, developer-tools
- platform: jvm
- tags: sqlite, kotlin-multiplatform, compiler-plugin, query-dsl, coroutines, sqlcipher, code-generation, android, ios, macos

## Member repositories
- agrosner/DBFlow (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:01.348402+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-29T18:18:26.198122+00:00, confidence not recorded.
  - readme: https://github.com/agrosner/DBFlow (fetched 2026-08-28T04:09:01.348402+00:00, sha 65ff660c918c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
