npm.io
0.1.0-pre.4 • Published yesterday

@noy-db/to-memory

Licence
MIT
Version
0.1.0-pre.4
Deps
0
Size
37 kB
Vulns
0
Weekly
701
Stars
2

@noy-db/to-memory

In-memory adapter for noy-db — ideal for testing and ephemeral workloads.

npm

Install

pnpm add @noy-db/hub @noy-db/to-memory

Usage

import { createNoydb } from '@noy-db/hub'
import { memory } from '@noy-db/to-memory'

const db = await createNoydb({
  adapter: memory(),
  userId: 'alice',
  passphrase: 'correct horse battery staple',
})

Data lives only in the current process — it's gone when the process exits. Perfect for:

  • Unit and integration tests
  • Short-lived scripts
  • Benchmarks
  • Prototyping before wiring up persistent storage

License

MIT vLannaAi — see the noy-db repo for full documentation.

Keywords