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

@plotset/cli

v1.0.5

Published

CLI tool for managing and publishing PlotSet templates

Readme

PlotSet CLI

A command-line interface tool for creating, managing, and publishing PlotSet data visualization templates.

Installation

npm install -g @plotset/cli
# or
npm uninstall -g cli-plotset && npm install -g @plotset/cli

Quick Start

# Login to PlotSet
plotset login

# Create a new template
plotset new

# Publish to staging
plotset publish

# Publish to production
plotset publish-production

Commands

Authentication

| Command | Description | |---------|-------------| | plotset login | Login to PlotSet production (plotset.com) | | plotset logout | Logout from PlotSet production | | plotset login-stage | Login to PlotSet staging (plotset.net) | | plotset logout-stage | Logout from PlotSet staging | | plotset profile | Show your profile information |

Project Management

| Command | Description | |---------|-------------| | plotset new | Create a new PlotSet template project | | plotset add-test-files | Add Cypress test files to the project | | plotset update-project | Update project to latest template version |

Publishing

| Command | Description | |---------|-------------| | plotset publish | Publish template to staging (plotset.net) | | plotset publish-production | Publish template to production (plotset.com) | | plotset test-zip | Test zip file generation without publishing | | plotset test-git | Verify project is on required GitHub organization |

Template Structure

When you create a new template with plotset new, it generates the following structure:

my-template/
├── src/
│   ├── css/
│   │   └── main.css          # Styles (auto-imported in HTML)
│   ├── js/
│   │   ├── index.js          # Main entry point
│   │   └── chart.js          # Chart implementation
│   ├── bindings.json         # Data bindings configuration
│   ├── data.csv              # Default template data
│   ├── index.html            # HTML template
│   ├── info.json             # Template metadata
│   ├── settings.json         # Template settings/configuration
│   └── thumbnail.png         # Template preview image
├── cypress/                  # Test files
├── package.json
└── plotset.json             # PlotSet deployment config

Required Methods

Your template must implement these methods in src/js/index.js:

| Method | Description | Required | |--------|-------------|----------| | init_handler | Called on first load, data change, or binding change | ✓ | | change_config_handler | Called when settings change | ✓ | | resizeHandler | Called when iframe resizes | ✓ | | transformData | Called to transform data before rendering | ✗ |

Global Variables

These variables are available globally in your template:

  • data - Current dataset
  • backupData - Original dataset backup
  • config - Current configuration/settings
  • oldConfig - Previous configuration
  • col_rel - Column relationship bindings
  • width - Current width
  • height - Current height

Publishing Workflow

Staging (Development)

plotset login-stage
plotset publish

Version updates are not required for staging.

Production

plotset login
plotset publish-production

For production:

  • Your project must be on github.com/plotset-corp
  • You'll be prompted to select a version increment (patch/minor/major)
  • First publish will create a new template
  • Subsequent publishes will update the existing template

Configuration Files

plotset.json

Stores template IDs for different environments:

{
  "templateId": 102,
  "stagingTemplateId": 45
}

src/info.json

Template metadata:

{
  "title": "My Chart Template",
  "author": "Your Name",
  "slug": "my-chart-template",
  "category": 1
}

Development

Prerequisites

  • Node.js >= 18.0.0
  • npm or yarn

Setup

# Clone and install
git clone https://github.com/PlotSet/plotset-cli.git
cd plotset-cli
npm install

# Build
npm run build

# Development
npm run dev

Project Structure

src/
├── api/           # API client and methods
├── commands/      # CLI command definitions
├── config/        # Configuration management
├── services/      # Business logic
├── types/         # TypeScript type definitions
├── utils/         # Utility functions
└── index.ts       # CLI entry point

License

MIT © PlotSet