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

@arephan/clawdbot-memory-supabase

v0.1.1

Published

Clawdbot plugin for complete conversation logging to Supabase/PostgreSQL. Never forget anything.

Readme

clawdbot-memory-supabase

A Clawdbot plugin that logs every conversation to Supabase/PostgreSQL. Never forget anything.

What it does

  • 📝 Logs every message (user + assistant) with timestamps
  • 🔍 Query by date: "What did we talk about on January 15th?"
  • 📅 Query by range: "What did we discuss last week?"
  • 🔎 Search by keyword across all history
  • 🐘 Elephant memory — complete conversation recall

Quick Start

1. Set up Supabase

Local (recommended for development):

# Install Supabase CLI
brew install supabase/tap/supabase

# In your project directory
supabase init
supabase start

Or use Supabase Cloud: Create a project at supabase.com

2. Run migrations

Copy the migrations/ folder to your Supabase project:

cp -r migrations/ your-project/supabase/migrations/
cd your-project
supabase db reset  # Local
# or
supabase db push   # Cloud

3. Install the plugin

Option A: Copy to extensions folder

cp -r plugin/ ~/.clawdbot/extensions/memory-supabase/
# or for workspace-specific:
cp -r plugin/ your-workspace/.clawdbot/extensions/memory-supabase/

Option B: Install from npm (coming soon)

clawdbot plugins install @arephan/clawdbot-memory-supabase

4. Configure Clawdbot

Add to your clawdbot.json:

{
  "plugins": {
    "slots": {
      "memory": "memory-supabase"
    },
    "entries": {
      "memory-supabase": {
        "enabled": true,
        "config": {
          "supabase": {
            "url": "http://127.0.0.1:54321",
            "anonKey": "your-supabase-key"
          },
          "agentId": "my-agent"
        }
      }
    }
  }
}

5. Restart Clawdbot

clawdbot gateway restart

Tools Available

Once installed, your agent gets these tools:

| Tool | Description | |------|-------------| | recall_conversation | Get messages from a specific date | | recall_date_range | Get messages across a date range | | search_history | Search all messages by keyword | | memory_stats | Show logging statistics |

CLI Commands

clawdbot supamem stats          # Show stats
clawdbot supamem recall 2026-01-15   # Get messages from date
clawdbot supamem search "iPad"  # Search by keyword

Database Schema

The plugin uses these tables:

  • sessions — Conversation sessions with metadata
  • messages — Every message with role, content, timestamp
  • memories — (Optional) Long-term memories with embeddings
  • entities — (Optional) Knowledge graph entries

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | supabase.url | string | required | Supabase project URL | | supabase.anonKey | string | required | Supabase anon/service key | | agentId | string | "default" | Agent identifier for multi-agent setups |

How it works

  1. Session start: Creates a new session when conversation begins
  2. Message logging: Captures every user and assistant message
  3. Session end: Closes session when conversation ends
  4. Recall: SQL queries for date/keyword-based retrieval

No embeddings or vector search required — just simple, reliable PostgreSQL queries.

Future Plans

  • [ ] Vector search with pgvector (semantic similarity)
  • [ ] Auto-summarization of long conversations
  • [ ] Entity extraction (people, places, things)
  • [ ] npm package for easy installation

License

MIT

Author

Built by an AI agent for Clawdbot.