New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@larksuite/whiteboard-cli

Package Overview
Dependencies
Maintainers
9
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@larksuite/whiteboard-cli

Headless whiteboard engine CLI — render auto-layout DSL JSON or Mermaid diagrams to PNG.

latest
npmnpm
Version
0.2.13
Version published
Weekly downloads
3.5K
-48.87%
Maintainers
9
Weekly downloads
 
Created
Source

@larksuite/whiteboard-cli

Headless whiteboard engine CLI — render auto-layout DSL JSON or Mermaid diagrams to PNG.

Install

npm install -g @larksuite/whiteboard-cli

Usage

# Render from DSL JSON
whiteboard-cli -i diagram.json -o diagram.png

# Render from Mermaid
whiteboard-cli -i flowchart.mmd -o flowchart.png

# From stdin
echo '{"version":2,"nodes":[{"type":"rect","width":200,"height":100,"text":"Hello"}]}' \
  | whiteboard-cli --output hello.png

# Export layout coordinates (for two-stage rendering)
whiteboard-cli -i diagram.json -o diagram.png -l coords.json

Options

OptionDescription
-i, --input <path>Input path (reads from stdin if omitted), automatically detects format
-o, --output <path>Output path for main product
-f, --from <type>Force input format: dsl or mermaid
-t, --to <type>Main product type: image (default) or openapi
-s, --scale <num>Pixel density scale factor (default: 2), only valid for -t image
-l, --layout <file>Output computed layout coordinates to JSON file
-F, --format <type>Delivery format: json (default), ndjson, or data
-b, --base64Return Base64 string for image output, only valid for -t image
-d, --dry-runDry run mode: validate and layout, but skip rendering/writing
-V, --verboseVerbose logging to stderr
-v, --versionShow version information
-h, --helpShow help

System Requirements

  • Node.js >= 18

License

This software is licensed under the @larksuite/whiteboard-cli license. See the LICENSE file and THIRD-PARTY-LICENSES.md included in the package for full terms, conditions, and third-party notices.

Keywords

whiteboard

FAQs

Package last updated on 20 Jul 2026

Related posts