New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

giraflow-cli

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

giraflow-cli

Giraflow CLI – analyze and visualize Information Flow models in the terminal

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

Giraflow CLI

CLI tool for visualizing and analyzing Information Flow models (.giraflow.json).

Installation

npm install -g giraflow-cli

Usage

Visualize an existing model

giraflow-cli <file> [options]

Options

OptionDescription
-v, --view <mode>timeline, slice, or table
-e, --exampleShow example data
-s, --schema <path>Validate against JSON schema
--validateValidate against bundled schema
-o, --output <file>Export to file

Examples

# Interactive mode (prompts for view)
giraflow-cli model.giraflow.json

# Slice view with scenarios
giraflow-cli model.giraflow.json -v slice

# Timeline with example data
giraflow-cli model.giraflow.json -v timeline -e

# Table view for documentation
giraflow-cli model.giraflow.json -v table

Create a new model

giraflow-cli create [output-file]

Starts an interactive wizard that guides you through building a .giraflow.json model step by step.

Workflow

  • Model metadata — Name (required) and description (optional)
  • Element loop — Repeat until done:
    • Choose element type: Event, State View, Actor, or Command

    • Enter a name

    • Fill in type-specific fields (all optional, press Enter to skip):

      TypeOptional fields
      EventproducedBy (command name), externalSource
      State ViewsourcedFrom (comma-separated event names)
      ActorreadsView (defaults to last state), sendsCommand
      Command
    • Add example data (choose one):

      • None — skip
      • Free text — stored as a string value
      • Key-Value pairs — interactive loop, stored as a JSON object
    • Confirm whether to add another element

  • Save — writes the model as JSON with 2-space indentation

Examples

# Specify output file directly
giraflow-cli create my-model.giraflow.json

# Let the wizard ask for the filename (defaults to <name>.giraflow.json)
giraflow-cli create

Views

Timeline

Chronological flow with symbols (●Event ◆State ▶Command ○Actor). Use -e to include example data.

Timeline View

With example data (-e):

Timeline View with Data

Slice

Detailed panels with JSON examples and Given-When-Then scenarios.

Slice View

Table

Tabular overview per element type with data flow tree.

Table View

See Also

giraflow — Live preview server with hot reload for viewing models in the browser.

Keywords

giraflow

FAQs

Package last updated on 27 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts