Windows CI / windows ([bun run --cwd packages/app-core test bun run --cwd packages/elizaos test bun run --cwd packages/cloud/shared test], app-and-cli) (push) Waiting to run
Windows CI / windows ([bun run --cwd packages/scenario-runner test bun run --cwd packages/vault test bun run --cwd packages/security test bun run --cwd plugins/plugin-coding-tools test], framework-packages) (push) Waiting to run
Windows CI / windows ([bun run --cwd plugins/plugin-elizacloud test bun run --cwd plugins/plugin-discord test bun run --cwd plugins/plugin-anthropic test bun run --cwd plugins/plugin-openai test bun run --cwd plugins/plugin-app-control test bun run --cwd plugins/pl… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run build --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/agent --concurrency=4 node packages/scripts/run-bash-linux-only.mjs scripts/verify-riscv64-buildpaths.sh node packages/scripts/run… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run typecheck --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/cloud-shared --concurrency=4 bun run --cwd packages/core test bun run --cwd packages/shared test], core-runtime, 75) (push) Waiting to run
A pure in-memory, ephemeral database adapter for elizaOS. All data is completely lost on process restart or when close() is called.
Intended for tests, stateless deployments, prototyping, and scenarios where zero setup and zero persistence are the goal. Not suitable for production agents that need to remember past interactions.
import{InMemoryDatabaseAdapter,MemoryStorage,}from"@elizaos/plugin-inmemorydb";conststorage=newMemoryStorage();constadapter=newInMemoryDatabaseAdapter(storage,agentId);awaitadapter.init();// Use the adapter...
// When done, close to clear all data
awaitadapter.close();
Clearing Data
// Clear all data (adapter still usable after re-init)
awaitstorage.clear();// Or close the adapter entirely (also clears data)
awaitadapter.close();
How It Works
The plugin uses JavaScript Map data structures to store all data, organized into named collections (agents, entities, memories, rooms, worlds, components, relationships, participants, tasks, cache, logs, embeddings, pairing_requests, pairing_allowlist). It also includes an ephemeral HNSW vector index for semantic similarity search.
When the process ends or close() is called, all collections are cleared and data is gone.
Cross-Platform
Works in Node.js and browsers. The package exports map selects the correct build automatically (dist/node/ for Node/Bun, dist/browser/ for browsers).