@noy-db/to-memory
In-memory adapter for noy-db — ideal for testing and ephemeral workloads.
Install
pnpm add @noy-db/hub @noy-db/to-memoryUsage
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.