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

smolbrain

v1.2.1

Published

Long-term memory for AI agents. Local-first CLI backed by SQLite with semantic and full-text search.

Readme

smolbrain

Long-term memory for AI agents. A local-first CLI tool backed by SQLite with semantic search and full-text search.

Install

npm install -g smolbrain

Data is stored in ~/.local/smolbrain.sqlite.

Usage

Memories

# Store a memory
smolbrain add "the deploy key is in 1password"
smolbrain add -t ops "rotate credentials quarterly"
echo "multi-line content" | smolbrain add

# List memories
smolbrain ls
smolbrain ls --tail 5
smolbrain ls -t ops
smolbrain ls --from 2025-01-01 --to 2025-12-31

# Get a specific memory
smolbrain get 42

# Semantic search (finds related memories by meaning)
smolbrain search "how do we handle auth"

# Keyword search (FTS5, exact match)
smolbrain find "credentials"
smolbrain find "deploy key" -t ops

# Edit (archives the original, creates a new memory)
smolbrain edit 42 "the deploy key is in vault, not 1password"

# Tag management
smolbrain tag 42 important
smolbrain untag 42 ops

# Soft-delete and restore
smolbrain rm 42
smolbrain restore 42
smolbrain ls -a  # include archived

Tasks

# Store a task (auto-tagged with 'task' and 'todo')
smolbrain task "migrate database to v3"

# List tasks (default: todo and wip)
smolbrain tasks
smolbrain tasks done

# Update task status
smolbrain mark 7 wip
smolbrain mark 7 done

Status

# Overview of open tasks and recent memories
smolbrain status

Pagination

smolbrain ls --limit 10            # first 10 results
smolbrain ls --limit 10 --offset 5 # skip 5, then show 10
smolbrain ls --tail 10             # last 10 results

--limit, --tail, --offset, --from, and --to work on ls, find, search, and tasks.

Output

All listing commands support --json for structured output:

smolbrain ls --json
smolbrain search "deploy" --json
smolbrain find "deploy" --json
smolbrain get 42 --json

Commands

| Command | Description | |---|---| | add [text...] | Store a memory (args or stdin) | | ls | List memories | | get <id> | Retrieve a memory by ID | | search <text> | Semantic search (by meaning) | | find <text> | Keyword search (FTS5) | | edit <id> [text...] | Replace content (archives original) | | tag <id> <tag> | Add a tag | | untag <id> <tag> | Remove a tag | | rm <id> | Soft-delete (archive) | | restore <id> | Restore archived memory | | task [text...] | Store a task | | tasks [status] | List tasks | | mark <id> <status> | Set task status (todo/wip/done) | | status | Overview of open tasks and recent memories |

Claude Code skill

A SKILL.md is included so Claude Code can use smolbrain automatically. Copy it to your skills directory:

mkdir -p ~/.claude/skills/smolbrain
cp $(npm root -g)/smolbrain/SKILL.md ~/.claude/skills/smolbrain/SKILL.md

Claude will then use smolbrain to store and recall information across sessions.

Design

  • Semantic search using all-MiniLM-L6-v2 embeddings. search finds memories by meaning, not just keywords.
  • SQLite + FTS5 for storage and keyword search. No external services.
  • Soft-delete by default. rm archives, restore brings it back. Nothing is lost.
  • Edit creates a new version and archives the original. History is preserved.
  • Tags for flexible organization. Tasks are just memories with task + status tags.
  • Single file at ~/.local/smolbrain.sqlite. Easy to back up, move, or inspect.

License

ISC