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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@visionfi/desktop-cli

v1.3.0

Published

Command-line interface for VisionFI Desktop SDK

Downloads

35

Readme

VisionFI Desktop CLI

Command-line interface for VisionFI Desktop SDK with Azure AD authentication and automatic endpoint discovery.

Installation

npm install -g @visionfi/desktop-cli

Or run without installing:

npx @visionfi/desktop-cli

Quick Start

  1. Login (automatically discovers your API endpoint):

    visionfi-desktop auth login
  2. List packages:

    visionfi-desktop package list
  3. Get help:

    visionfi-desktop --help

Authentication

The CLI uses Azure AD authentication with automatic endpoint discovery via the Beacon service. No manual configuration required!

First Time Setup

# Login with Azure AD (opens browser)
visionfi-desktop auth login

This will:

  1. Open your browser for Azure AD authentication
  2. Automatically discover your API endpoint via Beacon service
  3. Save your configuration for future use

Authentication Commands

visionfi-desktop auth login        # Login with Azure AD + auto-discover endpoint
visionfi-desktop auth logout       # Logout and clear tokens
visionfi-desktop auth verify       # Check authentication status
visionfi-desktop auth token        # Get token (debugging)

Package Management

List Packages

# List all packages
visionfi-desktop package list

# List with JSON output
visionfi-desktop package list --format json

# Filter by status
visionfi-desktop package list --status ready

Create Package

visionfi-desktop package create \
  --product-type sync1-loan-application-test \
  --description "My loan application"

Get Package Details

visionfi-desktop package get <package-id>

Package Audit History

visionfi-desktop package audit <package-id>

Document Management

Add Documents

visionfi-desktop package document add <package-id> \
  --file document1.pdf \
  --file document2.pdf

Delete Document

visionfi-desktop package document delete <package-id> <document-id>

Processing Operations

Execute Processing

visionfi-desktop package processing execute <package-id> \
  --workflow vehicle-info-extraction

Get Processing History

visionfi-desktop package processing history <package-id>

Get Processing Result

visionfi-desktop package processing result <package-id> <process-id>

View Processing Output

visionfi-desktop package processing view <package-id> <process-id>

Poll Processing Status

visionfi-desktop package processing poll <package-id> <process-id>

External References

Add References

visionfi-desktop package ref add <package-id> \
  --refs ref-id-1 ref-id-2

Remove References

visionfi-desktop package ref remove <package-id> \
  --refs ref-id-1 ref-id-2

Administrative Commands

Get Product Types

visionfi-desktop admin products

Get Client Information

visionfi-desktop admin client

Configuration

View Config Location

visionfi-desktop config

Configuration is stored at: ~/.visionfi/desktop/config.json

Environment Variables

You can override defaults with environment variables:

# Override Azure AD client ID (optional)
export AZURE_CLIENT_ID=your-client-id

# Override Azure AD tenant ID (optional)
export AZURE_TENANT_ID=your-tenant-id

# Override Beacon service URL (optional)
export VISIONFI_BEACON_URL=https://beacon.visionfi.ai

# Override API endpoint (bypasses Beacon discovery)
export VISIONFI_CLOUD_RUN_ENDPOINT=https://your-endpoint.run.app

Command Aliases

For convenience, some commands have shorter aliases:

  • packagepkg
  • documentdoc
  • processingproc

Examples:

visionfi-desktop pkg list
visionfi-desktop pkg doc add <package-id> --file document.pdf
visionfi-desktop pkg proc execute <package-id> --workflow extraction

Common Workflows

Create and Process a Loan Application

# 1. Create package
visionfi-desktop pkg create \
  --product-type sync1-loan-application-test \
  --description "Auto loan application"

# 2. Add documents
visionfi-desktop pkg doc add <package-id> \
  --file application.pdf \
  --file paystub.pdf

# 3. Execute processing
visionfi-desktop pkg proc execute <package-id> \
  --workflow vehicle-info-extraction

# 4. Poll for results
visionfi-desktop pkg proc poll <package-id> <process-id>

# 5. View results
visionfi-desktop pkg proc result <package-id> <process-id>

Output Formats

Most commands support different output formats:

# Table format (default)
visionfi-desktop package list

# JSON format
visionfi-desktop package list --format json

# YAML format
visionfi-desktop package list --format yaml

Security

The CLI follows security best practices for credential storage:

  • Token Cache: Stored at ~/.visionfi/desktop/msal-cache.json with 0600 permissions (user-only read/write)
  • Azure AD Tokens: Automatically refreshed, no passwords stored
  • Device Code Flow: Secure authentication without local HTTP server

Troubleshooting

Authentication Issues

# Check authentication status
visionfi-desktop auth verify

# Re-authenticate
visionfi-desktop auth logout
visionfi-desktop auth login

Token Expired

If you see "Session expired" errors:

visionfi-desktop auth login

Clear All Data

# Logout and clear cache
visionfi-desktop auth logout

# Manually remove config
rm -rf ~/.visionfi/desktop/

License

Copyright (c) 2024-2025 VisionFI. All Rights Reserved.