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

@shuffle-dev/cli

v1.0.13

Published

Shuffle Editor CLI tool

Downloads

1,563

Readme

Shuffle CLI

Command-line tool for working with Shuffle Editor projects, design sessions, and redesign sessions from your terminal.

Use it to sign in to Shuffle, list and download projects, sync project files, generate new designs, redesign existing pages, and save generated projects for later use.

Quick demos

examples/design-slack-bot contains a Slack bot that uses this CLI to create designs from Slack mentions or direct messages. See the example README for Slack app setup instructions.

examples/redesign-offer-automation includes an automation that redesigns prospects’ websites and sends the saved redesign as an offer using Resend.

Usage of the Shuffle CLI

Run the CLI with npx:

npx @shuffle-dev/cli --help

Or install it globally:

npm install -g @shuffle-dev/cli
shuffle --help

All examples below use npx @shuffle-dev/cli. If you installed the CLI globally, replace it with shuffle.

Authentication

Sign in to your Shuffle account:

npx @shuffle-dev/cli auth

Your browser opens automatically so you can complete sign-in.

When running the CLI on a remote server, bind the callback on the server and open the printed URL from your desktop browser:

npx @shuffle-dev/cli auth --no-open
npx @shuffle-dev/cli auth --host SERVER_IP --no-open

By default, the CLI listens on 0.0.0.0 and uses the first non-local IPv4 address it can find for the callback URL. Use --host when the server has a public IP or DNS name that differs from its network interface address.

Sign out:

npx @shuffle-dev/cli logout

Projects

List your Shuffle projects:

npx @shuffle-dev/cli projects

List projects already downloaded with the CLI:

npx @shuffle-dev/cli list

Download a project:

npx @shuffle-dev/cli get PROJECT_ID

Download a project to a specific folder:

npx @shuffle-dev/cli get PROJECT_ID ./my-project

Sync the latest Shuffle project files to your downloaded copy:

npx @shuffle-dev/cli sync PROJECT_ID

Choose a project interactively and sync it:

npx @shuffle-dev/cli sync

Check project status from a downloaded project folder:

npx @shuffle-dev/cli status

Clean up saved references to folders that no longer exist:

npx @shuffle-dev/cli cleanup

Design

This command creates new projects based on a text description using top generative AI models. You can choose from available models, generate screenshots, and download generated files. The online version of this feature is available at AI Design Arena.

List available Design models:

npx @shuffle-dev/cli design models

Create a Design session:

npx @shuffle-dev/cli design create "Landing page for a B2B support automation platform"

Create a Design session and run every active model without opening the model picker:

npx @shuffle-dev/cli design create "Landing page for a B2B support automation platform" --all

Create a Design session with a specific model:

npx @shuffle-dev/cli design create "Landing page for a B2B support automation platform" --model claude-opus-4-6

Generate screenshots for created projects:

npx @shuffle-dev/cli design create "Landing page for a B2B support automation platform" --screenshot

Save the generated edit, preview, and screenshot URLs to a file for later use with AI agents or manual review:

npx @shuffle-dev/cli design create "Landing page for a B2B support automation platform" --screenshot --save-output ./shuffle-output.txt

Download generated project files after each successful run:

npx @shuffle-dev/cli design create "Landing page for a B2B support automation platform" --download ./generated

Download only source files:

npx @shuffle-dev/cli design create "Landing page for a B2B support automation platform" --download ./generated --source-only

List and inspect Design and Redesign sessions:

npx @shuffle-dev/cli design sessions
npx @shuffle-dev/cli design show SESSION_HASH

Generate or refresh a screenshot for a generated project:

npx @shuffle-dev/cli design screenshot PROJECT_SESSION_ID

Redesign

This command redesigns an existing web page based on a text description using top generative AI models. You can choose from available models, generate screenshots of new projects, and download generated files. The online version of this feature is available at AI Website Redesign.

Create a Redesign session from an existing URL:

npx @shuffle-dev/cli redesign create https://example.com "Keep the content, make it modern"

Run every active Redesign-capable model:

npx @shuffle-dev/cli redesign create https://example.com "Keep the content, make it modern" --all

Create a Redesign session with screenshots and saved output:

npx @shuffle-dev/cli redesign create https://example.com "Keep the content, make it modern" --screenshot --save-output ./redesign-output.txt

Design and Redesign Options

The design create and redesign create commands support these options:

  • --model <id>: Run one model. You can repeat the option or pass comma-separated model IDs.
  • --all: Run all active models without opening the model picker.
  • --download [directory]: Download generated project files after each successful run.
  • --source-only: When used with --download, download only source files.
  • --screenshot: Generate a screenshot for each project after it is created.
  • --save-output <file>: Save generated project URLs to a file. When used with --screenshot, screenshot URLs are included too.

Typical Workflow

  1. Sign in: npx @shuffle-dev/cli auth
  2. List projects: npx @shuffle-dev/cli projects
  3. Download a project: npx @shuffle-dev/cli get PROJECT_ID
  4. Edit the project in Shuffle
  5. Sync the latest files: npx @shuffle-dev/cli sync PROJECT_ID

Troubleshooting

shuffle: command not found

Use the full npx command:

npx @shuffle-dev/cli COMMAND

Or install the CLI globally:

npm install -g @shuffle-dev/cli
shuffle COMMAND

Authentication Issues

  • Make sure your browser allows the sign-in page to open.
  • Make sure ports 8080-8085 are available for the sign-in callback.
  • On a remote server, make sure the callback port is reachable from your desktop or pass --port PORT for an allowed port.

Connection Issues

  • Check your internet connection.
  • Check firewall or proxy settings if your network blocks outbound requests.

File Issues

  • Make sure you have write permissions in the target folder.
  • Check that the target disk has enough free space.

Help

Need help? Contact the Shuffle team at [email protected] or report an issue in the project repository.