open-index/open-npm huggingface dataset:
npm package: @memorynodeai/sdk
Description: Official JavaScript/TypeScript client for **MemoryNode** — a memory layer for AI applications. Store and retrieve user memories (facts, preferences, events) with semantic search and RAG-ready context.
Latest version: 0.1.2

# @memorynodeai/sdk

Official JavaScript/TypeScript client for **MemoryNode** — a memory layer for AI applications. Store and retrieve user memories (facts, preferences, events) with semantic search and RAG-ready context.

## Install

```bash
npm install @memorynodeai/sdk
```

## Quick example

```ts
import { MemoryNodeClient } from "@memorynodeai/sdk";

const client = new MemoryNodeClient({
  apiKey: process.env.API_KEY,
  baseUrl: "https://api.memorynode.ai",
});

// Add a memory
await client.addMemory({
  userId: "user-1",
  namespace: "default",
  text: "Prefers dark mode and keyboard shortcuts",
  metadata: { source: "settings" },
});

// Search
const results = await client.search({
  userId: "user-1",
  namespace: "default",
  query: "user preferences",
  topK: 5,
});
```

Get an API key at [app.memorynode.ai](https://app.memorynode.ai).

## Links

- **GitHub:** [github.com/gaurav007pimpalkar-Trinity/memorynode](https://github.com/gaurav007pimpalkar-Trinity/memorynode)
- **Docs:** [docs.memorynode.ai](https://docs.memorynode.ai)

## License

MIT
npm package: @memorystack/mcp-installer
Description: One-click MCP installer for MemoryStack - connects your AI to persistent memory
Author: MemoryStack
Latest version: 1.0.2

# @memorystack/mcp-installer

One-click MCP installer for MemoryStack - connects your AI to persistent memory.

## Quick Start

```bash
# One-click install with OAuth (recommended)
npx @memorystack/mcp-installer --client cursor --oauth

# Or with existing API key
npx @memorystack/mcp-installer --client cursor --token ms_your_api_key
```

## Supported Clients

| Client | Flag |
|--------|------|
| Cursor | `--client cursor` |
| Claude Desktop | `--client claude_desktop` |
| VSCode | `--client vscode` |
| Kiro | `--client kiro` |
| Cline | `--client cline` |

## How It Works

1. Run the installer with `--oauth`
2. Browser opens for authentication
3. Login with your MemoryStack account
4. API key is automatically generated and saved
5. Restart your AI client - done!

## Options

```
-c, --client <client>  AI client (cursor, claude_desktop, vscode, kiro, cline)
--oauth                Use browser-based OAuth authentication (recommended)
--token <token>        Use existing API token instead of OAuth
--url <url>            Custom MemoryStack URL (default: https://memorystack.app)
-V, --version          Output version number
-h, --help             Display help
```

## Config File Locations

The installer automatically writes to the correct config file:

- **Cursor**: `~/.cursor/mcp.json`
- **Claude Desktop (Mac)**: `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Claude Desktop (Windows)**: `%APPDATA%\Claude\claude_desktop_config.json`
- **Kiro**: `~/.kiro/settings/mcp.json`
- **VSCode**: `.vscode/mcp.json` (in current directory)
- **Cline**: `~/.cline/mcp.json`

## What Gets Installed

The installer adds this configuration to your MCP config:

```json
{
  "mcpServers": {
    "memorystack": {
      "command": "npx",
      "args": ["-y", "@memorystack/mcp-server@latest"],
      "env": {
        "MEMORYSTACK_API_KEY": "ms_...",
        "MEMORYSTACK_BASE_URL": "https://memorystack.app"
      }
    }
  }
}
```

## Available MCP Tools

After installation, your AI will have access to:

- `create_memory` - Store new memories
- `search_memories` - Hybrid search (vector + text)
- `list_memories` - Browse memories with pagination
- `get_memory` - Get memory by ID
- `update_memory` - Update existing memory
- `delete_memory` - Delete a memory
- `reflect_on_memories` - Generate insights from patterns
- `consolidate_memories` - Merge similar memories
- `get_memory_stats` - Usage statistics

## Links

- [Documentation](https://memorystack.app/docs/integrations/mcp)
- [Dashboard](https://memorystack.app/dashboard)
- [Support](https://memorystack.app/support)
npm package: @memorystack/opencode
Description: Persistent cognitive memory for OpenCode — powered by MemoryStack
Author: MemoryStack
Latest version: 0.1.1

# @memorystack/opencode

> Persistent cognitive memory for [OpenCode](https://opencode.ai) — powered by [MemoryStack](https://memorystack.app)

Give your OpenCode AI agent the ability to **remember, learn, and grow** across sessions. No more repeating yourself — your agent knows your coding style, project architecture, and past decisions.

## Quick Start

**1. Install**

Add to your `opencode.json`:

```json
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@memorystack/opencode"]
}
```

**2. Set API Key**

```bash
export MEMORYSTACK_API_KEY="mem_live_..."
```

Get your free key at [memorystack.app/dashboard](https://memorystack.app/dashboard)

**3. Start coding** — memory works automatically!

```bash
opencode
```

## What It Does

| Hook | Event | When | What Happens |
|---|---|---|---|
| 🟢 Session Start | `session.created` | You open OpenCode | Fetches your profile + project memories |
| 📝 Message Detection | `message.part.updated` | You send a message | Detects "remember this" signals |
| 🔧 Tool Tracking | `tool.execute.after` | AI edits/runs code | Compresses output to one-liners |
| 💤 Session Save | `session.idle` | AI finishes responding | Saves session summary to MemoryStack |
| 📦 Compaction | `session.compacting` | Context gets compacted | Injects memories to survive compaction |

### Bonus: Custom AI Tools

The AI can directly use two memory tools:

- **`memory_search`** — "What did we decide about authentication?"
- **`memory_save`** — "Remember: we use PostgreSQL with Drizzle ORM"

## Dual-Scope Memory

| Scope | What's Stored | Who Gets It |
|---|---|---|
| **Personal** | Your coding style, habits, preferences | Only you |
| **Project** | Architecture decisions, patterns, conventions | Your whole team |

## Configuration

| Environment Variable | Description | Default |
|---|---|---|
| `MEMORYSTACK_API_KEY` | Your MemoryStack API key (required) | — |
| `MEMORYSTACK_DEBUG` | Enable debug logging | `false` |

## How It Works

```
Session Start → Profile Injection (your memories loaded)
     ↓
User Messages → Signal Detection ("remember this" → flagged)
     ↓
Tool Use → Activity Compression (edits/bash → one-liners)
     ↓
Context Compaction → Memory Injection (survive the cut)
     ↓
Session Idle → Smart Save (weighted summary → MemoryStack)
```

## License

MIT — [MemoryStack](https://memorystack.app)