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

@sharge/cli

v0.1.1

Published

`sharge` is the CLI for the Sharge open platform.

Readme

sharge

sharge is the CLI for the Sharge open platform.

It is built for agent and automation workflows: stable output envelopes, explicit exit codes, no interactive prompts, and a machine-readable schema registry.

Install the CLI

Install the npm package globally:

npm install -g @sharge/cli

Then confirm the binary is available:

sharge version

Install the skills

Install the Sharge skills package with:

npx skills add sharge/cli

This adds the sharge skills so an agent can discover the CLI usage patterns for core commands, notes, and calendar workflows.

Authentication

Set your API key before running commands:

export SHARGE_API_KEY="lms-..."

You can also pass credentials explicitly with --api-key.

Quick start

sharge auth status --output json
sharge doctor --output json
sharge schema --output json
sharge notes list --limit 10 --output json
sharge calendar months --year 2026 --month 4 --output json

CLI overview

Current command groups:

  • sharge version
  • sharge auth status
  • sharge doctor
  • sharge schema [command]
  • sharge notes list|get|create|update|delete
  • sharge calendar months
  • sharge calendar events list|create|update|delete

Useful global flags:

  • --api-key <key>: override SHARGE_API_KEY
  • --base-url <url>: override the API base URL
  • --timeout <duration>: request timeout such as 30s
  • --retry auto|off: retry policy
  • --debug: write debug logs to stderr
  • --dry-run: preview write commands without sending the request
  • --timezone <tz>: timezone for time-sensitive requests
  • --fields <fields>: select a subset of returned fields
  • --params <json>: pass inline JSON, @file, or - for stdin
  • -o, --output json|ndjson|text: choose output format

Notes examples

sharge notes list --search meeting --fields id,content --output json
sharge notes get 123 --output json
sharge notes create --content "Buy milk" --dry-run --output json
sharge notes update 123 --content "Updated text" --output json
sharge notes delete 123 --dry-run --output json

Calendar examples

sharge calendar months --year 2026 --month 4 --timezone Asia/Shanghai --output json
sharge calendar events list --start 2026-04-20T00:00:00+08:00 --end 2026-04-20T23:59:59+08:00 --output json
sharge calendar events create --title Standup --start 2026-04-20T09:00:00+08:00 --rrule 'FREQ=DAILY;COUNT=5' --output json
sharge calendar events update 42 --action instance --instance-id u_123_1713574800 --title "Shifted standup" --output json
sharge calendar events delete 42 --scope future --instance-id u_123_1713574800 --dry-run --output json

Output model

sharge writes command results to stdout.

  • On a TTY, the default format is text
  • Outside a TTY, the default format is json
  • Use --output to force json, ndjson, or text

Successful responses return structured data. Failed responses return a structured error with an exit code suitable for automation.

Exit codes

  • 0: success
  • 1: unknown error
  • 2: invalid input or unsupported invocation
  • 3: not found
  • 4: unauthorized or permission denied
  • 5: conflict
  • 6: rate limited
  • 7: timeout or network failure
  • 8: server error