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

@shard-for-obsidian/cli

v0.4.4

Published

Shard CLI tool to push and pull plugins from GHCR

Readme

Shard CLI

A command-line interface for managing Obsidian plugins through the Shard marketplace and OCI registries.

Installation

npm install -g @shard-for-obsidian/cli

Quick Start

# List all available plugins
shard list

# Search for a plugin
shard search "calendar"

# Get plugin information
shard info obsidian-calendar-plugin

# Install a plugin
shard install obsidian-calendar-plugin

# Configure the CLI
shard config set token YOUR_TOKEN
shard config list

Commands Overview

User Commands

Browse and manage plugins from the Shard marketplace.

shard list

List all plugins in the marketplace.

shard list                # List all plugins
shard list --verbose      # Show additional details
shard list --json         # Output as JSON

shard search <query>

Search for plugins in the marketplace.

shard search "calendar"           # Search for plugins
shard search "calendar" --json    # Output as JSON

shard info <plugin-id>

Show detailed information about a specific plugin.

shard info obsidian-calendar-plugin
shard info obsidian-calendar-plugin --json

shard install <plugin-id>

Install a plugin to your Obsidian vault.

shard install obsidian-calendar-plugin
shard install obsidian-calendar-plugin --output ~/path/to/vault/.obsidian/plugins

Configuration Commands

Manage CLI configuration stored in ~/.shard/config.json.

shard config get <key>

Get a configuration value.

shard config get token
shard config get defaults.output

shard config set <key> <value>

Set a configuration value.

shard config set token YOUR_TOKEN
shard config set defaults.output ~/vault/.obsidian/plugins

shard config list

List all configuration values.

shard config list
shard config list --json

shard config clear

Clear all configuration values.

shard config clear

Registry Commands

Direct operations with OCI registries.

shard registry pull <repository>

Pull a plugin directly from an OCI registry.

shard registry pull ghcr.io/owner/repo:latest
shard registry pull ghcr.io/owner/repo:v1.2.3
shard registry pull ghcr.io/owner/repo:latest --output ~/vault/.obsidian/plugins

shard registry versions <repository>

List available versions for a repository.

shard registry versions ghcr.io/owner/repo
shard registry versions ghcr.io/owner/repo --json

Utility Commands

shard completion install

Install shell completion (placeholder - not yet implemented).

shard completion script

Generate completion script (placeholder - not yet implemented).

Configuration File

The CLI stores persistent configuration in ~/.shard/config.json. The configuration file supports:

Configuration Structure

{
  "token": "your-registry-token",
  "defaults": {
    "output": "~/vault/.obsidian/plugins"
  }
}

Supported Keys

  • token - Authentication token for private registries
  • defaults.output - Default output directory for plugin installations

Use dot notation to access nested configuration values:

shard config get defaults.output
shard config set defaults.output ~/path/to/plugins

Global Flags

Available on all commands:

  • --verbose - Enable verbose logging with detailed debugging information
  • --json - Output results as JSON (where applicable)
  • --help - Show help for any command

Logging

The CLI uses structured logging:

  • Normal mode: User-friendly messages to stderr
  • Verbose mode: Detailed debugging information to stderr
  • Log file: All logs are written to ~/.shard/shard.log in structured JSON format

Migration from v0.2.x

In v0.3.0, several commands have been reorganized for better clarity:

| Old Command | New Command | | ---------------------------------- | ---------------------------- | | shard marketplace list | shard list | | shard marketplace search <query> | shard search <query> | | shard marketplace info <id> | shard info <id> | | shard marketplace install <id> | shard install <id> | | shard pull <repo> | shard registry pull <repo> |

See the design document for full migration details.

Examples

Browse the marketplace

# List all plugins
shard list

# Search for calendar plugins
shard search calendar

# Get detailed info about a specific plugin
shard info obsidian-calendar-plugin

Install plugins

# Install using default output directory
shard config set defaults.output ~/vault/.obsidian/plugins
shard install obsidian-calendar-plugin

# Install to a specific location
shard install obsidian-calendar-plugin --output ~/other-vault/.obsidian/plugins

Work with registries

# Pull directly from a registry
shard registry pull ghcr.io/owner/repo:latest

# Check available versions
shard registry versions ghcr.io/owner/repo

# Pull a specific version
shard registry pull ghcr.io/owner/repo:v1.2.3

Configuration management

# Set up authentication token
shard config set token YOUR_GITHUB_TOKEN

# Configure default plugin directory
shard config set defaults.output ~/vault/.obsidian/plugins

# View all configuration
shard config list

# Get a specific value
shard config get token

Requirements

  • Node.js >= 18.0.0

License

MIT

Links