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

polyv-live-cli

v1.2.45

Published

CLI tool for managing PolyV live streaming services.

Readme

PolyV Live CLI

polyv-live-cli is an agent-friendly command line tool for managing PolyV live streaming accounts, channels, streams, products, coupons, playback, documents, sessions, chat, interaction tools, viewers, player settings, watch pages, and statistics.

The CLI is designed for both human operators and AI agents:

  • every command exposes --help;
  • most data commands support table and JSON output;
  • account configuration can be reused across commands;
  • destructive or state-changing commands use confirmation prompts or --force where supported.

Install

Use the latest published CLI directly:

npx --yes polyv-live-cli@latest --help

Or install it globally:

npm install -g polyv-live-cli
polyv-live-cli --help

Node.js 18 or later is required.

Authentication

Add an account and set it as default:

polyv-live-cli account add production --app-id <appId> --app-secret <appSecret> --user-id <userId>
polyv-live-cli account set-default production
polyv-live-cli account current

Switch the current shell session to a named account:

polyv-live-cli use production

Use one account for a single command:

polyv-live-cli channel list -a production -o json

Or pass credentials directly when automation requires it:

polyv-live-cli channel list --appId <appId> --appSecret <appSecret> --userId <userId> -o json

Do not print or log AppSecret. Stream keys returned by stream get-key -o json are also sensitive and should only be sent to trusted streaming software.

Common Flows

Create and inspect a channel:

polyv-live-cli channel create -n "Product Launch" --scene topclass --template ppt -o json
polyv-live-cli channel list -P 1 -l 20 -o json
polyv-live-cli channel get -c <channelId> -o json

Check stream status and get OBS credentials:

polyv-live-cli stream status -c <channelId> -o json
polyv-live-cli stream get-key -c <channelId> -o json

Manage products and coupons:

polyv-live-cli product list -c <channelId> -o json
polyv-live-cli coupon add --name "Full 100 minus 20" --type MAX_OUT --availableAmount 100 \
  --receiveStart 1704067200000 --receiveEnd 1704153600000 \
  --useTimeType RANGE --useStart 1704067200000 --useEnd 1704758400000 \
  --condition FULL_REDUCE --full 100 --reduce 20 --limitPerPerson 1 -o json
polyv-live-cli coupon list -o json

Query playback, documents, sessions, and statistics:

polyv-live-cli playback list -c <channelId> -o json
polyv-live-cli document list -c <channelId> -o json
polyv-live-cli session list -c <channelId> -o json
polyv-live-cli statistics view -c <channelId> --start-day 2026-06-01 --end-day 2026-06-20 -o json

Preview the built-in e-commerce scene before writing data:

polyv-live-cli setup e-commerce --dry-run -o json

Command Groups

The current CLI exposes 40 top-level commands. Use top-level help first, then the deepest subcommand help before running a write operation.

polyv-live-cli --help
polyv-live-cli channel --help
polyv-live-cli channel create --help

Main command families:

| Area | Commands | | --- | --- | | Accounts and configuration | account, use, platform, global, user, group, partner | | Channel and stream operations | channel, stream, monitor, transmit | | Marketing and commerce | product, coupon, card-push, promotion | | Content and playback | playback, record, document, session, material, webapp | | Interactions | chat, lottery, checkin, qa, questionnaire, donate, interaction, robot | | Viewers and access control | viewer, watch-condition, whitelist, custom-field, invite-sales | | Player, watch page, data, and AI | player, web, statistics, finance, ai | | Workflow templates | setup |

Safety

Commands that create, update, delete, start, stop, push, send, merge, transcode, import, batch-update, or change global/channel settings can affect live data. Confirm the target account, channel ID, and object ID before running them. Use --force only after the user or operator has explicitly approved the operation.

For tests or release validation, prefer temporary channels and clean them up afterwards instead of mutating a long-lived configured channel.

Development

From the repository root:

pnpm install
pnpm --filter polyv-live-cli build
pnpm --filter polyv-live-cli test
pnpm --filter polyv-live-cli test:integration

Generate API and CLI inventory reports:

pnpm api:inventory
pnpm cli:inventory

Run the local built CLI:

node packages/cli/dist/index.js --help

Release

Dry-run the package before publishing:

pnpm release:cli:dry

Publish only after the package version has been bumped beyond the current npm version and the build, tests, inventory checks, and git diff --check pass.