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

@lessly/cli

v0.1.0

Published

Unified command-line facade over the Lessly platform operations

Readme

@lessly/cli

lessly — a unified command-line facade over the Lessly platform operations. It renders the same operation registry agents reach over MCP, so the CLI has parity with MCP by construction.

Install (internal test registry)

This package publishes to the internal Google Artifact Registry. With the repo .npmrc in place and gcloud auth configured:

npm i -g @lessly/cli

Auth

Browser (device-code) login for humans:

lessly auth login                 # prints a code + URL, opens your browser, polls
lessly --profile prod auth login  # against the prod auth server

Non-interactive (CI / agents) with a product-scoped service token:

lessly auth login --token "$LESSLY_TOKEN"

Both store the Bearer under ~/.lessly/credentials.json (mode 0600), per profile. Auth servers: staging auth.lessly.dev, prod auth.lessly.com.

Usage

lessly --profile staging organization product list
lessly organization product create --name "Acme" --yes
lessly deployment cloud-sql-database attach --input @args.json
lessly operations              # raw op list (MCP/CLI parity debug)
lessly config set product <id> # active product

Flag placement (gcloud/gh convention)

  • Connection flags go BEFORE the command: --profile <staging|prod>, --refresh. Example: lessly --profile prod organization product list.
  • Output / behavior flags go AFTER the operation: -o table|json|yaml (--json), --input <json>|@file|-, --yes/--force. Example: lessly organization product create --name Acme --yes.

A behavior flag placed before the command is rejected with an "unknown option" error — move it after the operation. (Behavior flags are per-operation, so an operation may even define its own --input/--force parameter; in that case the flag is that operation's argument and --yes is the confirm bypass.)

Mutations

Mutating operations prompt for confirmation; pass --yes (or --force) to bypass, and non-interactive sessions must pass --yes (otherwise the command exits 2 rather than running a mutation unattended). A few operations define their own --force argument (e.g. deployment environment reconcile); on those the operation's --force is its parameter, so use --yes to bypass the confirm.

Until the gateway emits the MCP readOnlyHint annotation, mutation detection uses a conservative verb heuristic on the operation's action (list, get, show, describe, status, logs, export, … and list-*/get-* / *-list/*-logs/*-status/*-info are treated as read-only; everything else is treated as a mutation). When readOnlyHint is present it always wins. The safe default is to treat the unknown as a mutation, so an occasional read may ask for --yes — never the reverse.

Exit codes

| Code | Meaning | |------|---------| | 0 | success | | 1 | generic error | | 2 | validation | | 3 | auth / token | | 4 | not found / forbidden / no product selected |

Architecture

Commands depend only on the neutral Operation model produced by the operation catalog (tools/listOperation). The transport seam (src/transport) is the only MCP-specific code; swapping it for a manifest endpoint in step 2 changes no command.