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

plan-cli

v0.1.1

Published

CLI wrapper for DP Assistant planning APIs.

Readme

plan-cli

plan-cli is the DP Assistant counterpart to guancli.

This first version deliberately does not add DP backend APIs. It wraps existing DP HTTP APIs and exposes stable JSON-oriented commands for Decidex agents and implementation engineers.

Install and Run

Global install from npm:

npm install -g plan-cli
plan-cli --help

Run without installing:

npx plan-cli --help

From the repository root:

pnpm plan-cli -- --help
pnpm plan-cli -- auth login
pnpm plan-cli -- dataset list

Directly from this package:

pnpm --dir cli/plan-cli plan-cli --help

Configuration

By default, config is stored in the OS user config directory:

  • macOS: ~/Library/Application Support/plan-cli/config.json
  • Linux: ~/.config/plan-cli/config.json
  • Windows: %AppData%\plan-cli\config.json

For Decidex runtime injection, set:

PLANCLI_CONFIG_DIR=/path/to/.plan-cli

Profiles follow the same operating model as guancli: one profile contains one DP environment base URL and its access/refresh token material.

Command Surface

Authentication:

plan-cli auth login
plan-cli auth login --profile customer-dp --base-url https://dp.example.com --login-id user --password '...'
plan-cli auth status --profile customer-dp
plan-cli auth list
plan-cli auth use customer-dp

Datasets:

plan-cli dataset list
plan-cli dataset search 销售
plan-cli dataset meta --dataset-id 1
plan-cli dataset preview --dataset-id 1 --limit 20
plan-cli dataset list --json
plan-cli dataset meta --dataset-id 1 --json
plan-cli dataset preview --dataset-id 1 --limit 20 --json
plan-cli dataset import --spec dataset.json --dry-run --json
plan-cli dataset import --spec dataset.json --apply --json
plan-cli dataset sync --dataset-id 1 --spec sync.json --json

dataset list, dataset search, dataset meta, and dataset preview default to human-readable output. Add --json to keep the raw machine-readable API response.

Planning tables and cards:

plan-cli page init --spec page.json --json
plan-cli page save --spec page.json --json
plan-cli card init --spec card.json --json
plan-cli card preview --card-id cd_xxx --spec table-filter.json --limit 50 --json

Plans:

plan-cli plan list --json
plan-cli plan meta --plan-id plan_xxx --json
plan-cli plan preview --spec rolling-plan.json --json
plan-cli plan add --spec rolling-plan.json --json
plan-cli plan sync --plan-id plan_xxx --json

Tasks:

plan-cli task get --task-id task_xxx --json
plan-cli task latest-state --task-type PLAN_SYNC --object-id plan_xxx --json
plan-cli task wait --task-id task_xxx --timeout 600 --json

Raw API access:

plan-cli fetch GET /api/meta/app/version/info --json
plan-cli fetch POST /api/dataset/list '{"orderBy":"update_time","orderType":"desc"}' --json

Dry-Run Boundary

Because this version does not add backend APIs, --dry-run is a CLI preflight. It validates the local spec shape and reports the DP APIs that would be called. It does not provide transaction-level guarantees inside DP Assistant.