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

@alsania-io/eme

v1.0.2

Published

Echo Memory Engine - Alsania's sovereign memory system

Readme

@alsania-io/eme - Echo Memory Engine

Sovereign Memory System for AI Agents - Local, Encrypted, Multi-Agent Memory with MCP Protocol Support

npm version License: MIT MCP Protocol

🎯 What is EME?

Echo Memory Engine (EME) is a sovereign memory system for AI agents that provides:

  • Local & Encrypted: Your memory stays on your machine, encrypted at rest
  • MCP Protocol Native: Fully compatible with Model Context Protocol
  • Multi-Agent Support: Isolated namespaces for different agents
  • Semantic Search: Vector-based memory retrieval with SQLite backend
  • Knowledge Graph: Relationship tracking between memories
  • Memory Gate: Noise filtering to prevent memory bloat

🚀 Quick Start

Installation

npm install @alsania-io/eme
# or
yarn add @alsania-io/eme
# or
pnpm add @alsania-io/eme

Start the MCP Server

# Start EME as an MCP server
npx eme start

# Or with specific configuration
npx eme start --port 3636 --maxMemoryEntries 10000

Use in Your Code

import { MemoryEngine } from '@alsania-io/eme';

// Initialize the memory engine
const memory = new MemoryEngine({
  vectorStorePath: './storage/vectors.db',
  graphStorePath: './storage/graph.jsonl',
  snapshotPath: './storage/snapshots'
});

await memory.initialize();

// Add a memory
const result = await memory.addMemory(
  'User prefers dark mode and uses a mechanical keyboard',
  'assistant-1',
  'user-preferences'
);

// Search memories
const memories = await memory.search(
  'What keyboard does the user have?',
  5, // limit
  'user-preferences' // namespace (optional)
);

📖 Documentation

MCP Tools

EME provides the following MCP tools:

  • add_memory - Add a new memory entry
  • search_memory - Search memories using semantic and graph search
  • update_memory - Update an existing memory entry
  • delete_memory - Delete a memory entry (soft delete)
  • list_memories - List memories with optional filtering
  • graph_add_node - Add a node to the knowledge graph
  • graph_add_edge - Add an edge between graph nodes
  • snapshot_save - Create a memory snapshot
  • snapshot_load - Load a memory snapshot
  • graph_read - Read entire graph structure with nodes and edges
  • batch_add_memories - Add multiple memories at once
  • clear_namespace - Clear all nodes and edges in a namespace

Configuration

EME can be configured via constructor options or environment variables:

const config = {
  // Embedding configuration
  embeddingModel: 'local',           // or 'openai', 'cohere', etc.
  embeddingDimension: 384,           // BGE-small dimension
  
  // Storage configuration
  vectorStore: 'sqlite',             // or 'postgres', 'memory'
  vectorStorePath: './storage/vectors.db',
  graphStore: 'jsonl',               // or 'neo4j', 'memory'
  graphStorePath: './storage/graph.jsonl',
  snapshotStore: 'filesystem',       // or 's3', 'ipfs'
  snapshotPath: './storage/snapshots',
  
  // Memory gate configuration
  memoryGateEnabled: true,
  memoryGateThreshold: 0.3,
  
  // General configuration
  maxMemoryEntries: 10000,
  similarityThreshold: 0.3,
  logLevel: 'info'                   // 'debug', 'info', 'warn', 'error'
};

CLI Usage

# Start MCP server
npx eme start

# Start with specific port
npx eme start --port 3636

# Show configuration
npx eme config

# Show version
npx eme version

# Run tests
npx eme test

# Get help
npx eme help

🔧 Architecture

EME is built with a modular architecture:

┌─────────────────────────────────────────────┐
│                 MCP Interface               │
├─────────────────────────────────────────────┤
│              Memory Manager                 │
├─────────────┬──────────────┬───────────────┤
│ Vector Store│ Graph Store  │ Snapshot Store│
│  (SQLite)   │   (JSONL)    │  (Filesystem) │
└─────────────┴──────────────┴───────────────┘
│              Memory Gate                    │
│         (Noise Filtering)                   │
└─────────────────────────────────────────────┘

Key Features

  1. Vector Memory Store: SQLite-based vector storage for semantic search
  2. Knowledge Graph: Track relationships between memories
  3. Memory Gate: Prevent memory bloat with relevance filtering
  4. Snapshot System: Version and export/import memory states
  5. Multi-Namespace: Isolate memories by agent or context
  6. Encryption: All data encrypted at rest with local keys

🔐 Security & Privacy

  • Local First: All data stays on your machine
  • Encryption: Memories encrypted with AES-256
  • No Telemetry: No data leaves your system
  • Open Source: MIT licensed, fully auditable

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests: npm test
  5. Submit a pull request

📄 License

MIT License - see LICENSE file for details.

🙏 Acknowledgments

  • Built for the Model Context Protocol ecosystem
  • Inspired by the need for sovereign AI memory systems
  • Thanks to all contributors and the open source community

📞 Support


Made with ❤️ by Alsania I/O - Building sovereign AI infrastructure.