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

@getengram/cli

v0.3.4

Published

CLI for Engram — persistent memory for AI agents

Downloads

905

Readme

@getengram/cli

Command-line interface for Engram — persistent memory for AI agents.

Install

# npm
npm install -g @getengram/cli

# or run directly
npx @getengram/cli search "your query"

Setup

# Authenticate
engram auth login engram_sk_live_YOUR_API_KEY

# Or use environment variable
export ENGRAM_API_KEY=engram_sk_live_YOUR_API_KEY

Commands

Authentication

engram auth login <key>    # Save API key
engram auth logout         # Remove credentials
engram auth status         # Show auth status

Conversations

# List all conversations
engram conversations list
engram conversations list --agent my-agent --tags prod,deploy

# Create a conversation
engram conversations create --title "Deploy Log" --tags prod

# Get conversation with messages
engram conversations get conv_abc123

# Delete a conversation
engram conversations delete conv_abc123 --force

Store Messages

# Store a message
engram store -c conv_abc123 "Deployed v2.1.0 to production"

# Store with specific role
engram store -c conv_abc123 --role assistant "Deploy complete"

# Store tool output
engram store -c conv_abc123 --role tool --tool deploy "Success: v2.1.0"

# Pipe from stdin
echo "log output here" | engram store -c conv_abc123 --file -

# Store from file
engram store -c conv_abc123 --file ./deploy.log

Search

# Semantic search across all memory
engram search "when did we deploy v2"

# Limit results
engram search "error handling" --limit 5

# Search within a conversation
engram search "config change" --conversation conv_abc123

# Filter by tags
engram search "production issues" --tags prod,api

Output Formats

Every command supports --json for machine-readable output:

engram conversations list --json
engram search "deploy" --json | jq '.results[0].score'

Configuration

Credentials are stored in ~/.engram/config.json.

Environment Variables

| Variable | Description | |----------|-------------| | ENGRAM_API_KEY | API key (overrides saved config) | | ENGRAM_BASE_URL | Custom endpoint (default: https://mcp.getengram.app) |

Examples

Log agent sessions

# Create a session
CONV=$(engram conversations create --title "Agent Run $(date +%F)" --json | jq -r '.conversationId')

# Store messages as the agent runs
engram store -c $CONV "User asked to refactor auth module"
engram store -c $CONV --role assistant "Analyzing auth module..."
engram store -c $CONV --role tool --tool code_review "Found 3 issues"

# Later, search across all sessions
engram search "auth module issues"

Pipe build output

npm run build 2>&1 | engram store -c conv_builds --file -

Export conversation as JSON

engram conversations get conv_abc123 --json > conversation.json

License

MIT — getengram.app