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

@happycastle/opencode-graphiti

v0.3.0

Published

OpenCode plugin that gives coding agents persistent memory using Graphiti temporal knowledge graph

Readme

opencode-graphiti

OpenCode plugin that gives coding agents persistent memory using Graphiti temporal knowledge graph.

This is a fork of opencode-supermemory that uses Graphiti MCP Server as the backend instead of Supermemory.

Features

  • Automatic Context Injection: User profile + project knowledge + relevant memories injected at session start
  • Temporal Knowledge Graph: Graphiti tracks relationships, entities, and changes over time
  • Multi-Tenant Scoping: User-scope and project-scope memory isolation via group_id
  • "Remember" Trigger Detection: Automatically prompts agent to save when user says "remember this"
  • Context Compaction: Saves session summaries before context window limits
  • Hybrid Search: Semantic + keyword search via Graphiti MCP Server

Architecture

┌──────────────────────┐     ┌─────────────────────────────────────┐
│   OpenCode Agent     │     │      Graphiti MCP Server            │
│                      │     │                                     │
│  ┌────────────────┐  │     │  ┌───────────────┐                  │
│  │opencode-graphiti│─┼─────┼─▶│   MCP Tools   │                  │
│  │    (plugin)    │  │HTTP │  │ (add_memory,  │                  │
│  └────────────────┘  │     │  │  search_nodes)│                  │
│                      │     │  └───────┬───────┘                  │
│  No API keys needed  │     │          │                          │
│  Just HTTP calls     │     │  ┌───────▼───────┐  ┌────────────┐  │
└──────────────────────┘     │  │   Graphiti    │  │ OpenAI API │  │
                             │  │ (Knowledge    │──│ (Embedding │  │
                             │  │   Graph)      │  │  + LLM)    │  │
                             │  └───────┬───────┘  └────────────┘  │
                             │          │                          │
                             │  ┌───────▼───────┐                  │
                             │  │   FalkorDB    │                  │
                             │  └───────────────┘                  │
                             └─────────────────────────────────────┘

중요: 이 플러그인은 API key가 필요 없습니다. Graphiti MCP Server URL만 알면 됩니다. OpenAI API key는 Graphiti 서버 설정 시 필요합니다.

Quick Start

1. Start Graphiti MCP Server

git clone https://github.com/getzep/graphiti.git
cd graphiti/mcp_server

cp .env.example .env
# .env 파일에 OPENAI_API_KEY 설정 (Graphiti 서버용)

docker compose up -d

2. Install the Plugin

bunx opencode-graphiti@latest install

Or manually add to ~/.config/opencode/opencode.jsonc:

{
  "plugin": ["opencode-graphiti@latest"]
}

3. Configure (Optional)

Create ~/.config/opencode/graphiti.jsonc:

{
  // Graphiti MCP Server URL (기본값)
  "mcpUrl": "http://localhost:8000/mcp/",
  
  // Group ID prefix
  "groupIdPrefix": "opencode",
  
  // Search limits
  "maxMemories": 5,
  "maxProjectMemories": 10
}

Or use environment variable:

export GRAPHITI_MCP_URL="http://localhost:8000/mcp/"

4. Initialize Memory

Start OpenCode and run:

/graphiti-init

Usage

Automatic Features

  • First message: Profile + project memories + relevant context injected
  • "Remember" triggers: Agent prompted to save when you say "remember", "save this", etc.
  • Session compaction: Summaries saved to memory before context limits

Manual Tool Usage

graphiti(mode: "add", content: "Uses Bun for package management", type: "project-config", scope: "project")
graphiti(mode: "search", query: "testing patterns")
graphiti(mode: "list", scope: "project", limit: 20)
graphiti(mode: "profile")
graphiti(mode: "forget", memoryId: "uuid-here")
graphiti(mode: "status")

Memory Scopes

| Scope | Description | Use For | |-------|-------------|---------| | user | Cross-project | Personal preferences, coding style | | project | This repo only | Build commands, architecture, conventions |

Memory Types

  • project-config - Tech stack, commands, tooling
  • architecture - Codebase structure, data flow
  • learned-pattern - Project-specific conventions
  • error-solution - Known issues and fixes
  • preference - Coding style preferences
  • conversation - Session summaries

Requirements

  • OpenCode 1.0+
  • Graphiti MCP Server running (provides its own LLM/embedding)

Troubleshooting

Plugin not loading

Check logs at ~/.opencode-graphiti.log

Connection errors

Verify Graphiti is running:

curl http://localhost:8000/health

License

MIT

Credits