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

@logicpanel/lphub

v0.2.0

Published

Thin CLI client for the LogicPanel Hub API — manifest-driven, gh-style.

Readme

@logicpanel/lphub

A thin command-line client for the LogicPanel Hub /api/v1. It authenticates with a Personal Access Token (PAT) and forwards requests — the API is the source of truth. The command tree (commands, options, help) is generated from a server manifest (GET /api/v1/cli-manifest) and cached locally, so the CLI needs almost no maintenance: when the API changes, you run lphub sync, not a rebuild.

Install

Requires Node.js >= 18.

# Global install — exposes the `lphub` command
npm i -g @logicpanel/lphub
lphub --help

# …or run it without installing
npx @logicpanel/lphub --help

From source (this monorepo)

pnpm install                                 # once — workspace dependencies
pnpm --filter @logicpanel/lphub build        # compile → packages/lphub/dist/index.js
cd packages/lphub && pnpm link --global      # expose `lphub` globally (symlink to dist/)

First-time setup

lphub auth login   # prompts for profile name, base URL and PAT token (validates via /auth/me)
lphub sync         # downloads the real manifest → ~/.lphub/manifest.json
lphub ticket list  # now the real, API-driven commands work

Updating

There are two different updates — don't confuse them:

| What changed | What to run | | --- | --- | | The API (new endpoint, field or filter) | lphub sync — no reinstall; commands are manifest-driven | | The CLI itself (new release on npm) | npm i -g @logicpanel/lphub@latest | | The CLI from source (local dev) | pnpm --filter @logicpanel/lphub build (the global symlink picks up the new dist/) |

For active development, pnpm --filter @logicpanel/lphub dev runs tsup --watch.

90% of the time, keeping up with the backend is just lphub sync.

Uninstall

npm uninstall -g @logicpanel/lphub          # or, if linked from source:
pnpm uninstall --global @logicpanel/lphub

Profiles & servers (prod vs local)

Each profile bundles a server (baseUrl) and its token, stored in ~/.lphub/config.json. Multiple servers = multiple profiles — no need to edit anything by hand.

lphub auth login            # e.g. profile "prod"  → https://api-hub.hrplane.com/api/v1
lphub auth login            # e.g. profile "local" → http://localhost:8484/api/v1
lphub auth list             # lists profiles, marks the current one
lphub auth switch local     # set the default profile
lphub --profile prod ticket list   # one-off override

Two optional escape hatches override the active profile's base URL (precedence: flag > env > profile):

lphub --base-url http://localhost:8484/api/v1 ticket list
export LPHUB_BASE_URL=http://localhost:8484/api/v1

Directory context (lphub init)

Pin a profile + project to the current directory so commands auto-scope to it — like gh inferring the repo from the folder. The file is personal, keep it out of git.

echo .lphub.json >> .gitignore
lphub init                  # choose profile + project → writes .lphub.json { profile, projectId }

lphub ticket list           # auto-scoped to the pinned project
lphub ticket create --title "Bug X"          # project_id injected from context
lphub ticket create --title "Y" --project-id 99   # an explicit flag always wins

Resolution — project: --project-id flag > .lphub.json > error if required. Profile: --profile > LPHUB_PROFILE env > .lphub.json > current profile.

Output

The default is a human-friendly table (like gh). Use flags for machine-readable output:

lphub ticket list                                   # table
lphub ticket list --json                            # raw JSON
lphub ticket list --fields id,title,status,project.name   # projected columns (dot-paths)

Long / Markdown fields

For any string option you can read the value from a file or STDIN, instead of a flag (useful for Markdown ticket descriptions — like gh issue create --body-file):

lphub ticket create --title "..." --description-file ./body.md
lphub ticket create --title "..." --description-file -   # read from STDIN

Other commands

lphub me              # the authenticated user (whoami)
lphub auth status     # active profile + whoami
lphub docs            # list topics;  `lphub docs tickets`  prints a topic's examples
lphub agent setup     # fetch the agent skill from the API and install it via skills.sh

lphub agent setup downloads the SKILL.md from the API and hands it to skills.sh (npx skills add), which installs it into your agent (Claude Code, Cursor, …). Forward flags through, e.g. lphub agent setup --agent claude-code -y.

Destructive commands (HTTP DELETE) ask for confirmation; pass -y/--yes to skip (also skipped automatically when not running in a TTY).

Exit codes

0 success · 4 auth failure (401/403) · 1 any other error.

Publishing

cd packages/lphub
npm version patch          # bump the version
npm publish                # `prepack` builds dist/ first; only dist/ + README ship

To verify what would ship without publishing:

npm pack --dry-run         # lists the tarball contents (dist/index.js, package.json, README)

The package is scoped (@logicpanel/lphub). To publish to a private registry (e.g. the GitLab npm registry) instead of public npm, point npm at it — drop the public default with --access restricted or a .npmrc @logicpanel:registry=... entry.