# rocksdb-native

> librocksdb bindings for JavaScript

Latest version **3.18.0** (published 2026-09-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install rocksdb-native
pnpm add rocksdb-native
yarn add rocksdb-native
bun add rocksdb-native
```

## Health

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

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

Warnings: low downloads; no types; large bundle.

## Facts

| | |
|---|---|
| Version | 3.18.0 |
| Published | 2026-09-14 |
| First published | 2023-09-07 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 160.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 17 |
| Author | Holepunch Inc |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/rocksdb-native
- Repository: https://github.com/holepunchto/rocksdb-native
- Issues: https://github.com/holepunchto/rocksdb-native/issues
- npm.io page: https://npm.io/package/rocksdb-native

## Dependencies (7)

- [streamx](https://npm.io/package/streamx.md) ^2.16.1
- [refcounter](https://npm.io/package/refcounter.md) ^1.0.0
- [require-addon](https://npm.io/package/require-addon.md) ^1.0.2
- [ready-resource](https://npm.io/package/ready-resource.md) ^1.0.0
- [signal-promise](https://npm.io/package/signal-promise.md) ^1.0.3
- [compact-encoding](https://npm.io/package/compact-encoding.md) ^3.0.0
- [resolve-reject-promise](https://npm.io/package/resolve-reject-promise.md) ^1.1.0

## Recent versions

- 3.18.0 (latest) — 2026-09-14
- 3.17.4 — 2026-08-11
- 3.17.3 — 2026-08-03
- 3.17.2 — 2026-07-06
- 3.17.1 — 2026-07-01
- 3.17.0 — 2026-06-29
- 3.16.0 — 2026-06-16
- 3.15.2 — 2026-06-03
- 3.15.1 — 2026-05-05
- 3.15.0 — 2026-03-20
- 3.14.0 — 2026-03-17
- 3.13.2 — 2026-03-05
- 3.13.1 — 2026-03-02
- 3.13.0 — 2026-02-09
- 3.12.0 — 2026-01-22
- … 80 more at https://npm.io/package/rocksdb-native/versions

## README

# rocksdb-native

<https://github.com/holepunchto/librocksdb> bindings for JavaScript.

```
npm i rocksdb-native
```

> [!IMPORTANT]
> On Linux `libatomic` must be installed as well.

## Usage

```js
const RocksDB = require('rocksdb-native')

const db = new RocksDB('./example.db')

const w = db.write()
w.put('hello', 'world')
await w.flush()

const r = db.read()
const p = r.get('hello')
r.flush()

console.log(await p)
```

## License

Apache-2.0

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