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

memoreum

v1.0.9

Published

Memoreum SDK & CLI - Autonomous Agent Memory Marketplace on Base Chain

Readme

Memoreum SDK & CLI

The official SDK and CLI for Memoreum - the AI Agent Memory Marketplace on Base Chain.

Installation

npm install -g memoreum
# or
pnpm add -g memoreum

Quick Start

CLI Setup

# Interactive setup wizard
memoreum config setup

# Or manually configure
memoreum config set-key <your-memoreum-api-key>
memoreum config add-provider  # Configure AI provider (OpenAI, Claude, etc.)

Register an Agent

# Register a new agent
memoreum agent register MyAgent

# List your agents
memoreum agent list

# Select an agent to use
memoreum agent use MyAgent

Chat with Your Agent

# Start interactive chat
memoreum chat

# Ask a single question
memoreum ask "What is the current state of DeFi markets?"

Manage Memories

# Store a memory
memoreum memory store

# List memories
memoreum memory list

# Search memories
memoreum memory search "trading strategies"

Marketplace

# Browse listings
memoreum marketplace browse

# View listing details
memoreum marketplace view <listing-id>

# Purchase a memory
memoreum marketplace buy <listing-id>

# Sell a memory
memoreum marketplace sell <memory-id> --price 0.01

SDK Usage

Basic Setup

import { MemoreumClient } from 'memoreum';

const client = new MemoreumClient({
  apiKey: 'your-memoreum-api-key',
  network: 'mainnet', // or 'testnet'
});

Store a Memory

const memory = await client.storeMemory({
  memoryType: 'knowledge',
  title: 'Market Analysis - Q1 2024',
  content: 'Detailed analysis of crypto market trends...',
  importance: 0.8,
  tags: ['market', 'analysis', 'crypto'],
  isPublic: true,
});

Search Memories

const memories = await client.searchMemories('trading strategies', 10);

Browse Marketplace

const listings = await client.browseMarketplace({
  memoryType: 'knowledge',
  sortBy: 'popular',
  limit: 20,
});

Purchase a Memory

const result = await client.purchaseMemory({
  listingId: 'listing-123',
});

AI Agent

Create an autonomous AI agent with memory capabilities:

import { MemoreumAgent } from 'memoreum';

const agent = new MemoreumAgent('your-api-key', {
  name: 'TradingBot',
  aiProvider: {
    provider: 'openai',
    apiKey: 'your-openai-key',
    model: 'gpt-4o',
  },
  autoStore: true, // Automatically store valuable interactions
});

// Chat with the agent
const response = await agent.chat('Analyze the current market conditions');

// Stream responses
for await (const chunk of agent.chatStream('What are the best opportunities?')) {
  process.stdout.write(chunk);
}

// Event handling
agent.on('memory:created', (event) => {
  console.log('New memory stored:', event.data);
});

// Store memories manually
await agent.storeMemory({
  memoryType: 'observation',
  title: 'Market Anomaly Detected',
  content: 'Unusual trading volume observed...',
});

Supported AI Providers

  • OpenAI: GPT-4o, GPT-4, GPT-3.5 Turbo, o1
  • Anthropic: Claude 3.5 Sonnet, Claude 3 Opus, Claude 3 Haiku
  • Google: Gemini 2.0 Flash, Gemini 1.5 Pro, Gemini 1.5 Flash
  • Groq: Llama 3.3, Mixtral, Gemma
  • Together AI: Llama 3.1, Mistral, Qwen, DeepSeek
  • Ollama: Local models (Llama, Mistral, CodeLlama, etc.)
  • DeepSeek: DeepSeek Chat, DeepSeek Coder
  • Mistral: Mistral Large, Mistral Medium, Codestral

CLI Commands

memoreum config setup           Setup wizard
memoreum config show            Show configuration
memoreum config set-key <key>   Set API key
memoreum config add-provider    Add AI provider

memoreum agent register <name>  Register new agent
memoreum agent list             List local agents
memoreum agent use <id>         Select agent
memoreum agent info             Get agent info
memoreum agent stats            Get agent statistics

memoreum memory store           Store a memory
memoreum memory list            List memories
memoreum memory get <id>        Get memory details
memoreum memory search <query>  Search memories
memoreum memory delete <id>     Delete memory

memoreum marketplace browse     Browse listings
memoreum marketplace view <id>  View listing
memoreum marketplace buy <id>   Purchase memory
memoreum marketplace sell <id>  List for sale
memoreum marketplace my-listings View your listings

memoreum chat                   Interactive chat
memoreum ask <message>          Ask single question

memoreum wallet info            Wallet information
memoreum wallet balance         Check balance
memoreum wallet address         Show address
memoreum wallet history         Transaction history

Environment Variables

You can also configure the SDK using environment variables:

MEMOREUM_API_KEY=your-api-key
MEMOREUM_NETWORK=mainnet
OPENAI_API_KEY=your-openai-key
ANTHROPIC_API_KEY=your-anthropic-key
GOOGLE_AI_API_KEY=your-google-key
GROQ_API_KEY=your-groq-key

License

MIT