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

synapse-layer

v1.0.1

Published

Persistent zero-knowledge memory for AI agents. Store, recall and transfer encrypted context across models.

Readme

🧠 Synapse Layer CLI

Persistent zero-knowledge memory for AI agents. Store, recall and transfer encrypted context across models.

npm version License

"Giving Agents a Past. Giving Models a Soul."

Synapse Layer is the universal memory layer for AI agents. It provides persistent, private, model-agnostic memory with zero-knowledge encryption — the server never sees your plaintext data.


🚀 Quick Start

# Install globally
npm install -g synapse-layer

# Or use directly with npx
npx synapse-layer remember "User prefers dark mode" --user user_123

Setup

export SYNAPSE_API_KEY="your-supabase-anon-key"

📖 Commands

synapse remember — Store a memory

Store a memory with zero-knowledge encryption. Content is encrypted locally before being sent.

# Basic usage
synapse remember "User prefers concise responses" --user user_123

# With importance score
synapse remember "API key rotated on March 2026" --user user_123 --importance 0.9

# With category
synapse remember "Prefers TypeScript over Python" --user user_123 --category preference

Options: | Flag | Description | Default | |------|-------------|---------| | --user <id> | User UUID (required) | — | | --importance <0.0-1.0> | Memory importance score | 0.5 | | --category <cat> | Intent category | fact |

Categories: preference, fact, instruction, emotion, goal, relationship, skill, context


synapse recall — Semantic memory search

Search your encrypted memory vault using vector similarity.

# Basic recall
synapse recall "communication preferences" --user user_123

# With limit
synapse recall "what does the user prefer?" --user user_123 --limit 10

# With threshold
synapse recall "project deadlines" --user user_123 --threshold 0.8

Options: | Flag | Description | Default | |------|-------------|---------| | --user <id> | User UUID (required) | — | | --limit <n> | Max results | 5 | | --threshold <0.0-1.0> | Min similarity | 0.7 |


synapse handover — Neural Handover™

Transfer context between AI models seamlessly. Create signed, encrypted handover packages.

# Transfer to GPT
synapse handover --to gpt --user user_123

# Transfer to Claude with custom expiry
synapse handover --to claude --user user_123 --expires 7200

# Transfer to Gemini with more memories
synapse handover --to gemini --user user_123 --limit 20

Supported models: gpt, claude, gemini, llama, mistral, deepseek

Options: | Flag | Description | Default | |------|-------------|---------| | --to <model> | Target model (required) | — | | --user <id> | User UUID (required) | — | | --expires <sec> | Expiration (seconds) | 3600 | | --limit <n> | Max memories to include | 10 |


synapse import — Import memory blob

Load a previously exported encrypted memory package into the vault.

# Import from base64 string
synapse import --blob <base64_string> --user user_123

# Import from file
synapse import --blob $(cat handover.b64) --user user_123 --category context

Options: | Flag | Description | Default | |------|-------------|---------| | --blob <base64> | Encrypted blob (required) | — | | --user <id> | User UUID (required) | — | | --category <cat> | Intent category | context | | --importance <0.0-1.0> | Importance score | 0.5 |


synapse status — Vault health check

Display current vault state, including health score and memory statistics.

synapse status --user user_123

Options: | Flag | Description | Default | |------|-------------|---------| | --user <id> | User UUID (required) | — |


synapse forget — Delete memories

Remove memories matching a query. Supports LGPD/GDPR compliance with soft-delete.

# Soft-delete (default, LGPD/GDPR compliant)
synapse forget "old preferences" --user user_123

# Permanent deletion
synapse forget "outdated API keys" --user user_123 --hard

Options: | Flag | Description | Default | |------|-------------|---------| | --user <id> | User UUID (required) | — | | --hard | Permanent deletion | false | | --limit <n> | Max memories to delete | 5 |


🔌 MCP Server

Connect any MCP-compatible client to the Synapse Layer server:

https://rbeycxzizrrdmxpilepc.supabase.co/functions/v1/mcp-server

🔒 Zero-Knowledge Architecture

All data is encrypted client-side with AES-256-GCM before leaving your machine. The server stores only encrypted blobs and vector embeddings — it never has access to your plaintext data.

  • Encryption: AES-256-GCM with PBKDF2 key derivation (210,000 iterations)
  • Embeddings: gte-small (384 dimensions)
  • Compliance: LGPD/GDPR ready with soft-delete support
  • Signing: HMAC-SHA256 for Neural Handover™ packages

🏗️ Agent Integration Examples

LangChain

from synapse_memory import SynapseMemory

memory = SynapseMemory(api_key="your-key", user_id="user_123")
memory.store("User prefers brief answers", importance=0.8)
results = memory.recall("communication style")

Direct API (fetch)

const response = await fetch('https://rbeycxzizrrdmxpilepc.supabase.co/functions/v1/mcp-server', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_KEY' },
  body: JSON.stringify({
    jsonrpc: '2.0', id: 1,
    method: 'tools/call',
    params: { name: 'store_memory', arguments: { user_id: 'user_123', /* ... */ } }
  })
});

🌐 Environment Variables

| Variable | Description | Required | |----------|-------------|----------| | SYNAPSE_API_KEY | Supabase anon key | ✅ | | SYNAPSE_ENDPOINT | Custom MCP server URL | ❌ |


📄 License

Apache 2.0 — Built in São Paulo · synapselayer.org


Keywords

agent persistent memory, cross-model context transfer, zero-knowledge memory, recall past conversation, memory handover, MCP memory tool, neural handover, conflict resolution memory, semantic memory search, agent state persistence, mcp, langchain, ai-agents, persistent memory for AI, encrypted agent memory, model context protocol