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

@fionoble/image-gen-cli

v1.0.5

Published

CLI tool for OpenAI image generation and editing, with a Claude Code skill

Readme

@fionoble/image-gen-cli

A CLI tool for generating and editing images using OpenAI's gpt-image-1 model. Comes with a Claude Code skill for seamless AI-assisted image generation.

Install

npm install -g @fionoble/image-gen-cli

Or use without installing:

npx @fionoble/image-gen-cli -p "A cat in a spacesuit" -o cat.png

Prerequisites

export OPENAI_API_KEY="sk-..."

Environment Variables

| Variable | Description | |----------|-------------| | OPENAI_API_KEY | Required. Your OpenAI API key. | | OPENAI_BASE_URL | Custom API base URL (for proxies). |

CLI Usage

image-gen [options]

Options

| Flag | Description | Default | |------|-------------|---------| | -p, --prompt <text> | Image prompt (required) | - | | -i, --image <path> | Input image for editing | - | | -o, --output <path> | Output file path | generated-<timestamp>.png | | -s, --size <size> | 1024x1024, 1024x1536, 1536x1024, auto | auto | | -q, --quality <quality> | low, medium, high, auto | auto | | -n, --count <n> | Number of images to generate | 1 | | -m, --model <model> | OpenAI model | gpt-image-1 | | --install-skill | Install the Claude Code skill | - | | --uninstall-skill | Remove the Claude Code skill | - |

Examples

Generate an image:

image-gen -p "A watercolor painting of a Japanese garden" -q high -o garden.png

Edit an existing image:

image-gen -p "Make the sky a dramatic sunset" -i photo.png -o photo-sunset.png

Generate a logo:

image-gen -p "Minimalist coffee shop logo" -q high -s 1024x1024 -o logo.png

Claude Code Skill

Install the skill so Claude Code can generate images for you:

image-gen --install-skill
# or
npx @fionoble/image-gen-cli --install-skill

Once installed, the /image-gen skill is available in Claude Code. You can either:

  • Invoke it directly: /image-gen create a logo for my app
  • Or just ask naturally: "generate an image of a cat in space"

Claude will craft a detailed prompt, pick appropriate settings, generate the image, and display the result.

To remove the skill:

image-gen --uninstall-skill

License

ISC