# ncruces/go-sqlite3

Go bindings to SQLite using wasm2go

Repository: https://github.com/ncruces/go-sqlite3
Canonical: https://ross.abutalabs.com/products/ncruces-go-sqlite3
Homepage: https://pkg.go.dev/github.com/ncruces/go-sqlite3
Language: Go
License: MIT
License Family: permissive
Topics: no-cgo, sqlite3, wasm, wasm2go
Last push: 2026-08-31T14:40:54+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 96, longevity 95
- inputs: {"age_days": 1330, "days_push": 2, "days_rel": 30, "gap_med": 13.0, "n_releases_24m": 49}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1099, forks 32 (observed 2026-09-01T02:14:05.206083+00:00)

## What it is
A cgo-free Go binding to SQLite that wraps a WebAssembly build of SQLite translated to Go via wasm2go. It provides a database/sql compatible driver, direct access to the C SQLite API, a pure Go VFS, and a GORM driver.

## Use cases
- use sqlite in go without cgo
- embed a sqlite database in a go application
- connect to sqlite with database/sql
- use sqlite with gorm in go
- cross-compile go binaries with sqlite
- create custom sqlite virtual tables or vfs in go
- run sqlite  and math functions from go

## When to choose
- you need sqlite in Go without cgo for easy cross-compilation or minimal dependencies
- you want a database/sql driver plus low-level access to the SQLite C API
- you need advanced SQLite features like custom functions, virtual tables, or incremental blob I/O

## When to avoid
- you need maximum raw query performance, since the wasm-based approach adds overhead over cgo bindings
- you prefer the widely used mattn/go-sqlite3 cgo driver and don't mind cgo
- you need other databases than sqlite

## Facets
- artifact type: library
- maturity: active
- function: database-driver, database, orm
- domain: databases, developer-tools, backend
- platform: go, cross-platform, wasm
- tags: sqlite, cgo-free, wasm2go, database-sql-driver, gorm, vfs

## Member repositories
- ncruces/go-sqlite3 (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:14:05.206083+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-30T06:47:16.763669+00:00, confidence not recorded.
  - readme: https://github.com/ncruces/go-sqlite3 (fetched 2026-09-01T02:14:05.206083+00:00, sha d3ac9040790f)
  - homepage: https://pkg.go.dev/github.com/ncruces/go-sqlite3 (fetched 2026-08-29T12:50:13.462758+00:00, sha 515938599fc6)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T12:50:13.474511+00:00, sha 757852027879)
- Data as of 2026-08-30T08:39:29.467469+00:00.
