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

@animaapp/cli

v0.2.1

Published

Generate production-ready apps from prompts, URLs, or Figma designs

Readme

@animaapp/cli

CLI for generating production-ready apps from prompts, URLs, or Figma designs.

Works with any AI coding tool that can run shell commands — no MCP setup, no plugins, just npx.

Quick Start

# One-time: save your tokens
npx @animaapp/cli auth --token <anima-token>
npx @animaapp/cli auth --figma-token <figma-token>

# Create an app from a prompt
npx @animaapp/cli create -t p2c -p "SaaS dashboard with sidebar and analytics"

# Clone a website
npx @animaapp/cli create -t l2c -u https://stripe.com

# Convert Figma to code
npx @animaapp/cli codegen --file-key <figma-url> -o ./components

# Publish to a live URL
npx @animaapp/cli publish <sessionId>

Authentication

Get your Anima API token at dev.animaapp.com > Settings > API Keys.

# Store tokens (persisted to ~/.config/anima/credentials.json)
npx @animaapp/cli auth --token <anima-token>
npx @animaapp/cli auth --figma-token <figma-token>

# Or use environment variables
export ANIMA_API_TOKEN=<token>
export FIGMA_TOKEN=<token>

Priority: env var > stored credentials file.

Commands

create — Generate a playground (3-7 min)

# Prompt to Code
npx @animaapp/cli create -t p2c -p "E-commerce product page with cart"

# Link to Code (clone a website)
npx @animaapp/cli create -t l2c -u https://linear.app

# Figma to Code
npx @animaapp/cli create -t f2c --file-key <key> --nodes 42:15

Options (all optional with sensible defaults):

| Option | Values | Default | |--------|--------|---------| | --framework | react, html | react | | --styling | tailwind, css, plain_css, css_modules, inline_styles | tailwind | | --language | typescript, javascript | typescript (when react) | | --ui-library | shadcn, mui, antd, clean_react | (none) | | --guidelines | free text | (none, p2c only) |

publish — Deploy to live URL (1-3 min)

npx @animaapp/cli publish <sessionId>
npx @animaapp/cli publish <sessionId> --mode designSystem --package-name my-ds

codegen — Figma to local files

npx @animaapp/cli codegen --file-key <key-or-url> --nodes 42:15 -o ./components

Requires a Figma personal access token (stored via auth --figma-token or FIGMA_TOKEN env var).

download — Download playground project

npx @animaapp/cli download https://dev.animaapp.com/chat/<sessionId> -o ./my-project

auth — Manage credentials

npx @animaapp/cli auth --token <T>         # Save Anima token
npx @animaapp/cli auth --figma-token <T>   # Save Figma token
npx @animaapp/cli auth --status            # Check what's configured
npx @animaapp/cli auth --logout            # Clear all credentials

Output Modes

  • Terminal (TTY): Colored text with spinner and progress
  • Piped (AI tools): Single JSON object to stdout
# AI tool usage — parse JSON output
npx @animaapp/cli create -t p2c -p "dashboard" --json 2>/dev/null | jq .playgroundUrl

Progress is streamed to stderr with --verbose.

Timing

| Command | Duration | |---------|----------| | create | 3-7 minutes | | publish | 1-3 minutes | | codegen | 2-5 minutes | | download | seconds |

The --timeout default is 600,000ms (10 min). Do not reduce it.

Exit Codes

| Code | Meaning | |------|---------| | 0 | Success | | 1 | API error | | 2 | Auth error | | 3 | Validation error | | 4 | Timeout |

License

MIT