npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@elizaos/plugin-inmemorydb-root

v2.0.0-alpha.1

Published

Pure in-memory, ephemeral database storage for elizaOS - no persistence, completely forgets on reset

Readme

@elizaos/plugin-inmemorydb

A pure in-memory, ephemeral database adapter for elizaOS. All data is completely lost on process restart or when close() is called.

Features

  • Zero Configuration: No database setup required - just works out of the box
  • Zero Persistence: Data is never written to disk or localStorage
  • Completely Ephemeral: All data is lost when the process ends
  • Cross-Platform: Works identically in Node.js and browsers
  • Vector Search: Built-in HNSW index for semantic similarity search (also ephemeral)
  • Same Interface: Implements the standard IDatabaseAdapter interface

When to Use

This plugin is ideal for:

  • ✅ Testing and CI/CD: Perfect for tests that need a fresh database each run
  • ✅ Stateless deployments: When you want agents to start fresh each time
  • ✅ Development: Quick prototyping without persistence overhead
  • ✅ Privacy-focused applications: When data should never be stored
  • ✅ Demos and examples: Clean slate for each demonstration

Not recommended for:

  • ❌ Production systems that need data persistence
  • ❌ Long-running agents that need to remember past interactions
  • ❌ Multi-process deployments (data is not shared between processes)

Installation

bun add @elizaos/plugin-inmemorydb

Quick Start

Node.js

import { plugin } from "@elizaos/plugin-inmemorydb";

// Add to your agent configuration
const agent = {
  plugins: [plugin],
  // ...
};

Browser

import { plugin } from "@elizaos/plugin-inmemorydb";

// Add to your agent configuration
const agent = {
  plugins: [plugin],
  // ...
};

API

Creating an Adapter Manually

import {
  InMemoryDatabaseAdapter,
  MemoryStorage,
} from "@elizaos/plugin-inmemorydb";

const storage = new MemoryStorage();
const adapter = new InMemoryDatabaseAdapter(storage, agentId);
await adapter.init();

// Use the adapter...

// When done, close to clear all data
await adapter.close();

Clearing Data

// Clear all data (adapter still usable)
await storage.clear();

// Or close the adapter entirely (also clears data)
await adapter.close();

Comparison with Other Database Plugins

| Feature | plugin-inmemorydb | plugin-localdb | plugin-sql | | --------------- | ------------------ | ------------------ | ------------------- | | Persistence | None (ephemeral) | JSON files | PostgreSQL | | Setup | Zero configuration | Zero configuration | Requires PostgreSQL | | Data on restart | Lost | Preserved | Preserved | | Best for | Testing/dev | Local dev | Production |

How It Works

The plugin uses simple JavaScript Map data structures to store all data:

Memory
├── Collections (Map<string, Map<string, unknown>>)
│   ├── agents: Map<id, agent>
│   ├── memories: Map<id, memory>
│   ├── rooms: Map<id, room>
│   └── ... (other collections)
└── HNSW Vector Index (in-memory)

When the process ends or close() is called, all Maps are cleared and data is gone forever.

Vector Search

The plugin includes an ephemeral HNSW (Hierarchical Navigable Small World) implementation for vector similarity search:

  • Semantic memory search
  • Similar content retrieval
  • Embedding-based queries

The vector index is also purely in-memory and is cleared with all other data.

License

MIT