JSPM

@chancevision/cli

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q50195F
  • 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

    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 https://example.com/photo.png
    chancevision see ~/Pictures/screenshot.png
    
    # Stream the response in real time
    chancevision see -s https://example.com/photo.png

    Authentication

    Pass your API key one of two ways:

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

    Usage

    chancevision see <image> [options]

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

    Options

    Option Default Description
    <image> (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-..." https://images.chance.vision/image/revisit.png
    
    # From a local file
    chancevision see ~/Pictures/screenshot.png

    Streaming

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

    Verbose streaming

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

    Output format

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

    Build from Source

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

    Publish

    npmjs.org

    npm publish --access public --otp=<code>

    GitHub Packages

    npm login --registry=https://npm.pkg.github.com
    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