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

@clickraft/cli

v0.11.2

Published

The Clickraft CLI — generate images, manage assets, and author visual workflows.

Readme

Clickraft CLI

The official command-line interface for Clickraft — generate images, manage assets, and author visual workflows from your terminal or AI coding agent.

Status: Pre-release. The CLI is under active development. Not yet stable.

Install

npm install -g @clickraft/cli

Requires Node.js 20 or later.

Quick start

clickraft login
clickraft generate create --prompt "a serene mountain landscape at dawn"
clickraft balance
clickraft brand-model list
clickraft models list
clickraft models list --category image --tier pro
clickraft template list
clickraft template get <template-id>
clickraft template find "coffee brand"

Brand Model references

Use --brand-model to attach trained brand models to a generation. The flag is repeatable (max 3) and accepts an optional pose:

# Single brand model, primary image
clickraft generate create --model-slug nano-banana-2 \
  --prompt "product on marble" \
  --brand-model a2438521-abcd-4000-8000-000000000001

# Two brand models with pose selection
clickraft generate create --model-slug nano-banana-2 \
  --prompt "lifestyle shot" \
  --brand-model a2438521-abcd-4000-8000-000000000001:front \
  --brand-model b3549632-bcde-4000-8000-000000000002:3/4-right

Note: --brand-model only works with reference-supporting models (nano-banana-2 recommended).

Workflows

Create, inspect, and mutate visual workflows from your terminal:

clickraft workflow create --name "Product Shoot Pipeline"
clickraft workflow list
clickraft workflow list --tags marketing,ecommerce
clickraft workflow get <workflow-id>

# Apply operations with auto-rev (fetches current canvas_rev, retries once on conflict)
clickraft workflow apply <workflow-id> --auto-rev --from-file ops.json

# Or inline a single operation
clickraft workflow apply <workflow-id> --auto-rev \
  --op '{"op":"add_node","node":{"id":"gen-1","type":"imageGeneration","config":{}}}'

The --auto-rev flag is recommended for agent use — it fetches the current canvas_rev before mutating and retries once if a conflict occurs.

See docs/workflows.md for the full operation reference and examples.

Full documentation: docs.clickraft.ai/cli (coming soon)

Connecting to staging

The staging API (https://staging.clickraft.ai/api/agents/v1) sits behind Cloudflare Access Zero Trust. To authenticate non-interactively, create a service token in the Cloudflare Zero Trust dashboard (Access → Service Auth → Service Tokens), then export both halves before invoking the CLI:

export CLOUDFLARE_ACCESS_CLIENT_ID="<client-id>.access"
export CLOUDFLARE_ACCESS_CLIENT_SECRET="<client-secret>"

clickraft tokens list --profile staging
clickraft balance --profile staging
clickraft brand-model list --profile staging
clickraft models list --profile staging

Both env vars must be set together — if only one is set the CLI exits with a configuration error. Production usage (the default) does not require these env vars.

Use with AI coding agents

The Clickraft CLI is designed to work with Claude Code, Cursor, Codex, and other AI coding agents. Install the skills package for your agent:

npx skills add clickraft/skills

Development

git clone https://github.com/clickraft/cli.git
cd cli
npm install
npm test

License

Proprietary — Copyright (c) 2026 Clickraft, all rights reserved. See LICENSE.