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

@the-brain/cli

v0.2.3

Published

CLI for The Brain — local-first cognitive memory. Save, recall, ingest PDFs, interactive chat.

Readme

@the-brain/cli

CLI for @the-brain/core — local-first cognitive memory.

Save facts, ask questions, ingest PDFs, and chat interactively — all from the terminal.

Install

npm install -g @the-brain/cli

Setup

Create a .env file (or export env vars):

# LLM — any OpenAI-compatible endpoint
LLM_API_URL=http://localhost:11434/v1/chat/completions
LLM_MODEL=llama3.2
# LLM_API_KEY=sk-...   # required for cloud providers

# MongoDB
MONGODB_URI=mongodb://localhost:27017/brain

# Optional: embeddings for semantic search
# EMBEDDING_API_URL=http://localhost:11434/v1/embeddings
# EMBEDDING_MODEL=nomic-embed-text

# Optional: user ID (default: "default")
# BRAIN_USER_ID=my-user

Works with any OpenAI-compatible LLM — local (Ollama, LM Studio) or cloud (Groq, OpenAI):

# Groq (free, fast, no local GPU needed)
LLM_API_URL=https://api.groq.com/openai/v1/chat/completions
LLM_MODEL=llama-3.3-70b-versatile
LLM_API_KEY=gsk_...

Commands

Interactive chat (default)

brain
# or
brain chat

Save a fact

brain save "I prefer tabs over spaces"
brain save "Meeting with team every Monday at 10" --permanent

--permanent — entry never decays or gets pruned. Use for important facts and ingested documents.

Ask a question

brain process "What do I prefer for indentation?"

Brain classifies intent automatically — if it's a question it searches memory, if it's a fact it saves it.

Search memory directly

brain recall "indentation preferences"

Ingest PDFs

# Single file
brain ingest ./document.pdf

# Entire folder
brain ingest ./docs/

# Custom chunk size
brain ingest ./manual.pdf --chunk-size 800 --overlap 150

PDF content is saved as permanent memory — it never decays.

Run maintenance

brain maintenance

Triggers decay, pruning, synapse building, and long-term memory consolidation.

License

AGPL-3.0 — github.com/greg00ry/the-brain