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

wmstudio-cli

v0.2.10

Published

Command-line client for the WM Studio creative platform. Generates images, videos, brand campaigns, and 3D assets from your terminal.

Readme

wmstudio-cli

Command-line client for WM Studio. Generate images, videos, brand campaigns, and 3D assets — and inspect your jobs and credits — straight from your terminal.

npm i -g wmstudio-cli
wm login
wm gen image "studio portrait of a husky, cinematic lighting"

Install

Requires Node.js 20.10+.

# global (recommended)
npm i -g wmstudio-cli

# or per-project
npm i -D wmstudio-cli

# one-off, no install
npx wmstudio-cli --help

Verify:

wm --version

Authenticate

Step 1 — get an API key. Sign in at https://wmstudio.io, then go to:

Dashboard → API keys → Create new key

Direct link: https://wmstudio.io/dashboard/api-keys

Copy the key once — it's shown only at creation. Keys start with wm_live_….

Step 2 — log in from your terminal.

wm login                 # paste the key when prompted (input is masked)
wm whoami                # prints account email + credit balance

Credentials are stored in ~/.wm/config.json (chmod 600). To sign out:

wm logout

You can also pass a key per-call without saving it:

wm --api-key wm_live_xxx whoami
# or
WM_API_KEY=wm_live_xxx wm whoami

Commands

| Command | What it does | |---|---| | wm login | Save an API key for this machine | | wm logout | Remove saved credentials | | wm whoami | Show account email + credits remaining | | wm gen image <prompt> | Generate an image | | wm gen video <prompt> | Generate a video | | wm upscale <image> | Upscale an image (URL or local file) | | wm campaign <brief> | Run a multi-asset brand campaign | | wm search <query> | Web search (Tavily-powered) — 1 credit basic, 2 advanced | | wm jobs list | List your recent generation jobs | | wm jobs get <id> | Show details for a single job |

Run wm <command> --help for full flags.

Cost confirmation

Every generation command (gen image, gen video, upscale) shows you the estimated credit cost and asks you to confirm before charging:

? Image generation · fal-ai/nano-banana-pro
  Estimated cost: 18 credits (~$0.300)
  Proceed? (Y/n)

After the generation completes you also see how many credits you have left. Skip the prompt with -y/--yes for unattended/CI use:

wm gen image "red apple" --yes -o apple.png
wm --json gen image "red apple"           # --json also auto-skips the prompt

Defaults are tuned for current best-in-class quality:

| Tool | Default model | |---|---| | gen image (text-to-image) | fal-ai/nano-banana-pro | | gen image --image-url ... | fal-ai/nano-banana-pro/edit (auto-picked) | | gen video | bytedance/seedance-2.0-fast |

Override with -m/--model whenever you want.

Examples

# Image — pick a model and aspect ratio, save the result locally
wm gen image "neon cyberpunk alley, rain, dramatic lighting" \
  --model flux-pro --aspect 16:9 --out ./out/

# Video — 5 second clip from a text prompt
wm gen video "drone shot flying over snowy mountain peaks at sunrise" \
  --duration 5 --out ./videos/

# Upscale a local file 4x
wm upscale ./photo.jpg --scale 4 --out ./upscaled/

# Brand campaign from a single brief
wm campaign "Launch teaser for an artisanal coffee brand called Brava" \
  --out ./campaigns/brava/

# Web search — quick lookup
wm search "next.js 16 release notes"

# Web search — advanced, last week, restricted sources
wm search "OpenAI o3 benchmarks" \
  --depth advanced \
  --time week \
  --max 10 \
  --include-domain wikipedia.org

# Pipe URLs into another tool
wm --json search "vector databases" | jq -r '.results[].url'

# Inspect jobs
wm jobs list --limit 10
wm jobs get gen_01HZX...

# Machine-readable output for scripting
wm --json jobs list --limit 5 | jq '.[] | .id'

Global flags

| Flag | Env var | Notes | |---|---|---| | --api-key <key> | WM_API_KEY | Overrides saved credentials | | --api-url <url> | WMSTUDIO_API_URL | Point at a different deployment (default https://wmstudio.io/api) | | --json | — | Emit JSON instead of formatted text | | -v, --version | — | Print CLI version |

Where things live

  • Config: ~/.wm/config.json — API key + base URL. Per-OS-user, never shared.
  • Outputs: wherever you point --out, default is the current directory.
  • Logs: stderr. Use --json for parseable stdout in scripts.

To test as a fresh user without touching your real session:

HOME=/tmp/wm-fresh wm login
HOME=/tmp/wm-fresh wm whoami
rm -rf /tmp/wm-fresh

Troubleshooting

  • 401 Unauthorized — key is missing, revoked, or expired. Run wm login again.
  • 402 Insufficient credits — top up at https://wmstudio.io/dashboard/billing.
  • Job stuck in queued — the CLI polls automatically; if it times out, fetch later with wm jobs get <id>.
  • command not found: wm — your global node_modules/.bin isn't in $PATH. Run npm prefix -g and add <prefix>/bin to $PATH.

Links

License

MIT © WM Studio