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

orahub-cli

v0.1.2

Published

Orahub CLI - command-line client for Orahub image AI workflows

Readme

orahub-cli

orahub is the command-line client for Orahub image workflows.

Requirements

  • Node.js 18 or later

Installation

The published npm package name is orahub-cli. After installation, the command is still orahub.

npm install -g orahub-cli

Quick Start

Sign in from the browser and save a fresh AK/SK locally:

orahub auth device-login

If the automatic flow does not complete, switch to the manual fallback when:

  • the browser does not open automatically
  • device login times out
  • the web page finishes login but the CLI still does not receive credentials
  • you already have an assigned AK/SK pair from Console or ops

Manual fallback:

orahub config set --access-key <your-access-key> --secret-key <your-secret-key>

Or provide them through environment variables:

export ORAHUB_CLI_ACCESS_KEY=<your-access-key>
export ORAHUB_CLI_SECRET_KEY=<your-secret-key>

Remove passersby and print the result URL:

orahub photo-passersby-removal --input https://example.com/demo.jpg

Remove passersby from a local file:

orahub photo-passersby-removal --input ./demo.jpg

Run AI color match:

orahub photo-color-match \
  --input https://example.com/demo.jpg \
  --color-ref https://cdn.example.com/ref.jpg

Run AI color match with a local reference image:

orahub photo-color-match \
  --input https://example.com/demo.jpg \
  --color-ref ./ref.jpg

Run photo background replace:

orahub photo-background-replace \
  --input https://example.com/demo.jpg \
  --background-ref-url ./background.jpg

Run photo remove background:

orahub photo-remove-background --input https://example.com/demo.jpg

Save a result to a local file only when you need it:

orahub photo-remove-background --input https://example.com/demo.jpg --output ./result.png

Verify the current credential and endpoint combination:

orahub auth verify --json

Wait for an existing task and optionally download all generated artifacts:

orahub task wait <task-id> --download-dir ./artifacts --json

Common Commands

  • orahub auth device-login [--timeout-ms <ms>] [--no-open] [--json]
  • orahub config set --access-key <ak> --secret-key <sk> [--json]
  • orahub auth verify [--json]
  • orahub task wait <task-id> [--interval-ms <ms>] [--timeout-ms <ms>] [--download-dir <dir>] [--json]
  • orahub photo-color-match --input <file-or-url> --color-ref <file-or-url> [--output <file>] [--timeout-ms <ms>] [--json]
  • orahub photo-background-replace --input <file-or-url> --background-ref-url <file-or-url> [--output <file>] [--timeout-ms <ms>] [--json]
  • orahub photo-remove-background --input <file-or-url> [--output <file>] [--timeout-ms <ms>] [--json]
  • orahub photo-passersby-removal --input <file-or-url> [--output <file>] [--timeout-ms <ms>] [--json]

JSON Output And Exit Codes

  • Public commands support --json for machine-readable output.
  • Exit code 0: success
  • Exit code 1: usage error or unknown command
  • Exit code 2: local configuration error
  • Exit code 3: authentication failed
  • Exit code 4: request or network failure
  • Exit code 5: task finished with failure
  • Exit code 6: task wait timeout

Behavior Notes

  • Release builds embed the public Orahub API endpoint. End users do not need to configure an endpoint manually.
  • orahub auth device-login is the recommended way to get a fresh AK/SK and save it to ~/.orahub/config.json.
  • ORAHUB_CLI_ACCESS_KEY and ORAHUB_CLI_SECRET_KEY override locally saved credentials when both are set.
  • --input is the standard user-facing input flag and automatically detects whether the value is a local file path or an http/https image URL.
  • Effect commands print the result URL by default; add --output <file> only when you want to save the artifact locally.
  • photo-color-match requires --color-ref and accepts either a local file path or an http/https image URL.
  • photo-background-replace requires --background-ref-url and accepts either a local file path or an http/https image URL.