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

@the-focus-ai/nano-banana

v1.0.9

Published

CLI for image generation and editing with Google Gemini

Readme

nano-banana

CLI and Claude Code plugin for AI image generation, editing, and video generation with Google Gemini and Veo.

Examples

Installation

# Run directly with npx (auto-downloads dependencies)
npx @the-focus-ai/nano-banana --help

# Or install globally
npm install -g @the-focus-ai/nano-banana

Quick Start

# Set your API key
export GEMINI_API_KEY="your-key-here"

# Generate an image
nano-banana "a cat wearing a hat"

# Edit an existing image
nano-banana "make it cartoon" --file photo.jpg

# Save to specific path
nano-banana "a sunset" --output sunset.png

Usage

nano-banana <prompt> [options]

Options:
  --file <image>       Input image to edit (optional, omit for text-to-image)
  --output <file>      Output file path (default: output/generated-<timestamp>.png)
  --model <name>       Gemini model to use (default: gemini-3.1-flash-image-preview)
  --flash              Use gemini-2.5-flash-image model (faster)
  --prompt-file <path> Read prompt from file instead of argument
  --list-models        List all available Gemini models
  --help, -h           Show this help message

Prompting Tips

For best results, include these elements in your prompts:

  1. Subject: Be specific ("fluffy orange tabby cat" not just "cat")
  2. Style: Reference a style ("watercolor", "photorealistic", "minimalist")
  3. Lighting: Describe the mood ("soft afternoon sunlight", "dramatic chiaroscuro")
  4. Composition: Guide the layout ("close-up", "wide 16:9", "centered")
  5. Exclusions: Say what you DON'T want ("NO dark backgrounds, NO neon")

Weak prompt:

a mountain

Strong prompt:

A dramatic mountain landscape with snow-capped peaks reflected in a still
alpine lake at sunset. Golden hour lighting, wide panoramic composition,
professional landscape photography style. NO people, NO text.

See skills/nano-banana-imagegen/prompting-guide.md for comprehensive guidance.

Image Editing

Edit existing images by providing an input file:

# Add elements
nano-banana "add a hot air balloon in the sky" --file landscape.jpg

# Style transfer
nano-banana "transform into a watercolor painting" --file photo.jpg

# Remove/modify
nano-banana "remove the background, replace with gradient" --file portrait.jpg

Claude Code Plugin

This package includes a Claude Code plugin with the nano-banana-imagegen skill. When installed, Claude can generate and edit images for you automatically.

Install the Plugin

# Add the Focus marketplace (if not already added)
/plugin marketplace add The-Focus-AI/claude-marketplace

# Install the plugin
/plugin install nano-banana@focus-marketplace

Then restart Claude Code.

Use with Claude

Just ask Claude to create images:

  • "Generate a hero image for my blog post about AI"
  • "Create a minimalist logo for a fitness app"
  • "Edit this photo to look like a vintage film photograph"

Claude will use the skill to craft effective prompts and run the CLI.

Getting Your API Key

  1. Go to Google AI Studio
  2. Sign in with your Google account
  3. Click "Create API Key"
  4. Set it: export GEMINI_API_KEY="your-key"

Or use a .env file:

echo "GEMINI_API_KEY=your_api_key_here" > .env

Batch Processing

Process multiple images with the included Makefile:

# Place images in input/ directory
make process PROMPT=slide-extractor

# Or with a custom prompt
make process PROMPT="extract the slide content cleanly"

Example: Slide Extraction

Transform photos of presentation slides into clean images:

Project Structure

.claude-plugin/          # Claude Code plugin manifest
  plugin.json
skills/                  # Claude Code skills
  nano-banana-imagegen/
    SKILL.md             # Main skill instructions
    prompting-guide.md   # Comprehensive prompting guide
    examples/            # Categorized prompt examples
cli.ts                   # TypeScript CLI (runs via tsx)

License

MIT