JSPM

@chancevision/cli

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q50191F
  • License MIT

Seamless visual intelligence for your command line. Analyze images with state‑of‑the‑art vision AI, instantly.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@chancevision/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    ChanceVision CLI

    npm version CI License: MIT Node.js

    CLI client for the Chance Vision platform. Analyze images with state-of-the-art vision AI, instantly.

    Install

    # npm
    npm install -g @chancevision/cli
    
    # pnpm
    pnpm add -g @chancevision/cli
    
    # Run without installing
    npx @chancevision/cli see --help

    Quick Start

    # Set your API key
    export CHANCEVISION_API_KEY="sk-..."
    
    # Analyze an image from a URL or local file
    chancevision see -i https://example.com/photo.png
    chancevision see -i ~/Pictures/screenshot.png
    
    # Stream the response in real time
    chancevision see -s -i https://example.com/photo.png

    Authentication

    Pass your API key one of two ways:

    # Option 1: Flag (takes priority)
    chancevision see -k "sk-..." -i https://example.com/img.png
    
    # Option 2: Environment variable (fallback)
    export CHANCEVISION_API_KEY="sk-..."
    chancevision see -i https://example.com/img.png

    Usage

    chancevision see -i <url|path> [options]

    Sends the image to the model (chance/chance-vision-1.5) for analysis.

    Options

    | Option | Default | Description | | -------------------------- | ------- | ----------------------------------------------- | --------------------------------------- | | -i, --image <url | path> | (required) | Image URL or local file path to analyze | | -k, --api-key <key> | — | API key (or use CHANCEVISION_API_KEY env var) | | -s, --stream | false | Stream the response as SSE chunks | | --output-format <format> | — | Output format hint (e.g. ui_component) | | -v, --verbose | false | Show raw chunks and debug info on stderr |

    Examples

    Basic image analysis

    # From a URL
    chancevision see -k "sk-..." -i https://images.chance.vision/image/revisit.png
    
    # From a local file
    chancevision see -i ~/Pictures/screenshot.png

    Streaming

    chancevision see -s -i https://images.chance.vision/image/revisit.png

    Verbose streaming

    chancevision see -s -v -i https://example.com/img.png

    Output format

    chancevision see --output-format ui_component -i https://example.com/screenshot.png

    Build from Source

    git clone https://github.com/anomalyco/chancevision-cli
    cd chancevision-cli
    
    pnpm install
    
    # Run tests
    pnpm test
    
    # Build
    pnpm build
    
    # Link globally for development
    pnpm link --global

    Publish

    # Bump version
    npm version patch  # or minor / major
    
    # Publish to npm (builds + typechecks via prepublishOnly hook)
    npm publish

    API

    This CLI is powered by the Chance Vision API, a state‑of‑the‑art visual intelligence platform with streaming support and UI-component output.

    POST https://openapi.chance.vision/v1/chat/completions

    License

    MIT