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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@flickerdeck/flickerdeck-cli

v0.6.0

Published

Command-line tools for working with Flicker Deck bundles.

Readme

flickerdeck CLI

Command-line tools for working with Flicker Deck bundles.

Prerequisites

  • Node.js (LTS) v16 or newer. Download from nodejs.org.

Verify your version:

node -v
# v16.x or newer

Install

Global (recommended):

npm install --global @flickerdeck/flickerdeck-cli

From this monorepo during development:

corepack yarn build
npm link

Usage

flickerdeck --help

Usage
  $ flickerdeck

Commands
  validate <path>          Validate a deck bundle directory
  plan <path>              Preview create/update plan for Strapi (no writes)
  apply <path>             Apply the plan to Strapi (writes). Generates audit log.
  apply --imgreplace --imgclean <path>  Apply with image upload/replace/cleanup

Options
  --report <file>          Write JSON report to file (default: <bundle>/reports/validate/validate-report-{timestamp}.json)
  --concurrency <number>   Max parallel writes for apply (default: 5)
  --imgreplace            Replace existing card images by uploading new media and remapping
  --imgclean              When replacing, delete previous media after successful remap
  --verbose               Show detailed logs during apply (deck, cards, media)

Validate deck bundle

Validates a deck bundle directory on disk. Fails with non-zero exit code on invalid bundles.

flickerdeck validate ./path/to/bundle
# or custom output path
flickerdeck validate ./path/to/bundle --report ./some/where/report.json

Default report location (when --report is not provided):

<bundle>/reports/validate/validate-report-{timestamp}.json

Terminal output shows a concise summary and colorized error totals, for example:

Bundle: ./input/rws
Counts: cards=78, images=78
Errors: deckRows=0, cardRows=0, structure=0
Full report: /absolute/path/to/bundle/reports/validate/validate-report-2025-01-01T00-00-00-000Z.json
Valid ✅

Bundle layout

The CLI uses a unified naming system that keeps local files clean and standardized while automatically adding prefixes when uploading to Strapi.

bundle/
  deck.csv       # Deck metadata with required imagePrefix
  cards.csv      # Card data with clean UIDs
  cards/         # Card images with clean names
    00-the-fool.png
    01-the-magician.png
    swords-01.png
  deck/          # Standardized deck assets
    card-back.png
    deck-box-color.png
    deck-box-front.png

Required fields in deck.csv:

  • title
  • slug
  • imagePrefix ⭐ (letters only, e.g., "rws", "tarot") - REQUIRED
  • entitlementId
  • author
  • copyright
  • description
  • shortDescription
  • deckBoxColor (hex, e.g. "#FFAA00")
  • aiPrompt

Required fields in cards.csv:

  • uid (clean format, e.g., "00-the-fool", "swords-01")
  • title
  • keywords
  • description
  • arcana ("major" or "minor")
  • suit (required for minor arcana, empty for major)

Local vs Strapi naming:

| Component | Local Bundle | Uploaded to Strapi | | ----------- | ----------------- | --------------------- | | Deck assets | card-back.png | rws-card-back.png | | Card UIDs | 00-the-fool | rws-00-the-fool | | Card images | 00-the-fool.png | rws-00-the-fool.png |

💡 See BUNDLE-FORMAT.md for a detailed, user-friendly guide.

Strapi plan/apply

Configuration can be provided via environment variables or a local config file placed next to the bundle:

{
	"STRAPI_URL": "https://staging.example.com",
	"STRAPI_TOKEN": "<api-token>"
}

Supported filenames: flickerdeck.config.json|yaml|yml.

Plan (no writes):

flickerdeck plan ./path/to/bundle

Apply (writes to Strapi, generates audit log under <bundle>/reports/apply):

flickerdeck apply ./path/to/bundle --concurrency 8

Advanced apply options:

# Apply with verbose logging
flickerdeck apply ./path/to/bundle --verbose

# Force replace all images and clean up old ones
flickerdeck apply ./path/to/bundle --imgreplace --imgclean

# Apply with custom concurrency and image replacement
flickerdeck apply ./path/to/bundle --concurrency 3 --imgreplace --verbose