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

@xxxio1/memos-cli

v1.0.0

Published

CLI tool for Memos - A lightweight note-taking service

Readme

memos-cli

CLI tool for Memos - A lightweight, self-hosted note-taking service.

Installation

npm install -g @xxxio1/memos-cli

From source

git clone https://github.com/xxxio1/memos-cli.git
cd memos-cli
bun install
bun run build
npm link

Usage

Authentication

# Login to your Memos server
memos auth login -s https://your-memos-server.com -u username -p password

# Check authentication status
memos auth status

# Set server URL only
memos auth config https://your-memos-server.com

# Logout
memos auth logout

List & Search Memos

# List recent memos
memos list

# Search by keyword (server-side filter, no full load)
memos list docker
memos list "部署"

# Filter by visibility
memos list -v PUBLIC
memos list -v PRIVATE

# Filter by tag
memos list -t work

# Combine filters
memos list docker -v PUBLIC --limit 10

# Output as JSON
memos list --json

# Fetch all memos
memos list --all

Quick Actions

# Quick create a memo
memos quick "Hello World"
memos quick "Public note" -v PUBLIC

# Get a specific memo
memos get memos/abc123
memos show memos/abc123

# Delete a memo
memos delete memos/abc123
memos delete memos/abc123 -f  # force, no confirmation

Memo Management

# Create a memo (interactive)
memos memo create
memos memo create -c "Content here" -v PUBLIC

# Update a memo
memos memo update memos/abc123 --pin
memos memo update memos/abc123 --content "New content"
memos memo update memos/abc123  # interactive editor

# Archive / Restore
memos memo update memos/abc123 --archive
memos memo update memos/abc123 --restore

User Commands

# Show current user
memos user me

# Get user by ID
memos user get users/1

Shortcuts

# List shortcuts
memos shortcut list

# Create a shortcut
memos shortcut create -t "My Filter" -f 'visibility == "PUBLIC"'

# Delete a shortcut
memos shortcut delete users/1/shortcuts/abc123

Command Overview

memos
  list [keyword]     # Search and list memos (alias: ls)
  get <name>         # Get a specific memo (alias: show)
  delete <name>      # Delete a memo (alias: rm)
  quick <content>    # Quick create a memo (alias: q)

  auth               # Authentication commands
  memo               # Full memo management (alias: m)
  user               # User commands (alias: u)
  shortcut           # Shortcut management (alias: sc)

Global Options

memos --no-color          # Disable colored output
memos --quiet             # Suppress spinner and extra output
memos --json              # Output as JSON
NO_COLOR=1 memos list     # Or use environment variable
MEMOS_QUIET=1 memos list  # Or use environment variable

Configuration

Configuration is stored in ~/.memos-cli/config.json:

{
  "serverUrl": "https://your-memos-server.com",
  "token": "your-jwt-token",
  "username": "your-username"
}

Development

# Install dependencies
bun install

# Run in development
bun run dev

# Build for production
bun run build

License

MIT