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

@flowcraft/cli

v1.0.0-alpha.1

Published

Command-line interface for Flowcraft workflow observability and debugging

Readme

@flowcraft/cli

Command-line interface for Flowcraft workflow observability and debugging.

Installation

npm install -g @flowcraft/cli

Usage

Inspect Workflow Executions

Inspect a completed workflow execution to see its timeline, node executions, and final state:

# Inspect using SQLite history
flowcraft inspect <run-id> --database ./workflow-events.db

# Inspect using PostgreSQL history
flowcraft inspect <run-id> \
  --host localhost \
  --port 5432 \
  --user flowcraft \
  --password password \
  --dbname flowcraft

# Output in JSON format
flowcraft inspect <run-id> --database ./events.db --json

Example Output

🚀 Workflow Execution Summary
──────────────────────────────────────────────────
Run ID: run_abc123
Blueprint: order-processing-workflow
Status: Completed

📊 Execution Statistics
──────────────────────────────
Total Events: 24
Nodes Started: 5
Nodes Completed: 5
Nodes Failed: 0

⏱️  Node Execution Timeline
────────────────────────────────────────
┌─────────────┬───────────┬──────────┐
│ Node ID     │ Status    │ Duration │
├─────────────┼───────────┼──────────┤
│ validate    │ Completed │ ~        │
│ process     │ Completed │ ~        │
│ ship        │ Completed │ ~        │
│ notify      │ Completed │ ~        │
│ complete    │ Completed │ ~        │
└─────────────┴───────────┴──────────┘

📋 Final Context
────────────────────
orderId: ORD-2024-001
status: shipped
trackingNumber: 1Z999AA1234567890
customerEmail: [email protected]

Commands

flowcraft inspect <run-id>

Inspect a workflow execution and display detailed information including:

  • Execution Summary: Run ID, blueprint, status, and error counts
  • Statistics: Total events, node execution counts
  • Node Timeline: Execution status and timing for each node
  • Final Context: Key-value pairs from the workflow's final state

Options

  • --database <path>: Path to SQLite database file
  • --host <host>: PostgreSQL host
  • --port <port>: PostgreSQL port (default: 5432)
  • --user <user>: PostgreSQL username
  • --password <password>: PostgreSQL password
  • --dbname <dbname>: PostgreSQL database name
  • --table <table>: History table name (default: 'flowcraft_events')
  • --json: Output raw event data in JSON format

Configuration

The CLI connects to your history backend to retrieve workflow events. You can configure the connection in several ways (in order of precedence):

1. Command Line Options

SQLite Backend

flowcraft inspect <run-id> --database ./workflow-events.db

PostgreSQL Backend

flowcraft inspect <run-id> \
  --host localhost \
  --port 5432 \
  --user flowcraft \
  --password password \
  --dbname flowcraft \
  --table workflow_events

2. Environment Variables

SQLite

export FLOWCRAFT_HISTORY_TYPE=sqlite
export FLOWCRAFT_SQLITE_PATH=./workflow-events.db

PostgreSQL

export FLOWCRAFT_HISTORY_TYPE=postgres
export FLOWCRAFT_POSTGRES_HOST=localhost
export FLOWCRAFT_POSTGRES_PORT=5432
export FLOWCRAFT_POSTGRES_USER=flowcraft
export FLOWCRAFT_POSTGRES_PASSWORD=password
export FLOWCRAFT_POSTGRES_DB=flowcraft
export FLOWCRAFT_POSTGRES_TABLE=workflow_events  # optional

3. Configuration File

Create a .flowcraft.json file in your project directory or ~/.flowcraft/config.json:

SQLite Configuration

{
  "history": {
    "type": "sqlite",
    "sqlite": {
      "databasePath": "./workflow-events.db"
    }
  }
}

PostgreSQL Configuration

{
  "history": {
    "type": "postgres",
    "postgres": {
      "host": "localhost",
      "port": 5432,
      "user": "flowcraft",
      "password": "password",
      "database": "flowcraft",
      "tableName": "workflow_events"
    }
  }
}

Roadmap

  • flowcraft list: List recent workflow executions
  • flowcraft reconcile <run-id>: Manually trigger reconciliation for stuck workflows
  • flowcraft inspect --web: Launch web UI for richer visualization
  • flowcraft compare <run-id-1> <run-id-2>: Compare two workflow executions