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

@playtagon/cli

v0.5.6

Published

Playtagon CLI for uploading Spine assets

Readme

@playtagon/cli

Command-line interface for uploading and managing Spine animation assets on the Playtagon platform.

Installation

npm install -g @playtagon/cli

Authentication

Login to your Playtagon account:

playtagon login

This opens your browser for secure authentication. After logging in, you can verify your session:

playtagon whoami

To logout:

playtagon logout

Uploading Spine Assets

Auto-Upload with File Watcher (Recommended)

Start watching a directory for new exports. Files will automatically upload when you export from Spine Editor:

playtagon spine watch ./exports --studio my-studio --game my-game

This command runs in the background and automatically uploads files whenever Spine creates a new export. Just keep it running in a terminal while you work.

Options:

  • --batch - Enable batch mode for multiple skeletons sharing one atlas
  • --interval <seconds> - Change check interval (default: 2 seconds)

Press Ctrl+C to stop watching.

Manual Upload

Upload a Spine asset directory to a specific studio and game:

playtagon spine upload ./my-animation --studio my-studio --game my-game

Validate Before Upload

Check your Spine files without uploading:

playtagon spine validate ./my-animation

Dry Run

Test the upload process without actually uploading:

playtagon spine upload ./my-animation --studio my-studio --game my-game --dry-run

Configuration

Interactive Setup

Run the setup wizard to configure defaults:

playtagon setup

Set Default Studio/Game

playtagon config set defaultStudio my-studio
playtagon config set defaultGame my-game

View Current Config

playtagon config get defaultStudio
playtagon config list

Spine Export Preset

Generate a recommended Spine export preset for consistency:

playtagon spine preset > playtagon-export.json

Import this file into Spine Editor for optimal export settings.

Syncing Assets (for Developers)

Download approved Spine assets to your local project with TypeScript types and Storybook stories:

# Sync all approved assets
playtagon spine sync --studio my-studio --game my-game

# Sync to custom directory
playtagon spine sync -s my-studio -o ./src/assets/spine

# Sync specific assets only
playtagon spine sync --assets hero,villain,effects

# Preview what would be synced
playtagon spine sync --dry-run

# Force overwrite local changes
playtagon spine sync --force

Generated Files

src/assets/spine/
├── hero/
│   ├── hero.skel           # Skeleton file
│   ├── hero.atlas          # Atlas file
│   ├── hero.png            # Texture(s)
│   ├── index.ts            # TypeScript types
│   └── hero.stories.ts     # Storybook story
├── villain/
│   └── ...
└── manifest.ts             # Re-exports all assets

TypeScript Types

Generated index.ts provides full IntelliSense:

import { hero } from './assets/spine/manifest';

// Typed animation names
hero.animations.idle;
hero.animations.walk;

// Animation durations (seconds)
hero.durations.idle;   // 1.5
hero.durations.walk;   // 0.8

// Skins and events
hero.skins.default;
hero.events.footstep;

Incremental Sync

The CLI tracks synced assets in .sync-manifest.json. Subsequent syncs only download new or updated assets. Use --force to re-download everything.

Commands

| Command | Description | |---------|-------------| | playtagon login | Authenticate with Playtagon | | playtagon logout | Clear stored credentials | | playtagon whoami | Show current user info | | playtagon setup | Interactive setup wizard | | playtagon config | Manage configuration | | playtagon spine upload | Upload Spine assets (manual) | | playtagon spine watch | Auto-upload on file changes (recommended) | | playtagon spine validate | Validate Spine files | | playtagon spine preset | Output export preset JSON | | playtagon spine sync | Sync approved assets with codegen |

Requirements

  • Node.js 18 or higher
  • Valid Playtagon account

Support

For issues and feedback, contact [email protected]