# chaisql/chai

Modern embedded SQL database

Repository: https://github.com/chaisql/chai
Canonical: https://ross.abutalabs.com/products/chaisql-chai
Language: Go
License: MIT
License Family: permissive
Topics: database, sql, embedded-database, go, golang
Last push: 2026-01-16T09:12:13+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 62, release rhythm 43, longevity 100
- inputs: {"age_days": 2993, "days_push": 229, "days_rel": 301, "gap_med": 41.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1705, forks 101 (observed 2026-08-28T04:05:24.781581+00:00)

## What it is
ChaiSQL is a modern embedded SQL database written in pure Go with a PostgreSQL-inspired API, built on CockroachDB's Pebble storage engine. It integrates with Go's database/sql package and requires no CGO, supporting on-disk or in-memory storage.

## Use cases
- embed a sql database in a go application
- postgres-like sql without running a server
- pure go embedded database with no cgo
- in-memory sql database for testing
- simple local sql storage for go apps
- replace sqlite in a go project

## When to choose
- you need an embedded SQL database in a Go program without CGO or external dependencies
- you want Postgres-style SQL syntax locally for simple schemas
- you need an in-memory or on-disk database driven through database/sql

## When to avoid
- you need JOINs or advanced SQL features, which are not yet implemented
- you need a production-ready database for critical workloads
- you need full PostgreSQL driver/ORM compatibility or multi-language drivers

## Facets
- artifact type: library
- maturity: experimental
- function: database, cli, database-driver
- domain: databases, developer-tools, backend
- platform: go, cross-platform, cli
- tags: embedded-database, sql, pure-go, postgres-compatible, pebble, in-memory-database, database/sql-driver

## Member repositories
- chaisql/chai (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:24.781581+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-30T03:37:31.436393+00:00, confidence not recorded.
  - readme: https://github.com/chaisql/chai (fetched 2026-08-28T04:05:24.781581+00:00, sha dfc7a5a7a0c6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
