# @op-engineering/op-sqlite

> Fastest SQLite for React Native (with node.js support)

Latest version **19.0.5** (published 2026-11-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @op-engineering/op-sqlite
pnpm add @op-engineering/op-sqlite
yarn add @op-engineering/op-sqlite
bun add @op-engineering/op-sqlite
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; large bundle.

## Facts

| | |
|---|---|
| Version | 19.0.5 |
| Published | 2026-11-05 |
| First published | 2023-11-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 335.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1052 |
| Author | Oscar Franco |
| Maintainers | ospfranco |
| Keywords | react-native, ios, android, node, sqlite, database |

## Links

- npm: https://www.npmjs.com/package/@op-engineering/op-sqlite
- Repository: https://github.com/OP-Engineering/op-sqlite
- Homepage: https://github.com/OP-Engineering/op-sqlite#readme
- Issues: https://github.com/OP-Engineering/op-sqlite/issues
- npm.io page: https://npm.io/package/@op-engineering/op-sqlite

## Alternatives

- [@libsql/sqlite3](https://npm.io/package/@libsql/sqlite3.md) — 39.8K weekly downloads
- [@fortemi/core](https://npm.io/package/@fortemi/core.md) — 461 weekly downloads
- [cdb-converter](https://npm.io/package/cdb-converter.md) — 341 weekly downloads
- [@uplo/adapter-prisma](https://npm.io/package/@uplo/adapter-prisma.md) — 75 weekly downloads
- [typeorm-aios](https://npm.io/package/typeorm-aios.md) — 30 weekly downloads

## Recent versions

- 19.0.5 (latest) — 2026-11-05
- 18.0.0-beta.0 (beta) — 2026-08-12
- 19.0.4 — 2026-11-03
- 19.0.3 — 2026-10-29
- 19.0.2 — 2026-10-28
- 19.0.1 — 2026-10-26
- 19.0.0 — 2026-10-26
- 18.2.5 — 2026-09-20
- 18.2.4 — 2026-09-18
- 18.2.3 — 2026-09-15
- 18.2.1 — 2026-09-07
- 18.2.0 — 2026-09-05
- 18.1.4 — 2026-08-21
- 18.1.3 — 2026-08-21
- 18.1.2 — 2026-08-20
- … 209 more at https://npm.io/package/@op-engineering/op-sqlite/versions

## README

![benchmark_ios](benchmark4.jpg)
![benchmark_android](benchmark3.jpg)

Created by [@ospfranco](https://twitter.com/ospfranco). **Please consider sponsoring!**.

OP-SQLite has grown large to cover a lot of plugins, sqlite versions and APIs. Please read the full documentation before opening an issue.

[Open the docs](https://op-engineering.github.io/op-sqlite/)

Join the Discord:

https://discord.gg/W9XmqCQCKP

Some of the big supported features:

- iOS, Android, macOS and web support
- Vanilla sqlite
- Turso is supported as a compilation target
- Libsql is supported as a compilation target
- SQLCipher is supported as a compilation target
- FTS5 plugin
- Rtree plugin
- sqlite-vec plugin
- Reactive queries
- Custom tokenizers
- Load runtime extensions
- JSONB support
- Native query interruption via `db.interrupt()`

It also contains a simple [Key-Value store](https://op-engineering.github.io/op-sqlite/docs/key_value_storage) you can use without adding one more dependency to your app.

# Custom tokenizers

1. Add `"tokenizers": ["your_tokenizer"]` to the `"op-sqlite"` config in your app's `package.json`.
2. Run `npx react-native config` from your app's folder. It creates `c_sources/tokenizers.h`.
3. Write your implementation in `c_sources/tokenizers.cpp` and commit the `c_sources` folder.

Run the command again whenever you change `"tokenizers"`. See the [tokenizers docs](https://op-engineering.github.io/op-sqlite/docs/tokenizers) for the details.

# License

MIT License.

---
_Source: https://npm.io/package/@op-engineering/op-sqlite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
